Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4158-4164 (lines=7) @@
4155
            $i++;
4156
          }
4157
4158
        } elseif (
4159
            isset($str[$i + 2])
4160
            &&
4161
            ($str[$i] & "\xF0") === "\xE0"
4162
        ) {
4163
4164
          if (
4165
              ($str[$i + 1] & "\xC0") === "\x80"
4166
              &&
4167
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4180-4184 (lines=5) @@
4177
            ($str[$i] & "\xF8") === "\xF0"
4178
        ) {
4179
4180
          if (
4181
              ($str[$i + 1] & "\xC0") === "\x80"
4182
              &&
4183
              ($str[$i + 2] & "\xC0") === "\x80"
4184
              &&
4185
              ($str[$i + 3] & "\xC0") === "\x80"
4186
          ) {
4187
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];