Code Duplication    Length = 4-9 lines in 2 locations

src/voku/helper/HtmlMin.php 2 locations

@@ 410-418 (lines=9) @@
407
    $attrs = array();
408
    foreach ((array)$attributes as $attrName => $attrValue) {
409
410
      if (isset(self::$booleanAttributes[$attrName])) {
411
412
        if ($this->doSortHtmlAttributes === true) {
413
          $attrs[$attrName] = $this->booleanAttributesHelper;
414
          $element->{$attrName} = null;
415
        }
416
417
        continue;
418
      }
419
420
      // -------------------------------------------------------------------------
421
      // Remove optional "http:"-prefix from attributes.
@@ 449-452 (lines=4) @@
446
        $attrValue = $this->sortCssClassNames($attrName, $attrValue);
447
      }
448
449
      if ($this->doSortHtmlAttributes === true) {
450
        $attrs[$attrName] = $attrValue;
451
        $element->{$attrName} = null;
452
      }
453
    }
454
455
    // -------------------------------------------------------------------------