Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

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