Code Duplication    Length = 4-4 lines in 2 locations

src/Intraface/LegacyCpdf.php 2 locations

@@ 523-526 (lines=4) @@
520
            $o =& $this->objects[$id];
521
        }
522
        switch ($action) {
523
            case 'new':
524
                $this->objects[$id]=array('t'=>'pages','info'=>array());
525
                $this->o_catalog($this->catalogId, 'pages', $id);
526
                break;
527
            case 'page':
528
                if (!is_array($options)) {
529
                    // then it will just be the id of the new page
@@ 643-646 (lines=4) @@
640
            $o =& $this->objects[$id];
641
        }
642
        switch ($action) {
643
            case 'new':
644
                $this->objects[$id]=array('t'=>'outlines','info'=>array('outlines'=>array()));
645
                $this->o_catalog($this->catalogId, 'outlines', $id);
646
                break;
647
            case 'outline':
648
                $o['info']['outlines'][]=$options;
649
                break;