protected function addDbup(\Phar $phar)
    {
        $content = file_get_contents(__DIR__ . '/../../../dbup');
        $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);

        $phar->addFromString('dbup', $content);
    }
protected function addDbup(\Phar $phar)
    {
        $content = file_get_contents(__DIR__ . '/../../../dbup');
        $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);

        $phar->addFromString('dbup', $content);
    }
protected function addDbup ( \ Phar $ phar ) { $ content = file_get_contents ( __DIR__ . '/../../../dbup' ) ; $ content = preg_replace ( '{^#!/usr/bin/env php\s*}' , '' , $ content ) ; $ phar -> addFromString ( 'dbup' , $ content ) ; }
Remove the shebang from the file before add it to the PHAR file.

@param \Phar $phar PHAR instance
Remove the shebang from the file before add it to the PHAR file .