Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4.0466 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | 2 | protected function token(Token $token) |
|
51 | { |
||
52 | 2 | $style = ArrayHelper::resolve($this->_styles, $token->name); |
|
53 | |||
54 | 2 | if ($style === null) { |
|
55 | return null; |
||
56 | } |
||
57 | |||
58 | 2 | return $token->isStart() |
|
59 | 2 | ? Console::open(is_callable($style) ? $style($token) : $style) |
|
60 | 2 | : Console::close(); |
|
61 | } |
||
73 |