Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3869-3875 (lines=7) @@
3866
      return array();
3867
    }
3868
3869
    if (ctype_digit((string)$var1)) {
3870
      $start = (int)$var1;
3871
    } elseif (ctype_xdigit($var1)) {
3872
      $start = (int)self::hex_to_int($var1);
3873
    } else {
3874
      $start = self::ord($var1);
3875
    }
3876
3877
    if (!$start) {
3878
      return array();
@@ 3881-3887 (lines=7) @@
3878
      return array();
3879
    }
3880
3881
    if (ctype_digit((string)$var2)) {
3882
      $end = (int)$var2;
3883
    } elseif (ctype_xdigit($var2)) {
3884
      $end = (int)self::hex_to_int($var2);
3885
    } else {
3886
      $end = self::ord($var2);
3887
    }
3888
3889
    if (!$end) {
3890
      return array();