Code Duplication    Length = 4-5 lines in 3 locations

src/Intraface/modules/debtor/DebtorGateway.php 3 locations

@@ 124-128 (lines=5) @@
121
        }
122
123
        switch ($type) {
124
            case "quotation":
125
                $this->kernel->useModule("quotation");
126
                $object = new Quotation($this->kernel, intval($id));
127
                return $object;
128
                break;
129
130
            case "order":
131
                $this->kernel->useModule("order");
@@ 130-133 (lines=4) @@
127
                return $object;
128
                break;
129
130
            case "order":
131
                $this->kernel->useModule("order");
132
                $object = new Order($this->kernel, intval($id));
133
                break;
134
135
            case "invoice":
136
                $this->kernel->useModule("invoice");
@@ 135-138 (lines=4) @@
132
                $object = new Order($this->kernel, intval($id));
133
                break;
134
135
            case "invoice":
136
                $this->kernel->useModule("invoice");
137
                $object = new Invoice($this->kernel, intval($id));
138
                break;
139
140
            case "credit_note":
141
                $this->kernel->useModule("invoice");