Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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