Code Duplication    Length = 5-7 lines in 2 locations

lib/Cpdf.php 2 locations

@@ 1268-1272 (lines=5) @@
1265
        }
1266
1267
        switch ($action) {
1268
            case 'new':
1269
                $this->objects[$id] = array('t' => 'procset', 'info' => array('PDF' => 1, 'Text' => 1));
1270
                $this->o_pages($this->currentNode, 'procset', $id);
1271
                $this->procsetObjectId = $id;
1272
                break;
1273
1274
            case 'add':
1275
                // this is to add new items to the procset list, despite the fact that this is considered
@@ 1918-1924 (lines=7) @@
1915
        );
1916
1917
        switch ($action) {
1918
            case "new":
1919
                $this->objects[$id] = array('t' => 'extGState', 'info' => $options);
1920
1921
                // Tell the pages about the new resource
1922
                $this->numStates++;
1923
                $this->o_pages($this->currentNode, 'extGState', array("objNum" => $id, "stateNum" => $this->numStates));
1924
                break;
1925
1926
            case "out":
1927
                $o = &$this->objects[$id];