Code Duplication    Length = 4-9 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 407-415 (lines=9) @@
404
    $attrs = array();
405
    foreach ((array)$attributes as $attrName => $attrValue) {
406
407
      if (isset(self::$booleanAttributes[$attrName])) {
408
409
        if ($this->doSortHtmlAttributes === true) {
410
          $attrs[$attrName] = $this->booleanAttributesHelper;
411
          $element->{$attrName} = null;
412
        }
413
414
        continue;
415
      }
416
417
      if ($this->doRemoveHttpPrefixFromAttributes === true) {
418
        if (
@@ 438-441 (lines=4) @@
435
        $attrValue = $this->sortCssClassNames($attrName, $attrValue);
436
      }
437
438
      if ($this->doSortHtmlAttributes === true) {
439
        $attrs[$attrName] = $attrValue;
440
        $element->{$attrName} = null;
441
      }
442
    }
443
444
    if ($this->doSortHtmlAttributes === true) {