Passed
Push — master ( 244bf6...cc00b6 )
by Timm
01:59
created
src/Stefaminator/Cli/Cmd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Stefaminator/Cli/CmdRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Stefaminator/Cli/AppParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Stefaminator/Cli/HelpRunner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
examples/cli-app-options.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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
                         }
Please login to merge, or discard this patch.