@@ -81,9 +81,9 @@ |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | $output->writeln( |
| 84 | - '<info>Running composer require ' . $package .'</info>' |
|
| 84 | + '<info>Running composer require ' . $package . '</info>' |
|
| 85 | 85 | ); |
| 86 | - $process->run(function ($type, $line) use ($output) { |
|
| 86 | + $process->run(function($type, $line) use ($output) { |
|
| 87 | 87 | $output->write($line); |
| 88 | 88 | }); |
| 89 | 89 | |
@@ -52,15 +52,15 @@ |
||
| 52 | 52 | protected function execute(InputInterface $input, OutputInterface $output) |
| 53 | 53 | { |
| 54 | 54 | $process = new Process( |
| 55 | - $this->findComposer() .' require ' . $package = $this->getPackageName() . $this->getDevSuffix($input), |
|
| 55 | + $this->findComposer() . ' require ' . $package = $this->getPackageName() . $this->getDevSuffix($input), |
|
| 56 | 56 | null, |
| 57 | 57 | null, |
| 58 | 58 | null, |
| 59 | 59 | null |
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | - $output->writeln('<info>Running composer require ' . $package .'</info>'); |
|
| 63 | - $process->run(function ($type, $line) use ($output) { |
|
| 62 | + $output->writeln('<info>Running composer require ' . $package . '</info>'); |
|
| 63 | + $process->run(function($type, $line) use ($output) { |
|
| 64 | 64 | $output->write($line); |
| 65 | 65 | }); |
| 66 | 66 | |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | protected function findComposer() |
| 18 | 18 | { |
| 19 | - if (file_exists(getcwd().'/composer.phar')) { |
|
| 20 | - return '"'.PHP_BINARY.'" composer.phar"'; |
|
| 19 | + if (file_exists(getcwd() . '/composer.phar')) { |
|
| 20 | + return '"' . PHP_BINARY . '" composer.phar"'; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | return 'composer'; |