Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
36 | protected function execute(InputInterface $input, OutputInterface $output) |
||
37 | { |
||
38 | $date = date('Y-m-d'); |
||
39 | $rows = $this->repository->findAllByDate($date); |
||
40 | $rows = $rows->getScalarResult(); |
||
41 | |||
42 | foreach ($rows as $row) { |
||
43 | $dto = new ReleaseDateNotificationDTO( |
||
44 | (int) $row['m_id'], |
||
45 | $row['m_originalTitle'], |
||
46 | $row['c_name'] |
||
47 | ); |
||
48 | $this->emailService->sendReleaseDateNotification($row['u_email'], $dto); |
||
49 | } |
||
50 | } |
||
51 | } |
||
52 |