Completed
Pull Request — master (#7)
by Amine
01:34
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/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
             $description = $parent->describe($option);
49 49
             $bool = $this->read($this->confirmSyntax, $option, true);
50 50
             $parent->options[$option] = $bool;
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
         $done = false;
145 145
         $text = '';
146 146
         $result = null;
147
-        while (! $done) {
147
+        while (!$done) {
148 148
             $c = $this->readChar();
149
-            switch($c) {
149
+            switch ($c) {
150 150
                 case 'enter':
151 151
                     $done = true;
152 152
                 break;
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.