Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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