Update DocumentationParser.php

Added a simple if to L#321 to check if method name is the referenced. But it only works for the OO version currently