Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 3559-3565 (lines=7) @@
3556
            $i++;
3557
          }
3558
3559
        } elseif (
3560
            isset($str[$i + 2])
3561
            &&
3562
            ($str[$i] & "\xF0") === "\xE0"
3563
        ) {
3564
3565
          if (
3566
              ($str[$i + 1] & "\xC0") === "\x80"
3567
              &&
3568
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 3581-3585 (lines=5) @@
3578
            ($str[$i] & "\xF8") === "\xF0"
3579
        ) {
3580
3581
          if (
3582
              ($str[$i + 1] & "\xC0") === "\x80"
3583
              &&
3584
              ($str[$i + 2] & "\xC0") === "\x80"
3585
              &&
3586
              ($str[$i + 3] & "\xC0") === "\x80"
3587
          ) {
3588
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];