| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | private function flattenRange(Range $range) |
||
| 46 | { |
||
| 47 | if ($range->representsSingleCodepoint()) { |
||
| 48 | return $this->flattenCodepoint($range->getStart()); |
||
| 49 | } |
||
| 50 | |||
| 51 | $start = $range->getStart(); |
||
| 52 | $end = $range->getEnd(); |
||
| 53 | |||
| 54 | return sprintf('\x{%X}-\x{%X}', $start->getValue(), $end->getValue()); |
||
| 55 | } |
||
| 56 | |||
| 66 | } |