Code Duplication    Length = 5-7 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 4257-4263 (lines=7) @@
4254
            $i++;
4255
          }
4256
4257
        } elseif (
4258
            isset($str[$i + 2])
4259
            &&
4260
            ($str[$i] & "\xF0") === "\xE0"
4261
        ) {
4262
4263
          if (
4264
              ($str[$i + 1] & "\xC0") === "\x80"
4265
              &&
4266
              ($str[$i + 2] & "\xC0") === "\x80"
@@ 4279-4283 (lines=5) @@
4276
            ($str[$i] & "\xF8") === "\xF0"
4277
        ) {
4278
4279
          if (
4280
              ($str[$i + 1] & "\xC0") === "\x80"
4281
              &&
4282
              ($str[$i + 2] & "\xC0") === "\x80"
4283
              &&
4284
              ($str[$i + 3] & "\xC0") === "\x80"
4285
          ) {
4286
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];