Code Duplication    Length = 3-4 lines in 2 locations

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

@@ 555-558 (lines=4) @@
552
                        throw new Exception("Invalid sender!");
553
                }
554
555
                if ($this->getDebtor()->contact->address->get('email') == '') {
556
                    $msg = '<div class="message-dependent"><p>'.$this->t('You need to register an e-mail to the contact, so you can send e-mails').'</p></div>';
557
                }
558
559
                break;
560
561
            case 3: // electronic email, we make check that everything is as it should be
@@ 562-564 (lines=3) @@
559
                break;
560
561
            case 3: // electronic email, we make check that everything is as it should be
562
                if ($this->getDebtor()->contact->address->get('ean') == '') {
563
                    $msg = '<div class="message-dependent"><p>'.$this->t('To be able to send electronic e-mails you need to fill out the EAN location number for the contact').'</p></div>';
564
                }
565
566
                $scan_in_contact_id = $this->getKernel()->getSetting()->get('intranet', 'debtor.scan_in_contact');
567
                $valid_scan_in_contact = true;