@@ -49,8 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | if (is_string($pathOrSpec)) { |
| 51 | 51 | $spec = $this->make($pathOrSpec); |
| 52 | - } |
|
| 53 | - else { |
|
| 52 | + } else { |
|
| 54 | 53 | $spec = $pathOrSpec; |
| 55 | 54 | } |
| 56 | 55 | |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | if (is_string($pathOrSpec)) { |
| 34 | 34 | $spec = new InputSpec(app('specs'), app('translator'), $pathOrSpec); |
| 35 | - } |
|
| 36 | - else { |
|
| 35 | + } else { |
|
| 37 | 36 | $spec = $pathOrSpec; |
| 38 | 37 | } |
| 39 | 38 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * Get the addon namespace. |
|
| 75 | + * Get the addon namespace. |
|
| 76 | 76 | * |
| 77 | 77 | * @return $string |
| 78 | 78 | */ |
@@ -116,8 +116,7 @@ |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | return $this->addon->path($directories[0]); |
| 119 | - } |
|
| 120 | - else { |
|
| 119 | + } else { |
|
| 121 | 120 | return parent::getRootDirectory(); |
| 122 | 121 | } |
| 123 | 122 | } |
@@ -50,12 +50,10 @@ |
||
| 50 | 50 | if (is_array($instance)) { |
| 51 | 51 | if ($instance['shared']) { |
| 52 | 52 | $this->output(array_get($instances, $name)); |
| 53 | - } |
|
| 54 | - else { |
|
| 53 | + } else { |
|
| 55 | 54 | $this->output($instance['concrete']); |
| 56 | 55 | } |
| 57 | - } |
|
| 58 | - else { |
|
| 56 | + } else { |
|
| 59 | 57 | $this->output($instance); |
| 60 | 58 | } |
| 61 | 59 | |
@@ -438,19 +438,19 @@ discard block |
||
| 438 | 438 | * @param string $command |
| 439 | 439 | * @return void |
| 440 | 440 | */ |
| 441 | - protected function registerMakeEventCommand($command) |
|
| 442 | - { |
|
| 443 | - $this->app->singleton($command, function ($app) { |
|
| 444 | - return new Generators\Commands\EventMakeCommand($app); |
|
| 445 | - }); |
|
| 446 | - } |
|
| 441 | + protected function registerMakeEventCommand($command) |
|
| 442 | + { |
|
| 443 | + $this->app->singleton($command, function ($app) { |
|
| 444 | + return new Generators\Commands\EventMakeCommand($app); |
|
| 445 | + }); |
|
| 446 | + } |
|
| 447 | 447 | |
| 448 | - /** |
|
| 449 | - * Register the command. |
|
| 450 | - * |
|
| 451 | - * @param string $command |
|
| 452 | - * @return void |
|
| 453 | - */ |
|
| 448 | + /** |
|
| 449 | + * Register the command. |
|
| 450 | + * |
|
| 451 | + * @param string $command |
|
| 452 | + * @return void |
|
| 453 | + */ |
|
| 454 | 454 | protected function registerMakeJobCommand($command) |
| 455 | 455 | { |
| 456 | 456 | $this->app->singleton($command, function ($app) { |
@@ -582,12 +582,12 @@ discard block |
||
| 582 | 582 | * @param string $command |
| 583 | 583 | * @return void |
| 584 | 584 | */ |
| 585 | - protected function registerMakeResourceCommand($command) |
|
| 586 | - { |
|
| 587 | - $this->app->singleton($command, function ($app) { |
|
| 588 | - return new Generators\Commands\ResourceMakeCommand($app); |
|
| 589 | - }); |
|
| 590 | - } |
|
| 585 | + protected function registerMakeResourceCommand($command) |
|
| 586 | + { |
|
| 587 | + $this->app->singleton($command, function ($app) { |
|
| 588 | + return new Generators\Commands\ResourceMakeCommand($app); |
|
| 589 | + }); |
|
| 590 | + } |
|
| 591 | 591 | |
| 592 | 592 | /** |
| 593 | 593 | * Register the command. |
@@ -595,19 +595,19 @@ discard block |
||
| 595 | 595 | * @param string $command |
| 596 | 596 | * @return void |
| 597 | 597 | */ |
| 598 | - protected function registerMakeRuleCommand($command) |
|
| 599 | - { |
|
| 600 | - $this->app->singleton($command, function ($app) { |
|
| 601 | - return new Generators\Commands\RuleMakeCommand($app); |
|
| 602 | - }); |
|
| 603 | - } |
|
| 598 | + protected function registerMakeRuleCommand($command) |
|
| 599 | + { |
|
| 600 | + $this->app->singleton($command, function ($app) { |
|
| 601 | + return new Generators\Commands\RuleMakeCommand($app); |
|
| 602 | + }); |
|
| 603 | + } |
|
| 604 | 604 | |
| 605 | - /** |
|
| 606 | - * Register the command. |
|
| 607 | - * |
|
| 608 | - * @param string $command |
|
| 609 | - * @return void |
|
| 610 | - */ |
|
| 605 | + /** |
|
| 606 | + * Register the command. |
|
| 607 | + * |
|
| 608 | + * @param string $command |
|
| 609 | + * @return void |
|
| 610 | + */ |
|
| 611 | 611 | protected function registerMakeSeederCommand($command) |
| 612 | 612 | { |
| 613 | 613 | $this->app->singleton($command, function ($app) { |