Code Duplication    Length = 8-8 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

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