Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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