| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function visitMessageNode(MessageNode $node) |
||
| 34 | { |
||
| 35 | if (!isset(Messages::MESSAGE_MAP[$node->getValue()])) { |
||
| 36 | return $this->addError( |
||
| 37 | "Invalid message id %s on line %s", |
||
| 38 | $node->getValue(), |
||
| 39 | (string)$node->getLineNr() |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | $node->setAttribute( |
||
| 44 | 'message', |
||
| 45 | Messages::MESSAGE_MAP[$node->getValue()] |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |