Code Duplication    Length = 3-3 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

@@ 398-400 (lines=3) @@
395
   if(empty($m) or ($p = strpos($m, '=')) == 0 or $p < 5){$y[$x] = 1; continue;}
396
   $y[$x][strtolower(substr($m, 0, $p))] = str_replace(array("\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\x08"), array(";", "|", "~", " ", ",", "/", "(", ")"), substr($m, $p+1));
397
  }
398
  if(isset($y[$x]['match']) && !hl_regex($y[$x]['match'])){unset($y[$x]['match']);}
399
  if(isset($y[$x]['nomatch']) && !hl_regex($y[$x]['nomatch'])){unset($y[$x]['nomatch']);}
400
 }
401
 if(!count($y) && !count($n)){continue;}
402
 foreach(explode(',', substr($w, 0, $e)) as $v){
403
  if(!strlen(($v = strtolower($v)))){continue;}
@@ 399-401 (lines=3) @@
396
   $y[$x][strtolower(substr($m, 0, $p))] = str_replace(array("\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\x08"), array(";", "|", "~", " ", ",", "/", "(", ")"), substr($m, $p+1));
397
  }
398
  if(isset($y[$x]['match']) && !hl_regex($y[$x]['match'])){unset($y[$x]['match']);}
399
  if(isset($y[$x]['nomatch']) && !hl_regex($y[$x]['nomatch'])){unset($y[$x]['nomatch']);}
400
 }
401
 if(!count($y) && !count($n)){continue;}
402
 foreach(explode(',', substr($w, 0, $e)) as $v){
403
  if(!strlen(($v = strtolower($v)))){continue;}
404
  if(count($y)){$s[$v] = $y;}