Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3744-3750 (lines=7) @@
3741
      return array();
3742
    }
3743
3744
    if (ctype_digit((string)$var1)) {
3745
      $start = (int)$var1;
3746
    } elseif (ctype_xdigit($var1)) {
3747
      $start = (int)self::hex_to_int($var1);
3748
    } else {
3749
      $start = self::ord($var1);
3750
    }
3751
3752
    if (!$start) {
3753
      return array();
@@ 3756-3762 (lines=7) @@
3753
      return array();
3754
    }
3755
3756
    if (ctype_digit((string)$var2)) {
3757
      $end = (int)$var2;
3758
    } elseif (ctype_xdigit($var2)) {
3759
      $end = (int)self::hex_to_int($var2);
3760
    } else {
3761
      $end = self::ord($var2);
3762
    }
3763
3764
    if (!$end) {
3765
      return array();