Code Duplication    Length = 10-13 lines in 2 locations

src/Intraface/LegacyCpdf.php 2 locations

@@ 4001-4013 (lines=13) @@
3998
                    $this->checkpoint='';
3999
                }
4000
                break;
4001
            case 'rewind':
4002
                // do not destroy the current checkpoint, but move us back to the state then, so that we can try again
4003
                if (is_array($this->checkpoint)) {
4004
                    // can only abort if were inside a checkpoint
4005
                    $tmp = $this->checkpoint;
4006
                    foreach ($tmp as $k => $v) {
4007
                        if ($k != 'checkpoint') {
4008
                            $this->$k=$v;
4009
                        }
4010
                    }
4011
                    unset($tmp);
4012
                }
4013
                break;
4014
            case 'abort':
4015
                if (is_array($this->checkpoint)) {
4016
                    // can only abort if were inside a checkpoint
@@ 4014-4023 (lines=10) @@
4011
                    unset($tmp);
4012
                }
4013
                break;
4014
            case 'abort':
4015
                if (is_array($this->checkpoint)) {
4016
                    // can only abort if were inside a checkpoint
4017
                    $tmp = $this->checkpoint;
4018
                    foreach ($tmp as $k => $v) {
4019
                        $this->$k=$v;
4020
                    }
4021
                    unset($tmp);
4022
                }
4023
                break;
4024
        }
4025
    }
4026
} // end of class