Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4249-4255 (lines=7) @@
4246
            $i++;
4247
          }
4248
4249
        } elseif (
4250
            isset($str[$i + 2])
4251
            &&
4252
            ($str[$i] & "\xF0") === "\xE0"
4253
        ) {
4254
4255
          if (
4256
              ($str[$i + 1] & "\xC0") === "\x80"
4257
              &&
4258
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4271-4275 (lines=5) @@
4268
            ($str[$i] & "\xF8") === "\xF0"
4269
        ) {
4270
4271
          if (
4272
              ($str[$i + 1] & "\xC0") === "\x80"
4273
              &&
4274
              ($str[$i + 2] & "\xC0") === "\x80"
4275
              &&
4276
              ($str[$i + 3] & "\xC0") === "\x80"
4277
          ) {
4278
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];