Code Duplication    Length = 9-9 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5196-5204 (lines=9) @@
5193
      self::checkForSupport();
5194
    }
5195
5196
    if (
5197
        $encoding !== 'UTF-8'
5198
        &&
5199
        self::$SUPPORT['mbstring'] === false
5200
        &&
5201
        self::$SUPPORT['iconv'] === false
5202
    ) {
5203
      trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5204
    }
5205
5206
    if (
5207
        $encoding !== 'UTF-8'
@@ 5409-5417 (lines=9) @@
5406
      return strpos($haystack, $needle, $offset);
5407
    }
5408
5409
    if (
5410
        $encoding !== 'UTF-8'
5411
        &
5412
        self::$SUPPORT['iconv'] === true
5413
        &&
5414
        self::$SUPPORT['mbstring'] === false
5415
    ) {
5416
      trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5417
    }
5418
5419
    if (
5420
        $offset >= 0 // iconv_strpos() can't handle negative offset