Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3237-3243 (lines=7) @@
3234
      return array();
3235
    }
3236
3237
    if (ctype_digit((string)$var1)) {
3238
      $start = (int)$var1;
3239
    } elseif (ctype_xdigit($var1)) {
3240
      $start = (int)self::hex_to_int($var1);
3241
    } else {
3242
      $start = self::ord($var1);
3243
    }
3244
3245
    if (!$start) {
3246
      return array();
@@ 3249-3255 (lines=7) @@
3246
      return array();
3247
    }
3248
3249
    if (ctype_digit((string)$var2)) {
3250
      $end = (int)$var2;
3251
    } elseif (ctype_xdigit($var2)) {
3252
      $end = (int)self::hex_to_int($var2);
3253
    } else {
3254
      $end = self::ord($var2);
3255
    }
3256
3257
    if (!$end) {
3258
      return array();