src/lib/Herrera/Box/StubGenerator.php
private function getPharSections()
    {
        $stub = array(
            'if (class_exists(\'Phar\')) {',
            $this->getAlias(),
        );

        if ($this->intercept) {
            $stub[] = "Phar::interceptFileFuncs();";
        }

        if ($this->mung) {
            $stub[] = 'Phar::mungServer(' . var_export($this->mung, true) . ");";
        }

        if ($this->index && !$this->web && !$this->extractForce) {
            $stub[] = "require 'phar://' . __FILE__ . '/{$this->index}';";
        }

        $stub[] = '}';

        return $stub;
    }
private function getPharSections()
    {
        $stub = array(
            'if (class_exists(\'Phar\')) {',
            $this->getAlias(),
        );

        if ($this->intercept) {
            $stub[] = "Phar::interceptFileFuncs();";
        }

        if ($this->mung) {
            $stub[] = 'Phar::mungServer(' . var_export($this->mung, true) . ");";
        }

        if ($this->index && !$this->web && !$this->extractForce) {
            $stub[] = "require 'phar://' . __FILE__ . '/{$this->index}';";
        }

        $stub[] = '}';

        return $stub;
    }
private function getPharSections ( ) { $ stub = array ( 'if (class_exists(\'Phar\')) {' , $ this -> getAlias ( ) , ) ; if ( $ this -> intercept ) { $ stub [ ] = "Phar::interceptFileFuncs();" ; } if ( $ this -> mung ) { $ stub [ ] = 'Phar::mungServer(' . var_export ( $ this -> mung , true ) . ");" ; } if ( $ this -> index && ! $ this -> web && ! $ this -> extractForce ) { $ stub [ ] = "require 'phar://' . __FILE__ . '/{$this->index}';" ; } $ stub [ ] = '}' ; return $ stub ; }
Returns the sections of the stub that use the Phar class.

@return array The stub sections.
Returns the sections of the stub that use the Phar class .