| Conditions | 5 |
| Paths | 3 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function produceReport(): array |
||
| 25 | { |
||
| 26 | $report = []; |
||
| 27 | $tickets = $this->em->getRepository(TicketRecord::class)->findAll(); |
||
| 28 | foreach ($tickets as $ticket) |
||
| 29 | { |
||
| 30 | /** @var TicketRecord $ticket */ |
||
| 31 | if ( |
||
| 32 | empty($ticket->getDelegate()->getEmail()) && |
||
| 33 | empty($ticket->getDelegate()->getFirstname()) && |
||
| 34 | empty($ticket->getDelegate()->getLastname()) |
||
| 35 | ) { |
||
| 36 | |||
| 37 | $item = [ |
||
| 38 | 'purchase_id' => $ticket->getPurchase()->getPurchaseId(), |
||
| 39 | 'ticket_id' => $ticket->getTicketId(), |
||
| 40 | 'email' => $ticket->getPurchase()->getPurchaserEmail() |
||
| 41 | ]; |
||
| 42 | |||
| 43 | $report[] = $item; |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | return $report; |
||
| 48 | } |
||
| 49 | } |