Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4237-4243 (lines=7) @@
4234
      return array();
4235
    }
4236
4237
    if (ctype_digit((string)$var1)) {
4238
      $start = (int)$var1;
4239
    } elseif (ctype_xdigit($var1)) {
4240
      $start = (int)self::hex_to_int($var1);
4241
    } else {
4242
      $start = self::ord($var1);
4243
    }
4244
4245
    if (!$start) {
4246
      return array();
@@ 4249-4255 (lines=7) @@
4246
      return array();
4247
    }
4248
4249
    if (ctype_digit((string)$var2)) {
4250
      $end = (int)$var2;
4251
    } elseif (ctype_xdigit($var2)) {
4252
      $end = (int)self::hex_to_int($var2);
4253
    } else {
4254
      $end = self::ord($var2);
4255
    }
4256
4257
    if (!$end) {
4258
      return array();