@@ -143,7 +143,7 @@ discard block |
||
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 |
||
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 | } |
@@ -44,7 +44,7 @@ discard block |
||
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 |
||
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; |
@@ -88,11 +88,11 @@ |
||
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); |