Skip to content

Commit 6c49d2d

Browse files
committed
style: run rector
1 parent ed85aa5 commit 6c49d2d

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

system/CLI/CLI.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)