@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $emailCommand->template = 'RegistrationPayment'; |
137 | 137 | $emailCommand->templateData = array( |
138 | 138 | 'registration' => $command->registration, |
139 | - 'payment_link' => rtrim($command->schemeAndHost, '/') . $this->router->generate('bcrmweb_registration_payment', array('id' => $command->registration->getUuid())) |
|
139 | + 'payment_link' => rtrim($command->schemeAndHost, '/').$this->router->generate('bcrmweb_registration_payment', array('id' => $command->registration->getUuid())) |
|
140 | 140 | ); |
141 | 141 | $this->commandBus->handle($emailCommand); |
142 | 142 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | $qrCode = new QrCode(); |
171 | 171 | $qrCode->setText( |
172 | - rtrim($command->schemeAndHost, '/') . $this->router->generate( |
|
172 | + rtrim($command->schemeAndHost, '/').$this->router->generate( |
|
173 | 173 | 'bcrmweb_event_checkin', |
174 | 174 | array('id' => $command->ticket->getId(), 'code' => $command->ticket->getCode()) |
175 | 175 | ) |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | $qrCode->setSize(300); |
179 | 179 | $qrCode->setPadding(10); |
180 | - $qrfile = tempnam(sys_get_temp_dir(), 'qrcode-') . '.png'; |
|
180 | + $qrfile = tempnam(sys_get_temp_dir(), 'qrcode-').'.png'; |
|
181 | 181 | $qrCode->render($qrfile); |
182 | 182 | |
183 | 183 | $emailCommand = new SendTemplateMailCommand(); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $emailCommand->templateData = array( |
187 | 187 | 'ticket' => $command->ticket, |
188 | 188 | 'event' => $command->event, |
189 | - 'cancel_link' => rtrim($command->schemeAndHost, '/') . $this->router->generate( |
|
189 | + 'cancel_link' => rtrim($command->schemeAndHost, '/').$this->router->generate( |
|
190 | 190 | 'bcrmweb_event_cancel_ticket', |
191 | 191 | array('id' => $command->ticket->getId(), 'code' => $command->ticket->getCode()) |
192 | 192 | ) |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | $emailCommand->template = 'UnregistrationConfirmation'; |
234 | 234 | $emailCommand->templateData = array( |
235 | 235 | 'unregistration' => $command->unregistration, |
236 | - 'confirmation_link' => rtrim($command->schemeAndHost, '/') . $this->router->generate('bcrm_unregistration_confirm', array('id' => $command->unregistration->getId(), 'key' => $key)) |
|
236 | + 'confirmation_link' => rtrim($command->schemeAndHost, '/').$this->router->generate('bcrm_unregistration_confirm', array('id' => $command->unregistration->getId(), 'key' => $key)) |
|
237 | 237 | ); |
238 | 238 | $this->commandBus->handle($emailCommand); |
239 | 239 | } |
@@ -318,7 +318,7 @@ discard block |
||
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; |
@@ -148,7 +148,7 @@ |
||
148 | 148 | $qb->expr()->like('t.name', ':term'), |
149 | 149 | $qb->expr()->like('t.code', ':term'), |
150 | 150 | $qb->expr()->like('t.email', ':term') |
151 | - ))->setParameter('term', '%' . $term . '%') |
|
151 | + ))->setParameter('term', '%'.$term.'%') |
|
152 | 152 | ->getQuery() |
153 | 153 | ->getResult(); |
154 | 154 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | // Create registrations |
44 | 44 | for ($i = 0; $i < 5; $i++) { |
45 | 45 | $payment = new Payment(); |
46 | - $payment->setTransactionId('payment' . $i); |
|
46 | + $payment->setTransactionId('payment'.$i); |
|
47 | 47 | $payment->setMethod('cash'); |
48 | 48 | $em->persist($payment); |
49 | 49 | $registration = new Registration(); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $this->assertObjectHasAttribute('tags', $ticket); |
100 | 100 | $this->assertObjectHasAttribute('code', $ticket); |
101 | 101 | $this->assertObjectHasAttribute('day', $ticket); |
102 | - $this->assertEquals('#' . strtolower(str_replace(' ', '', $ticket->name)), $ticket->tags); |
|
102 | + $this->assertEquals('#'.strtolower(str_replace(' ', '', $ticket->name)), $ticket->tags); |
|
103 | 103 | $this->assertEquals(1, preg_match('/^PRNT[0-9]+$/', $ticket->code)); |
104 | 104 | $this->assertEquals(2, $ticket->day); |
105 | 105 | |
@@ -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 | )); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $type = null; |
59 | 59 | $items[] = array( |
60 | 60 | '@context' => 'http://barcamp-rheinmain.de/jsonld/Ticket', |
61 | - '@subject' => $this->schemeAndHost . $this->router->generate('bcrmprint_ticket', array('id' => $ticket->getId(), 'code' => $ticket->getCode())), |
|
61 | + '@subject' => $this->schemeAndHost.$this->router->generate('bcrmprint_ticket', array('id' => $ticket->getId(), 'code' => $ticket->getCode())), |
|
62 | 62 | 'name' => $ticket->getName(), |
63 | 63 | 'twitter' => $registration->getTwitter(), |
64 | 64 | 'code' => $ticket->getCode(), |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $container->setParameter('bcrm_web.content_dir', $config['content_dir']); |
28 | 28 | $container->setParameter('bcrm_web.content_path', $config['content_path']); |
29 | 29 | |
30 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
30 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | 31 | $loader->load('controllers.xml'); |
32 | 32 | $loader->load('services.xml'); |
33 | 33 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $this->assertNull($registration->getPayment()); |
130 | 130 | |
131 | 131 | $client = static::createClient(); |
132 | - $client->request('GET', '/anmeldung/' . $registration->getUuid() . '/payment'); |
|
132 | + $client->request('GET', '/anmeldung/'.$registration->getUuid().'/payment'); |
|
133 | 133 | $response = $client->getResponse(); |
134 | 134 | $this->assertEquals(200, $response->getStatusCode()); |
135 | 135 | preg_match('/data-number="([^"]+)"/', $response->getContent(), $registrationUuidMatch); |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | |
291 | 291 | // Create registrations |
292 | 292 | for ($i = 1; $i <= 5; $i++) { |
293 | - $email = 'john.doe.198' . $i . '@domain.com'; |
|
293 | + $email = 'john.doe.198'.$i.'@domain.com'; |
|
294 | 294 | $registration = new Registration(); |
295 | 295 | $registration->setName($i); |
296 | 296 | $registration->setEvent($event); |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | 'day' => Ticket::DAY_SATURDAY, |
314 | 314 | )); |
315 | 315 | $this->assertEquals(3, count($tickets)); |
316 | - $this->assertInArray('[email protected]', array_map(function (Ticket $t) { |
|
316 | + $this->assertInArray('[email protected]', array_map(function(Ticket $t) { |
|
317 | 317 | return $t->getEmail(); |
318 | 318 | }, $tickets)); |
319 | 319 | |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | 'day' => Ticket::DAY_SATURDAY, |
341 | 341 | )); |
342 | 342 | $this->assertEquals(3, count($tickets)); |
343 | - $this->assertNotInArray('[email protected]', array_map(function (Ticket $t) { |
|
343 | + $this->assertNotInArray('[email protected]', array_map(function(Ticket $t) { |
|
344 | 344 | return $t->getEmail(); |
345 | 345 | }, $tickets)); |
346 | 346 | } |
@@ -158,7 +158,7 @@ |
||
158 | 158 | } else { |
159 | 159 | $days[] = 'SU'; |
160 | 160 | } |
161 | - $str .= ' (' . join('+', $days) . ')'; |
|
161 | + $str .= ' ('.join('+', $days).')'; |
|
162 | 162 | return $str; |
163 | 163 | } |
164 | 164 |
@@ -158,7 +158,7 @@ |
||
158 | 158 | } else { |
159 | 159 | $days[] = 'SU'; |
160 | 160 | } |
161 | - $str .= ' (' . join('+', $days) . ')'; |
|
161 | + $str .= ' ('.join('+', $days).')'; |
|
162 | 162 | return $str; |
163 | 163 | } |
164 | 164 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $container->setParameter('bcrm_web.content_dir', $config['content_dir']); |
28 | 28 | $container->setParameter('bcrm_web.content_path', $config['content_path']); |
29 | 29 | |
30 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
30 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | 31 | $loader->load('controllers.xml'); |
32 | 32 | $loader->load('services.xml'); |
33 | 33 | } |