Code Duplication    Length = 4-4 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

@@ 579-582 (lines=4) @@
576
   unset($a['bordercolor']); $c[] = 'border-color: '. $v;
577
  }elseif($k == 'cellspacing'){
578
   unset($a['cellspacing']); $c[] = "border-spacing: {$v}px";
579
  }elseif($k == 'clear'){
580
   unset($a['clear']); $c[] = 'clear: '. ($v != 'all' ? $v : 'both');
581
  }elseif($k == 'compact'){
582
   unset($a['compact']); $c[] = 'font-size: 85%';
583
  }elseif($k == 'height' or $k == 'width'){
584
   unset($a[$k]); $c[] = $k. ': '. ($v[0] != '*' ? $v. (ctype_digit($v) ? 'px' : '') : 'auto');
585
  }elseif($k == 'hspace'){
@@ 597-600 (lines=4) @@
594
   unset($a['noshade']); $c[] = 'border-style: none; border: 0; background-color: gray; color: gray';
595
  }elseif($k == 'nowrap'){
596
   unset($a['nowrap']); $c[] = 'white-space: nowrap';
597
  }elseif($k == 'size'){
598
   unset($a['size']); $c[] = 'size: '. $v. 'px';
599
  }elseif($k == 'vspace'){
600
   unset($a['vspace']); $c[] = "margin-top: {$v}px; margin-bottom: {$v}px";
601
  }
602
 }
603
 if(count($c)){