Code Duplication    Length = 11-17 lines in 2 locations

includes/libraries/protect/AntiXSS/UTF8.php 2 locations

@@ 4247-4263 (lines=17) @@
4244
            $i++;
4245
          }
4246
4247
        } elseif (
4248
            isset($str[$i + 2])
4249
            &&
4250
            ($str[$i] & "\xF0") === "\xE0"
4251
        ) {
4252
4253
          if (
4254
              ($str[$i + 1] & "\xC0") === "\x80"
4255
              &&
4256
              ($str[$i + 2] & "\xC0") === "\x80"
4257
          ) {
4258
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2];
4259
4260
            $i += 2;
4261
          }
4262
4263
        } elseif (
4264
            isset($str[$i + 3])
4265
            &&
4266
            ($str[$i] & "\xF8") === "\xF0"
@@ 4269-4279 (lines=11) @@
4266
            ($str[$i] & "\xF8") === "\xF0"
4267
        ) {
4268
4269
          if (
4270
              ($str[$i + 1] & "\xC0") === "\x80"
4271
              &&
4272
              ($str[$i + 2] & "\xC0") === "\x80"
4273
              &&
4274
              ($str[$i + 3] & "\xC0") === "\x80"
4275
          ) {
4276
            $ret[] = $str[$i] . $str[$i + 1] . $str[$i + 2] . $str[$i + 3];
4277
4278
            $i += 3;
4279
          }
4280
4281
        }
4282
      }