Completed
Push — master ( 9573eb...833af1 )
by Amine
11s
created
src/Command.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         }
144 144
 
145 145
         $this->options = [];
146
-        foreach($options as $option)
146
+        foreach ($options as $option)
147 147
             $this->options[$option] = false;
148 148
 
149 149
         return $this;
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     protected function clear()
366 366
     {
367 367
         $this->args = null;
368
-        foreach($this->options as $name => $value) {
368
+        foreach ($this->options as $name => $value) {
369 369
             $this->options[$name] = false;
370 370
         }
371 371
     }
Please login to merge, or discard this patch.
src/Commands/HelpCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@
 block discarded – undo
88 88
             $default = 'default: ' . json_encode($s->getDefault());
89 89
         else
90 90
             $default = 'required';
91
-        $description = $this->parent()->describe($prefix.$name);
91
+        $description = $this->parent()->describe($prefix . $name);
92 92
         $syntax = $this->helper->asString($s);
93 93
         $text   = "{$tabs}<warn>{$name}</warn> <success>{$syntax}</success>"
94 94
                 . " {$description} <info>({$default})</info><br>";
95
-        $level ++;
95
+        $level++;
96 96
         $prefix .= $name . '.';
97 97
         foreach ($this->helper->fields($s) as $field => $syntax) {
98 98
             $text .= $this->fieldHelp($field, $syntax, $prefix, $level);
Please login to merge, or discard this patch.
src/Commands/InteractiveCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $options = array_keys($parent->options());
46 46
         $chosen = [];
47
-        foreach($options as $option) {
47
+        foreach ($options as $option) {
48 48
             $bool = $this->read($this->confirmSyntax, $option, true);
49 49
             $parent->options[$option] = $bool;
50 50
             if ($bool) {
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
         $done = false;
144 144
         $text = '';
145 145
         $result = null;
146
-        while (! $done) {
146
+        while (!$done) {
147 147
             $c = $this->readChar();
148
-            switch($c) {
148
+            switch ($c) {
149 149
                 case 'enter':
150 150
                     $done = true;
151 151
                 break;
Please login to merge, or discard this patch.