| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function parseElement(\DOMElement $element) |
||
| 14 | { |
||
| 15 | if ($element->hasAttribute(CodepointAssignedParser::ATTR_CODEPOINT)) { |
||
| 16 | return 1; |
||
| 17 | } |
||
| 18 | |||
| 19 | $first = hexdec($element->getAttribute(CodepointAssignedParser::ATTR_CODEPOINT_FIRST)); |
||
| 20 | $last = hexdec($element->getAttribute(CodepointAssignedParser::ATTR_CODEPOINT_LAST)); |
||
| 21 | |||
| 22 | return $last - $first + 1; |
||
| 23 | } |
||
| 24 | } |