Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3249-3255 (lines=7) @@
3246
      return array();
3247
    }
3248
3249
    if (ctype_digit((string)$var1)) {
3250
      $start = (int)$var1;
3251
    } elseif (ctype_xdigit($var1)) {
3252
      $start = (int)self::hex_to_int($var1);
3253
    } else {
3254
      $start = self::ord($var1);
3255
    }
3256
3257
    if (!$start) {
3258
      return array();
@@ 3261-3267 (lines=7) @@
3258
      return array();
3259
    }
3260
3261
    if (ctype_digit((string)$var2)) {
3262
      $end = (int)$var2;
3263
    } elseif (ctype_xdigit($var2)) {
3264
      $end = (int)self::hex_to_int($var2);
3265
    } else {
3266
      $end = self::ord($var2);
3267
    }
3268
3269
    if (!$end) {
3270
      return array();