Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 713-717 (lines=5) @@
710
    }
711
712
    // remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway)
713
    if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) {
714
      if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) {
715
        return true;
716
      }
717
    }
718
719
    // remove deprecated anchor-jump
720
    if ($this->doRemoveDeprecatedAnchorName === true) {
@@ 734-738 (lines=5) @@
731
    }
732
733
    // remove deprecated script-mime-types
734
    if ($this->doRemoveDeprecatedTypeFromScriptTag === true) {
735
      if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) {
736
        return true;
737
      }
738
    }
739
740
    // remove 'value=""' from <input type="text">
741
    if ($this->doRemoveValueFromEmptyInput === true) {