@@ -33,8 +33,9 @@ |
||
| 33 | 33 | // End the buffering |
| 34 | 34 | ob_end_clean(); |
| 35 | 35 | // If the current level has not changed, abort |
| 36 | - if (ob_get_level() == $level) |
|
| 37 | - break; |
|
| 36 | + if (ob_get_level() == $level) { |
|
| 37 | + break; |
|
| 38 | + } |
|
| 38 | 39 | } |
| 39 | 40 | // Disable apache output buffering/compression |
| 40 | 41 | if (function_exists('apache_setenv')) { |
@@ -25,28 +25,28 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function __construct() |
| 27 | 27 | { |
| 28 | - $this->composerPath = __DIR__.'/../'; |
|
| 28 | + $this->composerPath = __DIR__ . '/../'; |
|
| 29 | 29 | $this->installComposer(); |
| 30 | - require_once __DIR__.DIRECTORY_SEPARATOR.'HtmlOutput.php'; |
|
| 30 | + require_once __DIR__ . DIRECTORY_SEPARATOR . 'HtmlOutput.php'; |
|
| 31 | 31 | $this->output = new HtmlOutput(); |
| 32 | 32 | putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer'); |
| 33 | 33 | // Improve performance when the xdebug extension is enabled |
| 34 | 34 | //putenv('COMPOSER_DISABLE_XDEBUG_WARN=1'); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function run(){ |
|
| 38 | - if($this->deleteCurrent){ |
|
| 37 | + public function run() { |
|
| 38 | + if ($this->deleteCurrent) { |
|
| 39 | 39 | $this->deleteCurrentDependencies(); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - if($this->doInstall){ |
|
| 42 | + if ($this->doInstall) { |
|
| 43 | 43 | $this->runComposer(); |
| 44 | - }else{ |
|
| 44 | + }else { |
|
| 45 | 45 | $this->output->writeln('$'); |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - private function deleteCurrentDependencies(){ |
|
| 49 | + private function deleteCurrentDependencies() { |
|
| 50 | 50 | |
| 51 | 51 | try { |
| 52 | 52 | $this->output->writeln('$ rm -rf vendor/*'); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - private function runComposer(){ |
|
| 59 | + private function runComposer() { |
|
| 60 | 60 | |
| 61 | 61 | $this->output->writeln('$ composer install'); |
| 62 | 62 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - private function installComposer(){ |
|
| 87 | + private function installComposer() { |
|
| 88 | 88 | $composerPhar = $this->composerPath . '/composer.phar'; |
| 89 | 89 | if (!file_exists($composerPhar)) { |
| 90 | 90 | $data = file_get_contents('https://getcomposer.org/composer.phar'); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | if($this->doInstall){ |
| 43 | 43 | $this->runComposer(); |
| 44 | - }else{ |
|
| 44 | + } else{ |
|
| 45 | 45 | $this->output->writeln('$'); |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | // Improve performance when the xdebug extension is enabled |
| 24 | 24 | putenv('COMPOSER_DISABLE_XDEBUG_WARN=1'); |
| 25 | 25 | |
| 26 | -require_once __DIR__.DIRECTORY_SEPARATOR."BrowserComposer.php"; |
|
| 26 | +require_once __DIR__ . DIRECTORY_SEPARATOR . "BrowserComposer.php"; |
|
| 27 | 27 | $composer = new BrowserComposer(); |
| 28 | 28 | $composer->run(); |