Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4381-4385 (lines=5) @@
4378
            ($str[$i] & "\xF8") === "\xF0"
4379
        ) {
4380
4381
          if (
4382
              ($str[$i + 1] & "\xC0") === "\x80"
4383
              &&
4384
              ($str[$i + 2] & "\xC0") === "\x80"
4385
              &&
4386
              ($str[$i + 3] & "\xC0") === "\x80"
4387
          ) {
4388
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];
@@ 4359-4365 (lines=7) @@
4356
            $i++;
4357
          }
4358
4359
        } elseif (
4360
            isset($str[$i + 2])
4361
            &&
4362
            ($str[$i] & "\xF0") === "\xE0"
4363
        ) {
4364
4365
          if (
4366
              ($str[$i + 1] & "\xC0") === "\x80"
4367
              &&
4368
              ($str[$i + 2] & "\xC0") === "\x80"