Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function beforeNumber(Number $node): void |
||
36 | { |
||
37 | if ($node->getValue() && !ctype_digit($node->getValue())) { |
||
38 | $this->getErrorObject()->addError( |
||
39 | "%s node value '%s' is not numerical on line %s", |
||
40 | $node->getName(), |
||
41 | (string)$node->getValue(), |
||
42 | (string)$node->getLineNr() |
||
43 | ); |
||
47 |