Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3715-3721 (lines=7) @@
3712
      return array();
3713
    }
3714
3715
    if (ctype_digit((string)$var1)) {
3716
      $start = (int)$var1;
3717
    } elseif (ctype_xdigit($var1)) {
3718
      $start = (int)self::hex_to_int($var1);
3719
    } else {
3720
      $start = self::ord($var1);
3721
    }
3722
3723
    if (!$start) {
3724
      return array();
@@ 3727-3733 (lines=7) @@
3724
      return array();
3725
    }
3726
3727
    if (ctype_digit((string)$var2)) {
3728
      $end = (int)$var2;
3729
    } elseif (ctype_xdigit($var2)) {
3730
      $end = (int)self::hex_to_int($var2);
3731
    } else {
3732
      $end = self::ord($var2);
3733
    }
3734
3735
    if (!$end) {
3736
      return array();