Library/ClassDefinition.php
public function getPossibleMethodName($methodName)
    {
        $methodNameLower = strtolower($methodName);

        foreach ($this->methods as $name => $method) {
            if (metaphone($methodNameLower) == metaphone($name)) {
                return $method->getName();
            }
        }

        $extendsClassDefinition = $this->extendsClassDefinition;
        if ($extendsClassDefinition) {
            return $extendsClassDefinition->getPossibleMethodName($methodName);
        }

        return false;
    }
public function getPossibleMethodName($methodName)
    {
        $methodNameLower = strtolower($methodName);

        foreach ($this->methods as $name => $method) {
            if (metaphone($methodNameLower) == metaphone($name)) {
                return $method->getName();
            }
        }

        $extendsClassDefinition = $this->extendsClassDefinition;
        if ($extendsClassDefinition) {
            return $extendsClassDefinition->getPossibleMethodName($methodName);
        }

        return false;
    }
public function getPossibleMethodName ( $ methodName ) { $ methodNameLower = strtolower ( $ methodName ) ; foreach ( $ this -> methods as $ name => $ method ) { if ( metaphone ( $ methodNameLower ) == metaphone ( $ name ) ) { return $ method -> getName ( ) ; } } $ extendsClassDefinition = $ this -> extendsClassDefinition ; if ( $ extendsClassDefinition ) { return $ extendsClassDefinition -> getPossibleMethodName ( $ methodName ) ; } return false ; }
Tries to find the most similar name.

@param string $methodName

@return bool|string
Tries to find the most similar name .