Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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