Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3637-3643 (lines=7) @@
3634
            $i++;
3635
          }
3636
3637
        } elseif (
3638
            isset($str[$i + 2])
3639
            &&
3640
            ($str[$i] & "\xF0") === "\xE0"
3641
        ) {
3642
3643
          if (
3644
              ($str[$i + 1] & "\xC0") === "\x80"
3645
              &&
3646
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 3659-3663 (lines=5) @@
3656
            ($str[$i] & "\xF8") === "\xF0"
3657
        ) {
3658
3659
          if (
3660
              ($str[$i + 1] & "\xC0") === "\x80"
3661
              &&
3662
              ($str[$i + 2] & "\xC0") === "\x80"
3663
              &&
3664
              ($str[$i + 3] & "\xC0") === "\x80"
3665
          ) {
3666
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];