Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class IdConsumer extends GenericConsumer |
||
16 | { |
||
17 | /** |
||
18 | * Overridden to return patterns matching the beginning part of an ID ('<' |
||
19 | * and '>' chars). |
||
20 | * |
||
21 | * @return string[] the patterns |
||
22 | */ |
||
23 | 13 | public function getTokenSeparators() |
|
24 | { |
||
25 | 13 | return ['\s+', '<', '>']; |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * Returns true for '>'. |
||
30 | */ |
||
31 | 13 | protected function isEndToken($token) |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * Returns true for '<'. |
||
38 | * |
||
39 | * @param string $token |
||
40 | * @return boolean false |
||
41 | */ |
||
42 | 10 | protected function isStartToken($token) |
|
47 |