Code Duplication    Length = 9-9 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5338-5346 (lines=9) @@
5335
      self::checkForSupport();
5336
    }
5337
5338
    if (
5339
        $encoding !== 'UTF-8'
5340
        &&
5341
        self::$SUPPORT['mbstring'] === false
5342
        &&
5343
        self::$SUPPORT['iconv'] === false
5344
    ) {
5345
      trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5346
    }
5347
5348
    if (
5349
        $encoding !== 'UTF-8'
@@ 5551-5559 (lines=9) @@
5548
      return strpos($haystack, $needle, $offset);
5549
    }
5550
5551
    if (
5552
        $encoding !== 'UTF-8'
5553
        &
5554
        self::$SUPPORT['iconv'] === true
5555
        &&
5556
        self::$SUPPORT['mbstring'] === false
5557
    ) {
5558
      trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5559
    }
5560
5561
    if (
5562
        $offset >= 0 // iconv_strpos() can't handle negative offset