Code Duplication    Length = 4-4 lines in 2 locations

lib/Cpdf.php 2 locations

@@ 618-621 (lines=4) @@
615
        }
616
617
        switch ($action) {
618
            case 'new':
619
                $this->objects[$id] = array('t' => 'pages', 'info' => array());
620
                $this->o_catalog($this->catalogId, 'pages', $id);
621
                break;
622
623
            case 'page':
624
                if (!is_array($options)) {
@@ 766-769 (lines=4) @@
763
        }
764
765
        switch ($action) {
766
            case 'new':
767
                $this->objects[$id] = array('t' => 'outlines', 'info' => array('outlines' => array()));
768
                $this->o_catalog($this->catalogId, 'outlines', $id);
769
                break;
770
771
            case 'outline':
772
                $o['info']['outlines'][] = $options;