@@ -39,7 +39,7 @@ |
||
39 | 39 | ->setDefinition([ |
40 | 40 | new InputArgument('report', InputArgument::REQUIRED, 'Report to run'), |
41 | 41 | new InputArgument('outputFile', InputArgument::OPTIONAL, 'File to output report to', '/tmp/report.csv') |
42 | - ]); |
|
42 | + ]); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ConferenceTools\Tickets\Form; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace ConferenceTools\Tickets\Form; |
6 | 6 |
@@ -111,7 +111,7 @@ |
||
111 | 111 | public function containingOnly(TicketType ...$ticketTypes) |
112 | 112 | { |
113 | 113 | $filteredReservations = []; |
114 | - foreach($this->tickets as $ticketReservation) { |
|
114 | + foreach ($this->tickets as $ticketReservation) { |
|
115 | 115 | if (in_array($ticketReservation->getTicketType(), $ticketTypes, false)) { |
116 | 116 | $filteredReservations[] = $ticketReservation; |
117 | 117 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | $ticketReservations = $basket->getTickets(); |
62 | 62 | $ticketIdsFromBasket = array_map( |
63 | - function (TicketReservation $item) { |
|
63 | + function(TicketReservation $item) { |
|
64 | 64 | return $item->getReservationId(); |
65 | 65 | }, |
66 | 66 | $ticketReservations |
@@ -57,7 +57,7 @@ |
||
57 | 57 | private function reindex(Collection $discountCodes): Collection |
58 | 58 | { |
59 | 59 | $result = []; |
60 | - foreach($discountCodes as $discountCode) { |
|
60 | + foreach ($discountCodes as $discountCode) { |
|
61 | 61 | /** @var DiscountCode $discountCode */ |
62 | 62 | $result[$discountCode->getCode()] = $discountCode; |
63 | 63 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | private function reindex(Collection $tickets): Collection |
64 | 64 | { |
65 | 65 | $result = []; |
66 | - foreach($tickets as $ticket) { |
|
66 | + foreach ($tickets as $ticket) { |
|
67 | 67 | /** @var TicketCounter $ticket */ |
68 | 68 | $result[$ticket->getTicketType()->getIdentifier()] = $ticket; |
69 | 69 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $configuration = $this->configuration; |
31 | 31 | $today = new \DateTime(); |
32 | 32 | |
33 | - $p = function (TicketCounter $ticket) use ($configuration, $today) { |
|
33 | + $p = function(TicketCounter $ticket) use ($configuration, $today) { |
|
34 | 34 | $metadata = $configuration->getTicketMetadata($ticket->getTicketType()->getIdentifier()); |
35 | 35 | return $metadata->isAvailableOn($today); |
36 | 36 | }; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $configuration = $this->configuration; |
34 | 34 | $today = new \DateTime(); |
35 | 35 | |
36 | - $p = function (DiscountCode $discountCode) use ($configuration, $today) { |
|
36 | + $p = function(DiscountCode $discountCode) use ($configuration, $today) { |
|
37 | 37 | $metadata = $configuration->getDiscountCodeMetadata($discountCode->getCode()); |
38 | 38 | return $metadata->isAvailableOn($today); |
39 | 39 | }; |