Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 541-545 (lines=5) @@
538
    }
539
540
    // remove deprecated charset-attribute (the Browser will use the charset from the HTTP-Header, anyway)
541
    if ($this->doRemoveDeprecatedScriptCharsetAttribute === true) {
542
      if ($tag === 'script' && $attrName === 'charset' && !isset($allAttr['src'])) {
543
        return true;
544
      }
545
    }
546
547
    // remove deprecated anchor-jump
548
    if ($this->doRemoveDeprecatedAnchorName === true) {
@@ 562-566 (lines=5) @@
559
    }
560
561
    // remove deprecated script-mime-types
562
    if ($this->doRemoveDeprecatedTypeFromScriptTag === true) {
563
      if ($tag === 'script' && $attrName === 'type' && isset($allAttr['src'], self::$executableScriptsMimeTypes[$attrValue])) {
564
        return true;
565
      }
566
    }
567
568
    if ($this->doRemoveValueFromEmptyInput === true) {
569
      // remove "value" from empty <input>