Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4137-4143 (lines=7) @@
4134
            $i++;
4135
          }
4136
4137
        } elseif (
4138
            isset($str[$i + 2])
4139
            &&
4140
            ($str[$i] & "\xF0") === "\xE0"
4141
        ) {
4142
4143
          if (
4144
              ($str[$i + 1] & "\xC0") === "\x80"
4145
              &&
4146
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4159-4163 (lines=5) @@
4156
            ($str[$i] & "\xF8") === "\xF0"
4157
        ) {
4158
4159
          if (
4160
              ($str[$i + 1] & "\xC0") === "\x80"
4161
              &&
4162
              ($str[$i + 2] & "\xC0") === "\x80"
4163
              &&
4164
              ($str[$i + 3] & "\xC0") === "\x80"
4165
          ) {
4166
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];