File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,23 +150,16 @@ public static function init()
150150 // much more bash-like.
151151 // http://www.php.net/manual/en/readline.installation.php
152152 static ::$ readline_support = extension_loaded ('readline ' );
153-
154153 // clear segments & options to keep testing clean
155154 static ::$ segments = [];
156155 static ::$ options = [];
157-
158156 // Check our stream resource for color support
159157 static ::$ isColored = static ::hasColorSupport (STDOUT );
160-
161158 static ::parseCommandLine ();
162-
163159 static ::$ initialized = true ;
164- } else {
165- // If the command is being called from a controller
166- // we need to define STDOUT ourselves
167- if (! defined ('STDOUT ' )) {
168- define ('STDOUT ' , 'php://output ' ); // @codeCoverageIgnore
169- }
160+ } elseif (! defined ('STDOUT ' )) {
161+ define ('STDOUT ' , 'php://output ' );
162+ // @codeCoverageIgnore
170163 }
171164 }
172165
You can’t perform that action at this time.
0 commit comments