|
@@ -29,19 +29,19 @@ |
|
|
block discarded – undo |
|
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
|
36
|
//Filter out tickets which have an availability period in the past. |
|
37
|
|
- $p = function (string $identifier) use ($configuration) { |
|
|
37
|
+ $p = function(string $identifier) use ($configuration) { |
|
38
|
38
|
$metadata = $configuration->getTicketMetadata($identifier); |
|
39
|
39
|
|
|
40
|
40
|
return !($metadata->expiredOn(new \DateTime())); |
|
41
|
41
|
}; |
|
42
|
42
|
$identifiers = $identifiers->map($p); |
|
43
|
43
|
|
|
44
|
|
- $p = function (TicketCounter $ticket) use ($configuration, $identifiers) { |
|
|
44
|
+ $p = function(TicketCounter $ticket) use ($configuration, $identifiers) { |
|
45
|
45
|
$metadata = $configuration->getTicketMetadata($ticket->getTicketType()->getIdentifier()); |
|
46
|
46
|
|
|
47
|
47
|
foreach ($metadata->getAfterSoldOut() as $identifier) { |
Please login to merge, or discard this patch.