| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function isOK() |
||
| 26 | { |
||
| 27 | parent::isOK(); |
||
| 28 | if (in_array($this->value[0], ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '-'])) { |
||
| 29 | throw new \InvalidArgumentException('NCName cannot begin with a number, dot or minus character although' . |
||
| 30 | ' they can appear later in an NCName.'); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |