@@ -153,7 +153,7 @@ |
||
153 | 153 | $r = []; |
154 | 154 | if ($this->optionResult !== null) { |
155 | 155 | $keys = array_keys($this->optionResult->keys); |
156 | - foreach($keys as $key) { |
|
156 | + foreach ($keys as $key) { |
|
157 | 157 | $r[$key] = $this->getProvidedOption($key); |
158 | 158 | } |
159 | 159 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @param Cmd $cmd |
17 | 17 | */ |
18 | 18 | public function __construct(Cmd $cmd = null) { |
19 | - if($cmd !== null) { |
|
19 | + if ($cmd !== null) { |
|
20 | 20 | $this->cmd = $cmd; |
21 | 21 | return; |
22 | 22 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | |
62 | 62 | $runner = $cmd->getRunner(); |
63 | 63 | |
64 | - if($runner !== null) { |
|
64 | + if ($runner !== null) { |
|
65 | 65 | $runner->run(); |
66 | 66 | return true; |
67 | 67 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | $runner = $cmd->getRunner(); |
173 | 173 | |
174 | - if($runner === null) { |
|
174 | + if ($runner === null) { |
|
175 | 175 | return; |
176 | 176 | } |
177 | 177 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $runner->help(); |
180 | 180 | $help = ob_get_clean(); |
181 | 181 | |
182 | - if(empty($help)) { |
|
182 | + if (empty($help)) { |
|
183 | 183 | return; |
184 | 184 | } |
185 | 185 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | ' This is the custom help for ' . Color::green('cli-app-options') . ' command. ' . self::EOL . |
84 | 84 | ' Please use the --name option to pass your name to this command and you will be greeted personally. ' . self::EOL . |
85 | 85 | ' ' . self::EOL . |
86 | - ' ' . Color::green('php cli-app-options.php --name="great Stefaminator"') . self::EOL ; |
|
86 | + ' ' . Color::green('php cli-app-options.php --name="great Stefaminator"') . self::EOL; |
|
87 | 87 | |
88 | 88 | |
89 | 89 | } |