Total Complexity | 8 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 73.68% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | class CliFormatter extends AbstractFormatter implements FormatterInterface |
||
30 | { |
||
31 | private $_styles = []; |
||
32 | |||
33 | /** |
||
34 | * CliFormatter constructor. |
||
35 | */ |
||
36 | 37 | public function __construct(array $options = []) |
|
37 | { |
||
38 | 37 | parent::__construct(array_replace_recursive([ |
|
39 | 37 | 'styles' => include __DIR__ . '/../Styles/Cli/Default.php' |
|
40 | 37 | ], $options)); |
|
41 | |||
42 | 37 | $this->_styles = $this->_options['styles']; |
|
43 | 37 | } |
|
44 | |||
45 | 2 | public function format(Tokens $tokens) |
|
48 | } |
||
49 | |||
50 | 2 | protected function token(Token $token) |
|
61 | } |
||
62 | |||
63 | protected function formatLineStart($line) |
||
66 | } |
||
67 | |||
68 | protected function formatLineEnd($line) |
||
73 |