Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4289-4295 (lines=7) @@
4286
            $i++;
4287
          }
4288
4289
        } elseif (
4290
            isset($str[$i + 2])
4291
            &&
4292
            ($str[$i] & "\xF0") === "\xE0"
4293
        ) {
4294
4295
          if (
4296
              ($str[$i + 1] & "\xC0") === "\x80"
4297
              &&
4298
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4311-4315 (lines=5) @@
4308
            ($str[$i] & "\xF8") === "\xF0"
4309
        ) {
4310
4311
          if (
4312
              ($str[$i + 1] & "\xC0") === "\x80"
4313
              &&
4314
              ($str[$i + 2] & "\xC0") === "\x80"
4315
              &&
4316
              ($str[$i + 3] & "\xC0") === "\x80"
4317
          ) {
4318
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];