Code Duplication    Length = 4-4 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

@@ 589-592 (lines=4) @@
586
   unset($a['bordercolor']); $c[] = 'border-color: '. $v;
587
  }elseif($k == 'cellspacing'){
588
   unset($a['cellspacing']); $c[] = "border-spacing: {$v}px";
589
  }elseif($k == 'clear'){
590
   unset($a['clear']); $c[] = 'clear: '. ($v != 'all' ? $v : 'both');
591
  }elseif($k == 'compact'){
592
   unset($a['compact']); $c[] = 'font-size: 85%';
593
  }elseif($k == 'height' or $k == 'width'){
594
   unset($a[$k]); $c[] = $k. ': '. ($v[0] != '*' ? $v. (ctype_digit($v) ? 'px' : '') : 'auto');
595
  }elseif($k == 'hspace'){
@@ 607-610 (lines=4) @@
604
   unset($a['noshade']); $c[] = 'border-style: none; border: 0; background-color: gray; color: gray';
605
  }elseif($k == 'nowrap'){
606
   unset($a['nowrap']); $c[] = 'white-space: nowrap';
607
  }elseif($k == 'size'){
608
   unset($a['size']); $c[] = 'size: '. $v. 'px';
609
  }elseif($k == 'vspace'){
610
   unset($a['vspace']); $c[] = "margin-top: {$v}px; margin-bottom: {$v}px";
611
  }
612
 }
613
 if(count($c)){