Code Duplication    Length = 9-9 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 5682-5690 (lines=9) @@
5679
      $str = self::clean($str);
5680
    }
5681
5682
    if (
5683
        $encoding !== 'UTF-8'
5684
        &&
5685
        self::$SUPPORT['mbstring'] === false
5686
        &&
5687
        self::$SUPPORT['iconv'] === false
5688
    ) {
5689
      \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5690
    }
5691
5692
    if (
5693
        $encoding !== 'UTF-8'
@@ 5908-5916 (lines=9) @@
5905
      return \strpos($haystack, $needle, $offset);
5906
    }
5907
5908
    if (
5909
        $encoding !== 'UTF-8'
5910
        &&
5911
        self::$SUPPORT['iconv'] === false
5912
        &&
5913
        self::$SUPPORT['mbstring'] === false
5914
    ) {
5915
      \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING);
5916
    }
5917
5918
    if (
5919
        $offset >= 0 // iconv_strpos() can't handle negative offset