Code Duplication    Length = 3-3 lines in 2 locations

src/Intraface/modules/debtor/Visitor/Pdf.php 1 location

@@ 47-49 (lines=3) @@
44
    {
45
        $this->doc = $this->getDocument();
46
47
        if (!empty($this->file) and $this->file->get('id') > 0) {
48
            $this->doc->addHeader($this->file->get('file_uri_pdf'));
49
        }
50
51
        $this->doc->setY('-5');
52

src/Intraface/modules/invoice/Pdf/Reminder.php 1 location

@@ 24-26 (lines=3) @@
21
22
        $this->doc = $this->getDocument();
23
24
        if (!empty($this->file) and $this->file->get('id') > 0) {
25
            $this->doc->addHeader($this->file->get('file_uri_pdf'));
26
        }
27
28
        $contact = $reminder->contact->address->get();
29
        if (isset($reminder->contact_person) and get_class($reminder->contact_person) == "contactperson") {