Code Duplication    Length = 8-8 lines in 2 locations

lib/Cpdf.php 2 locations

@@ 4505-4512 (lines=8) @@
4502
                    }
4503
                    break;
4504
4505
                case 'even':
4506
                    $this->addLooseObjects[$id] = 'even';
4507
                    $pageObjectId = $this->objects[$this->currentContents]['onPage'];
4508
                    if ($this->objects[$pageObjectId]['info']['pageNum'] % 2 == 0) {
4509
                        $this->addObject($id);
4510
                        // hacky huh :)
4511
                    }
4512
                    break;
4513
4514
                case 'odd':
4515
                    $this->addLooseObjects[$id] = 'odd';
@@ 4514-4521 (lines=8) @@
4511
                    }
4512
                    break;
4513
4514
                case 'odd':
4515
                    $this->addLooseObjects[$id] = 'odd';
4516
                    $pageObjectId = $this->objects[$this->currentContents]['onPage'];
4517
                    if ($this->objects[$pageObjectId]['info']['pageNum'] % 2 == 1) {
4518
                        $this->addObject($id);
4519
                        // hacky huh :)
4520
                    }
4521
                    break;
4522
4523
                case 'next':
4524
                    $this->addLooseObjects[$id] = 'all';