| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ColonParser extends Parser |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @inheritdoc |
||
| 9 | */ |
||
| 10 | protected function parseMatches(array $matches) |
||
| 11 | { |
||
| 12 | if (count($matches) > 1) { |
||
| 13 | |||
| 14 | // Get the last match on array, which contains the |
||
| 15 | // formatter options. |
||
| 16 | $formatter = last($matches); |
||
| 17 | |||
| 18 | return $this->callFormatter(...explode(':', $formatter)); |
||
|
|
|||
| 19 | } |
||
| 20 | |||
| 21 | return false; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | protected function getDynamicPattern() |
||
| 30 | } |
||
| 31 | } |