@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__.'/../vendor/autoload.php'; |
|
3 | +require __DIR__ . '/../vendor/autoload.php'; |
@@ -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'; |
@@ -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 |
@@ -60,20 +60,20 @@ discard block |
||
60 | 60 | $composer = $this->findComposer(); |
61 | 61 | |
62 | 62 | $commands = [ |
63 | - $composer.' require '.$this->getPackageName().$this->getDevSuffix($input), |
|
64 | - $composer.' require --dev laravel/dusk', |
|
63 | + $composer . ' require ' . $this->getPackageName() . $this->getDevSuffix($input), |
|
64 | + $composer . ' require --dev laravel/dusk', |
|
65 | 65 | ]; |
66 | 66 | |
67 | 67 | if ($input->getOption('no-ansi')) { |
68 | - $commands = array_map(function ($value) { |
|
69 | - return $value.' --no-ansi'; |
|
68 | + $commands = array_map(function($value) { |
|
69 | + return $value . ' --no-ansi'; |
|
70 | 70 | }, $commands); |
71 | 71 | } |
72 | 72 | |
73 | 73 | $force = $input->getOption('dontforce') ? '' : ' --force'; |
74 | 74 | $commands = array_merge($commands, [ |
75 | 75 | 'php artisan dusk:install', |
76 | - 'php artisan adminlte:publish'.$force, |
|
76 | + 'php artisan adminlte:publish' . $force, |
|
77 | 77 | ]); |
78 | 78 | |
79 | 79 | $process = new Process( |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | $process->setTty(true); |
89 | 89 | } |
90 | 90 | |
91 | - $output->writeln('<info>Running '.$runningCommand.'</info>'); |
|
92 | - $process->run(function ($type, $line) use ($output) { |
|
91 | + $output->writeln('<info>Running ' . $runningCommand . '</info>'); |
|
92 | + $process->run(function($type, $line) use ($output) { |
|
93 | 93 | $output->write($line); |
94 | 94 | }); |
95 | 95 | } |