Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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