@@ -21,7 +21,7 @@ |
||
21 | 21 | protected function configure() |
22 | 22 | { |
23 | 23 | $this->setName('download') |
24 | - ->setDescription('Download laravel builds.'); |
|
24 | + ->setDescription('Download laravel builds.'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -104,12 +104,12 @@ |
||
104 | 104 | |
105 | 105 | $client = new Client(); |
106 | 106 | $request = $client->createRequest('GET', $buildUrl); |
107 | - $request->getEmitter()->on('progress', function (ProgressEvent $e) use ($progressBar) { |
|
107 | + $request->getEmitter()->on('progress', function(ProgressEvent $e) use ($progressBar) { |
|
108 | 108 | if ($e->downloaded > 0) { |
109 | 109 | $localProgress = floor(($e->downloaded / $e->downloadSize * 100)); |
110 | 110 | |
111 | 111 | if ($localProgress != $this->progress) { |
112 | - $this->progress = (integer)$localProgress; |
|
112 | + $this->progress = (integer) $localProgress; |
|
113 | 113 | $progressBar->advance(); |
114 | 114 | } |
115 | 115 | } |
@@ -33,13 +33,13 @@ |
||
33 | 33 | protected function configure() |
34 | 34 | { |
35 | 35 | $this->setName('new') |
36 | - ->setDescription('Create a new Laravel application.') |
|
37 | - ->addArgument('name', InputArgument::REQUIRED) |
|
38 | - ->addOption('slim', null, InputOption::VALUE_NONE) |
|
39 | - ->addOption('force', null, InputOption::VALUE_NONE) |
|
40 | - ->addOption('laravelOnly', null, InputOption::VALUE_NONE) |
|
41 | - ->addOption('lumen', null, InputOption::VALUE_NONE) |
|
42 | - ->addOption('lumenOnly', null, InputOption::VALUE_NONE); |
|
36 | + ->setDescription('Create a new Laravel application.') |
|
37 | + ->addArgument('name', InputArgument::REQUIRED) |
|
38 | + ->addOption('slim', null, InputOption::VALUE_NONE) |
|
39 | + ->addOption('force', null, InputOption::VALUE_NONE) |
|
40 | + ->addOption('laravelOnly', null, InputOption::VALUE_NONE) |
|
41 | + ->addOption('lumen', null, InputOption::VALUE_NONE) |
|
42 | + ->addOption('lumenOnly', null, InputOption::VALUE_NONE); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | $process = new Process(implode(' && ', $commands), $this->directory, null, null, null); |
160 | 160 | |
161 | - $process->run(function ($type, $line) { |
|
161 | + $process->run(function($type, $line) { |
|
162 | 162 | $this->output->write($line); |
163 | 163 | }); |
164 | 164 | |
@@ -258,12 +258,12 @@ discard block |
||
258 | 258 | |
259 | 259 | $client = new Client(); |
260 | 260 | $request = $client->createRequest('GET', $buildUrl); |
261 | - $request->getEmitter()->on('progress', function (ProgressEvent $e) use ($progressBar) { |
|
261 | + $request->getEmitter()->on('progress', function(ProgressEvent $e) use ($progressBar) { |
|
262 | 262 | if ($e->downloaded > 0) { |
263 | 263 | $localProgress = floor(($e->downloaded / $e->downloadSize * 100)); |
264 | 264 | |
265 | 265 | if ($localProgress != $this->progress) { |
266 | - $this->progress = (integer)$localProgress; |
|
266 | + $this->progress = (integer) $localProgress; |
|
267 | 267 | $progressBar->advance(); |
268 | 268 | } |
269 | 269 | } |