Code Duplication    Length = 6-6 lines in 2 locations

Command/SendNewsLetterCommand.php 1 location

@@ 48-53 (lines=6) @@
45
        $sentMails = $this->getContainer()->get('azine_email_notifier_service')->sendNewsletter($failedAddresses);
46
47
        $output->writeln(date(\DateTime::RFC2822)." : ".str_pad($sentMails, 4, " ", STR_PAD_LEFT)." newsletter emails have been sent.");
48
        if (sizeof($failedAddresses) > 0) {
49
            $output->writeln(date(\DateTime::RFC2822)." : "."The following email-addresses failed:");
50
            foreach ($failedAddresses as $address) {
51
                $output->writeln("       ".$address);
52
            }
53
        }
54
    }
55
}
56

Command/SendNotificationsCommand.php 1 location

@@ 54-59 (lines=6) @@
51
        $sentMails = $this->getContainer()->get('azine_email_notifier_service')->sendNotifications($failedAddresses);
52
53
        $output->writeln(date(\DateTime::RFC2822)." : ".str_pad($sentMails, 4, " ", STR_PAD_LEFT)." emails have been processed.");
54
        if (sizeof($failedAddresses) > 0) {
55
            $output->writeln(date(\DateTime::RFC2822)." : "."The following email-addresses failed:");
56
            foreach ($failedAddresses as $address) {
57
                $output->writeln("    ".$address);
58
            }
59
        }
60
61
        // (optional) release the lock (otherwise, PHP will do it for you automatically)
62
        $lock->release();