Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 806-810 (lines=5) @@
803
    }
804
805
    // remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway)
806
    if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) {
807
      if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) {
808
        return true;
809
      }
810
    }
811
812
    // remove deprecated anchor-jump
813
    if ($this->doRemoveDeprecatedAnchorName === true) {
@@ 827-831 (lines=5) @@
824
    }
825
826
    // remove deprecated script-mime-types
827
    if ($this->doRemoveDeprecatedTypeFromScriptTag === true) {
828
      if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) {
829
        return true;
830
      }
831
    }
832
833
    // remove 'value=""' from <input type="text">
834
    if ($this->doRemoveValueFromEmptyInput === true) {