Code Duplication    Length = 9-9 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5094-5102 (lines=9) @@
5091
      self::checkForSupport();
5092
    }
5093
5094
    if (
5095
        $encoding !== 'UTF-8'
5096
        &&
5097
        self::$SUPPORT['mbstring'] === false
5098
        &&
5099
        self::$SUPPORT['iconv'] === false
5100
    ) {
5101
      trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5102
    }
5103
5104
    if (
5105
        $encoding !== 'UTF-8'
@@ 5303-5311 (lines=9) @@
5300
      self::checkForSupport();
5301
    }
5302
5303
    if (
5304
        $encoding !== 'UTF-8'
5305
        &
5306
        self::$SUPPORT['iconv'] === true
5307
        &&
5308
        self::$SUPPORT['mbstring'] === false
5309
    ) {
5310
      trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5311
    }
5312
5313
    if (
5314
        $offset >= 0 // iconv_strpos() can't handle negative offset