Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3734-3740 (lines=7) @@
3731
      return array();
3732
    }
3733
3734
    if (ctype_digit((string)$var1)) {
3735
      $start = (int)$var1;
3736
    } elseif (ctype_xdigit($var1)) {
3737
      $start = (int)self::hex_to_int($var1);
3738
    } else {
3739
      $start = self::ord($var1);
3740
    }
3741
3742
    if (!$start) {
3743
      return array();
@@ 3746-3752 (lines=7) @@
3743
      return array();
3744
    }
3745
3746
    if (ctype_digit((string)$var2)) {
3747
      $end = (int)$var2;
3748
    } elseif (ctype_xdigit($var2)) {
3749
      $end = (int)self::hex_to_int($var2);
3750
    } else {
3751
      $end = self::ord($var2);
3752
    }
3753
3754
    if (!$end) {
3755
      return array();