Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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