Code Duplication    Length = 8-8 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

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