Completed
Push — master ( 7ecfd2...c84e1c )
by Sergi Tur
03:37
created
src/Console/LlumCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
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){
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.