Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3563-3569 (lines=7) @@
3560
            $i++;
3561
          }
3562
3563
        } elseif (
3564
            isset($str[$i + 2])
3565
            &&
3566
            ($str[$i] & "\xF0") === "\xE0"
3567
        ) {
3568
3569
          if (
3570
              ($str[$i + 1] & "\xC0") === "\x80"
3571
              &&
3572
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 3585-3589 (lines=5) @@
3582
            ($str[$i] & "\xF8") === "\xF0"
3583
        ) {
3584
3585
          if (
3586
              ($str[$i + 1] & "\xC0") === "\x80"
3587
              &&
3588
              ($str[$i + 2] & "\xC0") === "\x80"
3589
              &&
3590
              ($str[$i + 3] & "\xC0") === "\x80"
3591
          ) {
3592
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];