@@ -377,7 +377,7 @@ |
||
| 377 | 377 | /** |
| 378 | 378 | * Obtain package. |
| 379 | 379 | * |
| 380 | - * @param $name |
|
| 380 | + * @param string $name |
|
| 381 | 381 | * @return array|int |
| 382 | 382 | */ |
| 383 | 383 | private function obtainPackage($name){ |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | private function testLaravelConfigFileExists() |
| 173 | 173 | { |
| 174 | - if (! $this->checkIfLaravelConfigFileExists()) { |
|
| 174 | + if (!$this->checkIfLaravelConfigFileExists()) { |
|
| 175 | 175 | $this->output->writeln('<error>File '.$this->laravel_config_file.' doesn\'t exists'); |
| 176 | 176 | |
| 177 | 177 | return -1; |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | |
| 266 | 266 | $process = new Process($composer.' require '.$package.'', null, null, null, null); |
| 267 | 267 | $this->output->writeln('<info>Running composer require '.$package.'</info>'); |
| 268 | - $process->run(function ($type, $line) { |
|
| 268 | + $process->run(function($type, $line) { |
|
| 269 | 269 | $this->output->write($line); |
| 270 | 270 | }); |
| 271 | 271 | } |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | |
| 370 | 370 | $this->requireComposerPackage($name); |
| 371 | 371 | |
| 372 | - $this->setupLaravelConfigFile($providers,$aliases); |
|
| 372 | + $this->setupLaravelConfigFile($providers, $aliases); |
|
| 373 | 373 | |
| 374 | 374 | $this->executeScriptAfterPackageInstallation($after); |
| 375 | 375 | } |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | * @param $name |
| 381 | 381 | * @return array|int |
| 382 | 382 | */ |
| 383 | - private function obtainPackage($name){ |
|
| 383 | + private function obtainPackage($name) { |
|
| 384 | 384 | $package = $this->getPackageFromConfig($name); |
| 385 | 385 | |
| 386 | 386 | if ($package == null) { |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | * |
| 397 | 397 | * @param $after |
| 398 | 398 | */ |
| 399 | - private function executeScriptAfterPackageInstallation($after){ |
|
| 399 | + private function executeScriptAfterPackageInstallation($after) { |
|
| 400 | 400 | if ($after != null) { |
| 401 | 401 | passthru($after); |
| 402 | 402 | } |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | $name = $command->name(); |
| 495 | 495 | $description = $command->description(); |
| 496 | 496 | |
| 497 | - if (! is_string($name) || ! is_string($description)) { |
|
| 497 | + if (!is_string($name) || !is_string($description)) { |
|
| 498 | 498 | throw new InvalidCommandException; |
| 499 | 499 | } |
| 500 | 500 | |