classes/phing/tasks/ext/phpdoc/PhpDocumentor2Task.php
private function initializePhpDocumentor()
    {
        $phpDocumentorPath = '';

        if (!empty($this->pharLocation)) {
            include_once 'phar://' . $this->pharLocation . '/vendor/autoload.php';

            if (!class_exists('phpDocumentor\\Bootstrap')) {
                throw new BuildException(
                    $this->pharLocation . ' does not look like a phpDocumentor 2 .phar'
                );
            }
        } elseif (class_exists('Composer\\Autoload\\ClassLoader', false)) {
            if (!class_exists('phpDocumentor\\Bootstrap')) {
                throw new BuildException('You need to install phpDocumentor 2 or add your include path to your composer installation.');
            }
        } else {
            $phpDocumentorPath = $this->findPhpDocumentorPath();

            if (empty($phpDocumentorPath)) {
                throw new BuildException("Please make sure phpDocumentor 2 is installed and on the include_path.");
            }

            set_include_path($phpDocumentorPath . PATH_SEPARATOR . get_include_path());

            include_once $phpDocumentorPath . '/phpDocumentor/Bootstrap.php';
        }

        $this->app = \phpDocumentor\Bootstrap::createInstance()->initialize();

        $this->phpDocumentorPath = $phpDocumentorPath;
    }
private function initializePhpDocumentor()
    {
        $phpDocumentorPath = '';

        if (!empty($this->pharLocation)) {
            include_once 'phar://' . $this->pharLocation . '/vendor/autoload.php';

            if (!class_exists('phpDocumentor\\Bootstrap')) {
                throw new BuildException(
                    $this->pharLocation . ' does not look like a phpDocumentor 2 .phar'
                );
            }
        } elseif (class_exists('Composer\\Autoload\\ClassLoader', false)) {
            if (!class_exists('phpDocumentor\\Bootstrap')) {
                throw new BuildException('You need to install phpDocumentor 2 or add your include path to your composer installation.');
            }
        } else {
            $phpDocumentorPath = $this->findPhpDocumentorPath();

            if (empty($phpDocumentorPath)) {
                throw new BuildException("Please make sure phpDocumentor 2 is installed and on the include_path.");
            }

            set_include_path($phpDocumentorPath . PATH_SEPARATOR . get_include_path());

            include_once $phpDocumentorPath . '/phpDocumentor/Bootstrap.php';
        }

        $this->app = \phpDocumentor\Bootstrap::createInstance()->initialize();

        $this->phpDocumentorPath = $phpDocumentorPath;
    }
private function initializePhpDocumentor ( ) { $ phpDocumentorPath = '' ; if ( ! empty ( $ this -> pharLocation ) ) { include_once 'phar://' . $ this -> pharLocation . '/vendor/autoload.php' ; if ( ! class_exists ( 'phpDocumentor\\Bootstrap' ) ) { throw new BuildException ( $ this -> pharLocation . ' does not look like a phpDocumentor 2 .phar' ) ; } } elseif ( class_exists ( 'Composer\\Autoload\\ClassLoader' , false ) ) { if ( ! class_exists ( 'phpDocumentor\\Bootstrap' ) ) { throw new BuildException ( 'You need to install phpDocumentor 2 or add your include path to your composer installation.' ) ; } } else { $ phpDocumentorPath = $ this -> findPhpDocumentorPath ( ) ; if ( empty ( $ phpDocumentorPath ) ) { throw new BuildException ( "Please make sure phpDocumentor 2 is installed and on the include_path." ) ; } set_include_path ( $ phpDocumentorPath . PATH_SEPARATOR . get_include_path ( ) ) ; include_once $ phpDocumentorPath . '/phpDocumentor/Bootstrap.php' ; } $ this -> app = \ phpDocumentor \ Bootstrap :: createInstance ( ) -> initialize ( ) ; $ this -> phpDocumentorPath = $ phpDocumentorPath ; }
Finds and initializes the phpDocumentor installation
Finds and initializes the phpDocumentor installation