Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4340-4346 (lines=7) @@
4337
            $i++;
4338
          }
4339
4340
        } elseif (
4341
            isset($str[$i + 2])
4342
            &&
4343
            ($str[$i] & "\xF0") === "\xE0"
4344
        ) {
4345
4346
          if (
4347
              ($str[$i + 1] & "\xC0") === "\x80"
4348
              &&
4349
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4362-4366 (lines=5) @@
4359
            ($str[$i] & "\xF8") === "\xF0"
4360
        ) {
4361
4362
          if (
4363
              ($str[$i + 1] & "\xC0") === "\x80"
4364
              &&
4365
              ($str[$i + 2] & "\xC0") === "\x80"
4366
              &&
4367
              ($str[$i + 3] & "\xC0") === "\x80"
4368
          ) {
4369
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];