Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4347-4353 (lines=7) @@
4344
            $i++;
4345
          }
4346
4347
        } elseif (
4348
            isset($str[$i + 2])
4349
            &&
4350
            ($str[$i] & "\xF0") === "\xE0"
4351
        ) {
4352
4353
          if (
4354
              ($str[$i + 1] & "\xC0") === "\x80"
4355
              &&
4356
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4369-4373 (lines=5) @@
4366
            ($str[$i] & "\xF8") === "\xF0"
4367
        ) {
4368
4369
          if (
4370
              ($str[$i + 1] & "\xC0") === "\x80"
4371
              &&
4372
              ($str[$i + 2] & "\xC0") === "\x80"
4373
              &&
4374
              ($str[$i + 3] & "\xC0") === "\x80"
4375
          ) {
4376
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];