Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4338-4344 (lines=7) @@
4335
            $i++;
4336
          }
4337
4338
        } elseif (
4339
            isset($str[$i + 2])
4340
            &&
4341
            ($str[$i] & "\xF0") === "\xE0"
4342
        ) {
4343
4344
          if (
4345
              ($str[$i + 1] & "\xC0") === "\x80"
4346
              &&
4347
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4360-4364 (lines=5) @@
4357
            ($str[$i] & "\xF8") === "\xF0"
4358
        ) {
4359
4360
          if (
4361
              ($str[$i + 1] & "\xC0") === "\x80"
4362
              &&
4363
              ($str[$i + 2] & "\xC0") === "\x80"
4364
              &&
4365
              ($str[$i + 3] & "\xC0") === "\x80"
4366
          ) {
4367
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];