| Conditions | 5 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 11.4436 |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | 2 | protected function doVisitToken(Token $token) { |
|
| 9 | // multiline |
||
| 10 | 2 | if ($token->type == T_DOC_COMMENT |
|
| 11 | 2 | || $token->type == T_INLINE_HTML && strpos($token->contents, '/*') !== 0) { |
|
| 12 | |||
| 13 | $lines = explode("\n", $token->contents); |
||
| 14 | $firstLine = array_shift($lines); |
||
| 15 | $this->writer->writeln(); |
||
| 16 | $this->writer->writeln($firstLine); |
||
| 17 | |||
| 18 | foreach ($lines as $line) { |
||
| 19 | $this->writer->writeln(' ' . ltrim($line)); |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->defaultFormatter->hideToken(); |
||
| 23 | } |
||
| 24 | 2 | } |
|
| 25 | |||
| 32 |