Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 5327-5335 (lines=9) @@
5324
      self::checkForSupport();
5325
    }
5326
5327
    if (
5328
        $encoding !== 'UTF-8'
5329
        &&
5330
        self::$SUPPORT['mbstring'] === false
5331
        &&
5332
        self::$SUPPORT['iconv'] === false
5333
    ) {
5334
      trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5335
    }
5336
5337
    if (
5338
        $encoding !== 'UTF-8'
@@ 5540-5548 (lines=9) @@
5537
      return strpos($haystack, $needle, $offset);
5538
    }
5539
5540
    if (
5541
        $encoding !== 'UTF-8'
5542
        &
5543
        self::$SUPPORT['iconv'] === true
5544
        &&
5545
        self::$SUPPORT['mbstring'] === false
5546
    ) {
5547
      trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5548
    }
5549
5550
    if (
5551
        $offset >= 0 // iconv_strpos() can't handle negative offset