Completed
Push — master ( d4eb54...48b451 )
by Amine
08:06
created
src/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Commands/HelpCommand.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,11 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Commands/VersionCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Command.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.