Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 556-560 (lines=5) @@
553
    }
554
555
    // remove deprecated charset-attribute (the browser will use the charset from the HTTP-Header, anyway)
556
    if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) {
557
      if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) {
558
        return true;
559
      }
560
    }
561
562
    // remove deprecated anchor-jump
563
    if ($this->doRemoveDeprecatedAnchorName === true) {
@@ 577-581 (lines=5) @@
574
    }
575
576
    // remove deprecated script-mime-types
577
    if ($this->doRemoveDeprecatedTypeFromScriptTag === true) {
578
      if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) {
579
        return true;
580
      }
581
    }
582
583
    // remove 'value=""' from empty <input>
584
    if ($this->doRemoveValueFromEmptyInput === true) {