Code Duplication    Length = 5-6 lines in 2 locations

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

@@ 82-86 (lines=5) @@
79
                }
80
            }
81
82
            if ($this->getKernel()->intranet->get("pdf_header_file_id") != 0) {
83
                $file = new FileHandler($this->getKernel(), $this->getKernel()->intranet->get("pdf_header_file_id"));
84
            } else {
85
                $file = null;
86
            }
87
88
            $body = 'Tak for din bestilling i vores onlineshop. Vi har ikke registreret nogen onlinebetaling sammen med bestillingen, hvilket kan skyldes flere ting.
89
@@ 622-627 (lines=6) @@
619
            $onlinepayment = null;
620
        }
621
622
        if ($this->getKernel()->intranet->get("pdf_header_file_id") != 0) {
623
            $this->getKernel()->useModule('filemanager');
624
            $filehandler = new FileHandler($this->getKernel(), $this->getKernel()->intranet->get("pdf_header_file_id"));
625
        } else {
626
            $filehandler = null;
627
        }
628
629
        $report = new Intraface_modules_debtor_Visitor_Pdf($this->translator(), $filehandler);
630
        $report->visit($this->getDebtor(), $onlinepayment);