Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4080-4086 (lines=7) @@
4077
            $i++;
4078
          }
4079
4080
        } elseif (
4081
            isset($str[$i + 2])
4082
            &&
4083
            ($str[$i] & "\xF0") === "\xE0"
4084
        ) {
4085
4086
          if (
4087
              ($str[$i + 1] & "\xC0") === "\x80"
4088
              &&
4089
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4102-4106 (lines=5) @@
4099
            ($str[$i] & "\xF8") === "\xF0"
4100
        ) {
4101
4102
          if (
4103
              ($str[$i + 1] & "\xC0") === "\x80"
4104
              &&
4105
              ($str[$i + 2] & "\xC0") === "\x80"
4106
              &&
4107
              ($str[$i + 3] & "\xC0") === "\x80"
4108
          ) {
4109
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];