Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3749-3755 (lines=7) @@
3746
            $i++;
3747
          }
3748
3749
        } elseif (
3750
            isset($str[$i + 2])
3751
            &&
3752
            ($str[$i] & "\xF0") === "\xE0"
3753
        ) {
3754
3755
          if (
3756
              ($str[$i + 1] & "\xC0") === "\x80"
3757
              &&
3758
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 3771-3775 (lines=5) @@
3768
            ($str[$i] & "\xF8") === "\xF0"
3769
        ) {
3770
3771
          if (
3772
              ($str[$i + 1] & "\xC0") === "\x80"
3773
              &&
3774
              ($str[$i + 2] & "\xC0") === "\x80"
3775
              &&
3776
              ($str[$i + 3] & "\xC0") === "\x80"
3777
          ) {
3778
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];