Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3928-3934 (lines=7) @@
3925
      return array();
3926
    }
3927
3928
    if (ctype_digit((string)$var1)) {
3929
      $start = (int)$var1;
3930
    } elseif (ctype_xdigit($var1)) {
3931
      $start = (int)self::hex_to_int($var1);
3932
    } else {
3933
      $start = self::ord($var1);
3934
    }
3935
3936
    if (!$start) {
3937
      return array();
@@ 3940-3946 (lines=7) @@
3937
      return array();
3938
    }
3939
3940
    if (ctype_digit((string)$var2)) {
3941
      $end = (int)$var2;
3942
    } elseif (ctype_xdigit($var2)) {
3943
      $end = (int)self::hex_to_int($var2);
3944
    } else {
3945
      $end = self::ord($var2);
3946
    }
3947
3948
    if (!$end) {
3949
      return array();