@@ 25-35 (lines=11) @@ | ||
22 | class MigrateController extends \yii\console\controllers\MigrateController |
|
23 | { |
|
24 | ||
25 | public function stdout($string) |
|
26 | { |
|
27 | if ($this->isColorEnabled()) { |
|
28 | $args = \func_get_args(); |
|
29 | \array_shift($args); |
|
30 | $string = Console::ansiFormat($string, $args); |
|
31 | } |
|
32 | ||
33 | echo $string; |
|
34 | return \strlen($string); |
|
35 | } |
|
36 | ||
37 | public function beforeAction($action) |
|
38 | { |
@@ 185-195 (lines=11) @@ | ||
182 | return $result; |
|
183 | } |
|
184 | ||
185 | public function stdout($string) |
|
186 | { |
|
187 | if ($this->isColorEnabled()) { |
|
188 | $args = \func_get_args(); |
|
189 | \array_shift($args); |
|
190 | $string = Console::ansiFormat($string, $args); |
|
191 | } |
|
192 | ||
193 | echo $string; |
|
194 | return \strlen($string); |
|
195 | } |
|
196 | ||
197 | ||
198 | } |