Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4165-4171 (lines=7) @@
4162
            $i++;
4163
          }
4164
4165
        } elseif (
4166
            isset($str[$i + 2])
4167
            &&
4168
            ($str[$i] & "\xF0") === "\xE0"
4169
        ) {
4170
4171
          if (
4172
              ($str[$i + 1] & "\xC0") === "\x80"
4173
              &&
4174
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4187-4191 (lines=5) @@
4184
            ($str[$i] & "\xF8") === "\xF0"
4185
        ) {
4186
4187
          if (
4188
              ($str[$i + 1] & "\xC0") === "\x80"
4189
              &&
4190
              ($str[$i + 2] & "\xC0") === "\x80"
4191
              &&
4192
              ($str[$i + 3] & "\xC0") === "\x80"
4193
          ) {
4194
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];