@@ -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 | } |
@@ -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); |
@@ -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 | $bool = $this->read($this->confirmSyntax, $option, true); |
| 49 | 49 | $parent->options[$option] = $bool; |
| 50 | 50 | if ($bool) { |
@@ -143,9 +143,9 @@ discard block |
||
| 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; |