@@ -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 | } |
@@ -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 | }; |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public function filter(Collection $tickets): Collection |
12 | 12 | { |
13 | - $p = function (TicketCounter $ticket) { |
|
13 | + $p = function(TicketCounter $ticket) { |
|
14 | 14 | return $ticket->getRemaining() > 0; |
15 | 15 | }; |
16 | 16 | return $tickets->filter($p); |
@@ -29,11 +29,11 @@ |
||
29 | 29 | { |
30 | 30 | $configuration = $this->configuration; |
31 | 31 | |
32 | - $identifiers = $tickets->map(function (TicketCounter $ticketCounter) { |
|
32 | + $identifiers = $tickets->map(function(TicketCounter $ticketCounter) { |
|
33 | 33 | return $ticketCounter->getTicketType()->getIdentifier(); |
34 | 34 | }); |
35 | 35 | |
36 | - $p = function (TicketCounter $ticket) use ($configuration, $identifiers) { |
|
36 | + $p = function(TicketCounter $ticket) use ($configuration, $identifiers) { |
|
37 | 37 | $metadata = $configuration->getTicketMetadata($ticket->getTicketType()->getIdentifier()); |
38 | 38 | |
39 | 39 | foreach ($metadata->getAfterSoldOut() as $identifier) { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function filter(Collection $tickets): Collection |
29 | 29 | { |
30 | 30 | $configuration = $this->configuration; |
31 | - $p = function (TicketCounter $ticket) use ($configuration) { |
|
31 | + $p = function(TicketCounter $ticket) use ($configuration) { |
|
32 | 32 | $metadata = $configuration->getTicketMetadata($ticket->getTicketType()->getIdentifier()); |
33 | 33 | return !$metadata->isPrivateTicket(); |
34 | 34 | }; |
@@ -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 | } |