Code Duplication    Length = 5-5 lines in 2 locations

class/PEAR.php 2 locations

@@ 702-706 (lines=5) @@
699
        }
700
        $stack[] = array($def_mode, $def_options);
701
702
        if (isset($this) && is_a($this, 'PEAR')) {
703
            $this->setErrorHandling($mode, $options);
704
        } else {
705
            references_PEAR::setErrorHandling($mode, $options);
706
        }
707
        $stack[] = array($mode, $options);
708
709
        return true;
@@ 728-732 (lines=5) @@
725
        array_pop($stack);
726
        list($mode, $options) = $stack[count($stack) - 1];
727
        array_pop($stack);
728
        if (isset($this) && is_a($this, 'PEAR')) {
729
            $this->setErrorHandling($mode, $options);
730
        } else {
731
            references_PEAR::setErrorHandling($mode, $options);
732
        }
733
734
        return true;
735
    }