Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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