Code Duplication    Length = 5-5 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 1256-1260 (lines=5) @@
1253
    }
1254
1255
    // remove "type=text/css" for css links
1256
    if ($this->doRemoveDeprecatedTypeFromStylesheetLink === true) {
1257
      if ($tag === 'link' && $attrName === 'type' && $attrValue === 'text/css' && isset($allAttr['rel']) && $allAttr['rel'] === 'stylesheet') {
1258
        return true;
1259
      }
1260
    }
1261
1262
    // remove deprecated script-mime-types
1263
    if ($this->doRemoveDeprecatedTypeFromScriptTag === true) {
@@ 1270-1274 (lines=5) @@
1267
    }
1268
1269
    // remove 'value=""' from <input type="text">
1270
    if ($this->doRemoveValueFromEmptyInput === true) {
1271
      if ($tag === 'input' && $attrName === 'value' && $attrValue === '' && isset($allAttr['type']) && $allAttr['type'] === 'text') {
1272
        return true;
1273
      }
1274
    }
1275
1276
    // remove some empty attributes
1277
    if ($this->doRemoveEmptyAttributes === true) {