Code Duplication    Length = 4-9 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 567-575 (lines=9) @@
564
    $attrs = array();
565
    foreach ((array)$attributes as $attrName => $attrValue) {
566
567
      if (isset(self::$booleanAttributes[$attrName])) {
568
569
        if ($this->doSortHtmlAttributes === true) {
570
          $attrs[$attrName] = $this->booleanAttributesHelper;
571
          $element->{$attrName} = null;
572
        }
573
574
        continue;
575
      }
576
577
      // -------------------------------------------------------------------------
578
      // Remove optional "http:"-prefix from attributes.
@@ 606-609 (lines=4) @@
603
        $attrValue = $this->sortCssClassNames($attrName, $attrValue);
604
      }
605
606
      if ($this->doSortHtmlAttributes === true) {
607
        $attrs[$attrName] = $attrValue;
608
        $element->{$attrName} = null;
609
      }
610
    }
611
612
    // -------------------------------------------------------------------------