Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3823-3829 (lines=7) @@
3820
      return array();
3821
    }
3822
3823
    if (ctype_digit((string)$var1)) {
3824
      $start = (int)$var1;
3825
    } elseif (ctype_xdigit($var1)) {
3826
      $start = (int)self::hex_to_int($var1);
3827
    } else {
3828
      $start = self::ord($var1);
3829
    }
3830
3831
    if (!$start) {
3832
      return array();
@@ 3835-3841 (lines=7) @@
3832
      return array();
3833
    }
3834
3835
    if (ctype_digit((string)$var2)) {
3836
      $end = (int)$var2;
3837
    } elseif (ctype_xdigit($var2)) {
3838
      $end = (int)self::hex_to_int($var2);
3839
    } else {
3840
      $end = self::ord($var2);
3841
    }
3842
3843
    if (!$end) {
3844
      return array();