Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4217-4223 (lines=7) @@
4214
      return array();
4215
    }
4216
4217
    if (ctype_digit((string)$var1)) {
4218
      $start = (int)$var1;
4219
    } elseif (ctype_xdigit($var1)) {
4220
      $start = (int)self::hex_to_int($var1);
4221
    } else {
4222
      $start = self::ord($var1);
4223
    }
4224
4225
    if (!$start) {
4226
      return array();
@@ 4229-4235 (lines=7) @@
4226
      return array();
4227
    }
4228
4229
    if (ctype_digit((string)$var2)) {
4230
      $end = (int)$var2;
4231
    } elseif (ctype_xdigit($var2)) {
4232
      $end = (int)self::hex_to_int($var2);
4233
    } else {
4234
      $end = self::ord($var2);
4235
    }
4236
4237
    if (!$end) {
4238
      return array();