Code Duplication    Length = 8-8 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

@@ 583-590 (lines=8) @@
580
    }
581
    if ($v = function_exists('error_clear_last') && function_exists('error_get_last')) {
582
        error_clear_last();
583
    } else {
584
        if ($t = ini_get('track_errors')) {
585
            $o = isset($php_errormsg) ? $php_errormsg : null;
586
        } else {
587
            ini_set('track_errors', 1);
588
        }
589
        unset($php_errormsg);
590
    }
591
    if (($d = ini_get('display_errors'))) {
592
        ini_set('display_errors', 0);
593
    }
@@ 597-604 (lines=8) @@
594
    preg_match($p, '');
595
    if ($v) {
596
        $r = error_get_last() == null ? 1 : 0;
597
    } else {
598
        $r = isset($php_errormsg) ? 0 : 1;
599
        if ($t) {
600
            $php_errormsg = isset($o) ? $o : null;
601
        } else {
602
            ini_set('track_errors', 0);
603
        }
604
    }
605
    if ($d) {
606
        ini_set('display_errors', 1);
607
    }