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