Code Duplication    Length = 7-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4238-4244 (lines=7) @@
4235
      return array();
4236
    }
4237
4238
    if (ctype_digit((string)$var1)) {
4239
      $start = (int)$var1;
4240
    } elseif (ctype_xdigit($var1)) {
4241
      $start = (int)self::hex_to_int($var1);
4242
    } else {
4243
      $start = self::ord($var1);
4244
    }
4245
4246
    if (!$start) {
4247
      return array();
@@ 4250-4256 (lines=7) @@
4247
      return array();
4248
    }
4249
4250
    if (ctype_digit((string)$var2)) {
4251
      $end = (int)$var2;
4252
    } elseif (ctype_xdigit($var2)) {
4253
      $end = (int)self::hex_to_int($var2);
4254
    } else {
4255
      $end = self::ord($var2);
4256
    }
4257
4258
    if (!$end) {
4259
      return array();