@@ -75,7 +75,7 @@ |
||
75 | 75 | public function command($name, $value = null) |
76 | 76 | { |
77 | 77 | if (null === $value) { |
78 | - if (! $this->hasCommand($name)) { |
|
78 | + if (!$this->hasCommand($name)) { |
|
79 | 79 | throw new CommandNotFound("Unable to find the command '{$name}'"); |
80 | 80 | } |
81 | 81 | return $this->store->get($name); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | class HelpCommand extends SubCommand { |
14 | 14 | |
15 | - protected function init () |
|
15 | + protected function init() |
|
16 | 16 | { |
17 | 17 | $this |
18 | 18 | ->name('Help') |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | ->syntax('[command]'); |
22 | 22 | } |
23 | 23 | |
24 | - protected function execute () |
|
24 | + protected function execute() |
|
25 | 25 | { |
26 | 26 | $command = trim($this->args->command); |
27 | 27 | if (empty($command) || !$this->parent()->hasCommand($command)) |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param Command $command |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - protected function showHelpOf (Command $command) |
|
39 | + protected function showHelpOf(Command $command) |
|
40 | 40 | { |
41 | 41 | $c = $this->console(); |
42 | 42 |
@@ -24,10 +24,11 @@ |
||
24 | 24 | protected function execute () |
25 | 25 | { |
26 | 26 | $command = trim($this->args->command); |
27 | - if (empty($command) || !$this->parent()->hasCommand($command)) |
|
28 | - $this->showHelpOf($this->parent); |
|
29 | - else |
|
30 | - $this->showHelpOf($this->parent->command($command)); |
|
27 | + if (empty($command) || !$this->parent()->hasCommand($command)) { |
|
28 | + $this->showHelpOf($this->parent); |
|
29 | + } else { |
|
30 | + $this->showHelpOf($this->parent->command($command)); |
|
31 | + } |
|
31 | 32 | } |
32 | 33 | |
33 | 34 | /** |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | */ |
8 | 8 | class VersionCommand extends SubCommand { |
9 | 9 | |
10 | - protected function init () |
|
10 | + protected function init() |
|
11 | 11 | { |
12 | 12 | $this |
13 | 13 | ->name('Version') |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | ->description('Shows the version of the command'); |
16 | 16 | } |
17 | 17 | |
18 | - protected function execute () |
|
18 | + protected function execute() |
|
19 | 19 | { |
20 | 20 | $c = $this->parent(); |
21 | 21 | $this->console |
@@ -326,7 +326,7 @@ |
||
326 | 326 | $this->error($errors); |
327 | 327 | } else { |
328 | 328 | $this->args($this->syntax()->parse($args)) |
329 | - ->execute(); |
|
329 | + ->execute(); |
|
330 | 330 | } |
331 | 331 | } |
332 | 332 | } catch (\Exception $e) { |