Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4064-4070 (lines=7) @@
4061
            $i++;
4062
          }
4063
4064
        } elseif (
4065
            isset($str[$i + 2])
4066
            &&
4067
            ($str[$i] & "\xF0") === "\xE0"
4068
        ) {
4069
4070
          if (
4071
              ($str[$i + 1] & "\xC0") === "\x80"
4072
              &&
4073
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4086-4090 (lines=5) @@
4083
            ($str[$i] & "\xF8") === "\xF0"
4084
        ) {
4085
4086
          if (
4087
              ($str[$i + 1] & "\xC0") === "\x80"
4088
              &&
4089
              ($str[$i + 2] & "\xC0") === "\x80"
4090
              &&
4091
              ($str[$i + 3] & "\xC0") === "\x80"
4092
          ) {
4093
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];