classes/phing/tasks/ext/phpdoc/PhpDocumentor2Task.php
private function findPhpDocumentorPath()
    {
        $phpDocumentorPath = null;
        $directories = ['phpDocumentor', 'phpdocumentor'];
        foreach ($directories as $directory) {
            foreach (Phing::explodeIncludePath() as $path) {
                $testPhpDocumentorPath = $path . DIRECTORY_SEPARATOR . $directory . DIRECTORY_SEPARATOR . 'src';
                if (file_exists($testPhpDocumentorPath)) {
                    $phpDocumentorPath = $testPhpDocumentorPath;
                }
            }
        }

        return $phpDocumentorPath;
    }
private function findPhpDocumentorPath()
    {
        $phpDocumentorPath = null;
        $directories = ['phpDocumentor', 'phpdocumentor'];
        foreach ($directories as $directory) {
            foreach (Phing::explodeIncludePath() as $path) {
                $testPhpDocumentorPath = $path . DIRECTORY_SEPARATOR . $directory . DIRECTORY_SEPARATOR . 'src';
                if (file_exists($testPhpDocumentorPath)) {
                    $phpDocumentorPath = $testPhpDocumentorPath;
                }
            }
        }

        return $phpDocumentorPath;
    }
private function findPhpDocumentorPath ( ) { $ phpDocumentorPath = null ; $ directories = [ 'phpDocumentor' , 'phpdocumentor' ] ; foreach ( $ directories as $ directory ) { foreach ( Phing :: explodeIncludePath ( ) as $ path ) { $ testPhpDocumentorPath = $ path . DIRECTORY_SEPARATOR . $ directory . DIRECTORY_SEPARATOR . 'src' ; if ( file_exists ( $ testPhpDocumentorPath ) ) { $ phpDocumentorPath = $ testPhpDocumentorPath ; } } } return $ phpDocumentorPath ; }
Find the correct php documentor path

@return null|string
Find the correct php documentor path