Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4022-4028 (lines=7) @@
4019
      return array();
4020
    }
4021
4022
    if (ctype_digit((string)$var1)) {
4023
      $start = (int)$var1;
4024
    } elseif (ctype_xdigit($var1)) {
4025
      $start = (int)self::hex_to_int($var1);
4026
    } else {
4027
      $start = self::ord($var1);
4028
    }
4029
4030
    if (!$start) {
4031
      return array();
@@ 4034-4040 (lines=7) @@
4031
      return array();
4032
    }
4033
4034
    if (ctype_digit((string)$var2)) {
4035
      $end = (int)$var2;
4036
    } elseif (ctype_xdigit($var2)) {
4037
      $end = (int)self::hex_to_int($var2);
4038
    } else {
4039
      $end = self::ord($var2);
4040
    }
4041
4042
    if (!$end) {
4043
      return array();