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