Code Duplication    Length = 3-3 lines in 2 locations

src/Intraface/modules/debtor/Controller/Show.php 2 locations

@@ 267-269 (lines=3) @@
264
                    }
265
                    $return_redirect->delete();
266
267
                    if (($this->getDebtor()->get("type") == 'credit_note' || $this->getDebtor()->get("type") == 'invoice') and !$this->getDebtor()->isStated() and $this->getKernel()->user->hasModuleAccess('accounting')) {
268
                        return new k_SeeOther($this->url('state'));
269
                    }
270
                }
271
            }
272
        }
@@ 315-317 (lines=3) @@
312
        elseif ($this->body('sent')) {
313
            $this->getDebtor()->setStatus('sent');
314
315
            if (($this->getDebtor()->get("type") == 'credit_note' || $this->getDebtor()->get("type") == 'invoice') and $this->getKernel()->user->hasModuleAccess('accounting')) {
316
                return new k_SeeOther($this->url('state'));
317
            }
318
            return new k_SeeOther($this->url());
319
        } // transfer quotation to order
320
        elseif ($this->body('order')) {