@@ -91,8 +91,8 @@ |
||
91 | 91 | $mimeType = MIMEType::fromNative($mimeTypeString); |
92 | 92 | |
93 | 93 | $fileId = new UUID($this->uuidGenerator->generate()); |
94 | - $fileName = $fileId . '.' . $file->guessExtension(); |
|
95 | - $destination = $this->getUploadDirectory() . '/' . $fileName; |
|
94 | + $fileName = $fileId.'.'.$file->guessExtension(); |
|
95 | + $destination = $this->getUploadDirectory().'/'.$fileName; |
|
96 | 96 | $stream = fopen($file->getRealPath(), 'r+'); |
97 | 97 | $this->filesystem->writeStream($destination, $stream); |
98 | 98 | fclose($stream); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | ) { |
273 | 273 | $this->saveNewDocument( |
274 | 274 | $eventId, |
275 | - function (\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) { |
|
275 | + function(\stdClass $eventLd) use ($eventId, $cdbXmlNamespaceUri, $cdbXml, $domainMessage) { |
|
276 | 276 | $eventLd = $this->projectEventCdbXmlToObject( |
277 | 277 | $eventLd, |
278 | 278 | $eventId, |
@@ -329,13 +329,13 @@ discard block |
||
329 | 329 | ) { |
330 | 330 | $this->saveNewDocument( |
331 | 331 | $eventId, |
332 | - function (\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) { |
|
332 | + function(\stdClass $eventLd) use ($cdbXmlNamespaceUri, $eventId, $cdbXml) { |
|
333 | 333 | return $this->projectEventCdbXmlToObject( |
334 | 334 | $eventLd, |
335 | 335 | $eventId, |
336 | 336 | $cdbXmlNamespaceUri, |
337 | 337 | $cdbXml |
338 | - ) ; |
|
338 | + ); |
|
339 | 339 | } |
340 | 340 | ); |
341 | 341 | } |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | ) { |
412 | 412 | $this->saveNewDocument( |
413 | 413 | $eventCreated->getEventId(), |
414 | - function (\stdClass $jsonLD) use ($eventCreated, $domainMessage) { |
|
414 | + function(\stdClass $jsonLD) use ($eventCreated, $domainMessage) { |
|
415 | 415 | $jsonLD->{'@id'} = $this->iriGenerator->iri( |
416 | 416 | $eventCreated->getEventId() |
417 | 417 | ); |
@@ -485,8 +485,8 @@ discard block |
||
485 | 485 | ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid()); |
486 | 486 | |
487 | 487 | // Remove old theme and event type. |
488 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
489 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
488 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
489 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
490 | 490 | }); |
491 | 491 | |
492 | 492 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | { |
664 | 664 | $eventSlug = $this->slugger->slug($name); |
665 | 665 | return array( |
666 | - 'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId, |
|
666 | + 'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId, |
|
667 | 667 | ); |
668 | 668 | } |
669 | 669 |
@@ -47,6 +47,6 @@ |
||
47 | 47 | |
48 | 48 | $sent = $this->mailer->send($message); |
49 | 49 | |
50 | - print 'sent ' . $sent . ' e-mails' . PHP_EOL; |
|
50 | + print 'sent '.$sent.' e-mails'.PHP_EOL; |
|
51 | 51 | } |
52 | 52 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $file = fopen($filePath, 'w'); |
29 | 29 | if (false === $file) { |
30 | 30 | throw new \RuntimeException( |
31 | - 'Unable to open file for writing: ' . $filePath |
|
31 | + 'Unable to open file for writing: '.$filePath |
|
32 | 32 | ); |
33 | 33 | } |
34 | 34 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ) { |
47 | 47 | if (!$twig) { |
48 | 48 | $loader = new \Twig_Loader_Filesystem( |
49 | - __DIR__ . '/templates' |
|
49 | + __DIR__.'/templates' |
|
50 | 50 | ); |
51 | 51 | $twig = new Twig_Environment($loader); |
52 | 52 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ); |
40 | 40 | |
41 | 41 | $webArchiveFiles = $this->mountManager->listContents( |
42 | - 'tmp://' . $directory, |
|
42 | + 'tmp://'.$directory, |
|
43 | 43 | true |
44 | 44 | ); |
45 | 45 | |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | continue; |
49 | 49 | } |
50 | 50 | |
51 | - $from = $file['filesystem'] . '://' . $file['path']; |
|
51 | + $from = $file['filesystem'].'://'.$file['path']; |
|
52 | 52 | |
53 | 53 | $pathWithoutUpperDirectory = $this->pathWithoutUpperDirectory( |
54 | 54 | $file['path'] |
55 | 55 | ); |
56 | - $to = 'zip://html/' . $pathWithoutUpperDirectory; |
|
56 | + $to = 'zip://html/'.$pathWithoutUpperDirectory; |
|
57 | 57 | |
58 | 58 | |
59 | 59 | $this->mountManager->copy($from, $to); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function write($filePath, $events) |
41 | 41 | { |
42 | 42 | $originDirectory = $this->createWebArchiveDirectory($events); |
43 | - $originFile = $this->expandTmpPath($originDirectory) . '/index.html'; |
|
43 | + $originFile = $this->expandTmpPath($originDirectory).'/index.html'; |
|
44 | 44 | |
45 | 45 | $messages = array(); |
46 | 46 | $result = $this->prince->convert_file_to_file($originFile, $filePath, $messages); |
@@ -158,7 +158,7 @@ |
||
158 | 158 | } catch (\Exception $e) { |
159 | 159 | if ($this->logger) { |
160 | 160 | $this->logger->error( |
161 | - 'Can\'t retrieve promotions for event with id:' . $event->cdbid, |
|
161 | + 'Can\'t retrieve promotions for event with id:'.$event->cdbid, |
|
162 | 162 | ['exception' => $e] |
163 | 163 | ); |
164 | 164 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $formattedEvent = []; |
108 | 108 | |
109 | 109 | if (isset($event->image)) { |
110 | - $formattedEvent['image'] = 'http:' . $event->image; |
|
110 | + $formattedEvent['image'] = 'http:'.$event->image; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | $type = EventType::fromJSONLDEvent($eventString); |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | { |
266 | 266 | return array_keys(array_filter( |
267 | 267 | $this->brandSpecs, |
268 | - function (EventSpecificationInterface $brandSpec) use ($event) { |
|
268 | + function(EventSpecificationInterface $brandSpec) use ($event) { |
|
269 | 269 | return $brandSpec->isSatisfiedBy($event); |
270 | 270 | } |
271 | 271 | )); |