@@ -105,7 +105,7 @@ |
||
105 | 105 | */ |
106 | 106 | protected function toBatch(ArrayCollection $emails, $deep = true) |
107 | 107 | { |
108 | - return $emails->map(function ($email) use($deep) { |
|
108 | + return $emails->map(function($email) use($deep) { |
|
109 | 109 | return array( |
110 | 110 | 'email' => $deep ? array('email' => $email) : $email, |
111 | 111 | 'email_type' => 'html' |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $configuration = new Configuration(); |
26 | 26 | $config = $this->processConfiguration($configuration, $configs); |
27 | 27 | |
28 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
28 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
29 | 29 | $loader->load('services.xml'); |
30 | 30 | $loader->load('persistence.xml'); |
31 | 31 | } |
@@ -318,7 +318,7 @@ |
||
318 | 318 | $payment = $event->payment; |
319 | 319 | $registrationOptional = $this->registrationRepo->findByUuid($payment->getPayload()->get('item_number')); |
320 | 320 | if ($registrationOptional->isEmpty()) { |
321 | - Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment) { |
|
321 | + Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment) { |
|
322 | 322 | $logger->alert(sprintf('No registration found with uuid "%s"', $payment->getPayload()->get('item_number')), array($payment)); |
323 | 323 | }); |
324 | 324 | return; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $template = $this->cr->getContent($tplIdentifier); |
56 | 56 | $templateData = $command->templateData; |
57 | 57 | if ($command->image !== null) { |
58 | - $templateData['image'] = $message->embed(\Swift_Image::fromPath($command->image));; |
|
58 | + $templateData['image'] = $message->embed(\Swift_Image::fromPath($command->image)); ; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | // Subject |
@@ -100,11 +100,11 @@ |
||
100 | 100 | $event->payment = $payment; |
101 | 101 | $payment->setPayload(new ArrayCollection($data)); |
102 | 102 | $this->eventMessageBus->publish($event); |
103 | - Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment) { |
|
103 | + Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment) { |
|
104 | 104 | $logger->info(sprintf('Payment "%s" is verified.', $payment->getId()), array($payment)); |
105 | 105 | }); |
106 | 106 | } else { |
107 | - Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment) { |
|
107 | + Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment) { |
|
108 | 108 | $logger->alert(sprintf('Payment "%s" could not be verified.', $payment->getId()), array($payment)); |
109 | 109 | }); |
110 | 110 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | { |
87 | 87 | $payment = $event->payment; |
88 | 88 | $registration = $event->registration; |
89 | - Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($registration, $payment) { |
|
89 | + Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($registration, $payment) { |
|
90 | 90 | $logger->alert(sprintf('Registration "%s" has been paid with payment "%s".', $registration->getId(), $payment->getId())); |
91 | 91 | }); |
92 | 92 | foreach ($this->ticketRepo->getTicketsForEmail( |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $updateCommand->id = $ticket->getId(); |
99 | 99 | $updateCommand->data = array('payment' => $payment); |
100 | 100 | $this->commandBus->handle($updateCommand); |
101 | - Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment, $ticket) { |
|
101 | + Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment, $ticket) { |
|
102 | 102 | $logger->alert(sprintf('Assigning payment "%s" to ticket "%s"', $payment->getId(), $ticket->getCode())); |
103 | 103 | }); |
104 | 104 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $client->request('GET', '/api/printing/queue'); |
130 | 130 | $response = $client->getResponse(); |
131 | 131 | $queue2 = json_decode($response->getContent()); |
132 | - $this->assertFalse(in_array($items[0]->{'@subject'}, array_map(function ($item) { |
|
132 | + $this->assertFalse(in_array($items[0]->{'@subject'}, array_map(function($item) { |
|
133 | 133 | return $item->{'@subject'}; |
134 | 134 | }, $queue2->items))); |
135 | 135 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | public function ticketsCanBeReprinted(array $items) |
147 | 147 | { |
148 | - $client = static::createClient(array(), array( |
|
148 | + $client = static::createClient(array(), array( |
|
149 | 149 | 'PHP_AUTH_USER' => 'concierge', |
150 | 150 | 'PHP_AUTH_PW' => 'letmein', |
151 | 151 | )); |
@@ -111,7 +111,7 @@ |
||
111 | 111 | { |
112 | 112 | $dir = dirname($file->getPathname()) . DIRECTORY_SEPARATOR; |
113 | 113 | $contentdir = $this->contentDir->getPathname() . DIRECTORY_SEPARATOR; |
114 | - return array_map(function ($entry) use ($contentdir) { |
|
114 | + return array_map(function($entry) use ($contentdir) { |
|
115 | 115 | $entry = str_replace($contentdir, '', $entry); |
116 | 116 | return $entry; |
117 | 117 | }, glob($dir . '*.md')); |
@@ -168,7 +168,7 @@ |
||
168 | 168 | $end->setTime(23, 59, 59); |
169 | 169 | $day = $now->between($start, $end) ? Ticket::DAY_SATURDAY : Ticket::DAY_SUNDAY; |
170 | 170 | |
171 | - $tickets = array_map(function (Ticket $ticket) { |
|
171 | + $tickets = array_map(function(Ticket $ticket) { |
|
172 | 172 | return array( |
173 | 173 | 'code' => $ticket->getCode(), |
174 | 174 | 'email' => $ticket->getEmail(), |