@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | private function dateFromUdb2UnixTime($unixTime) |
156 | 156 | { |
157 | 157 | $dateTime = new \DateTime( |
158 | - '@' . $unixTime, |
|
158 | + '@'.$unixTime, |
|
159 | 159 | new \DateTimeZone('Europe/Brussels') |
160 | 160 | ); |
161 | 161 | |
@@ -194,21 +194,21 @@ discard block |
||
194 | 194 | |
195 | 195 | $validKeywords = array_filter( |
196 | 196 | $keywords, |
197 | - function (CultureFeed_Cdb_Data_Keyword $keyword) { |
|
197 | + function(CultureFeed_Cdb_Data_Keyword $keyword) { |
|
198 | 198 | return strlen(trim($keyword->getValue())) > 0; |
199 | 199 | } |
200 | 200 | ); |
201 | 201 | |
202 | 202 | $visibleKeywords = array_filter( |
203 | 203 | $validKeywords, |
204 | - function (CultureFeed_Cdb_Data_Keyword $keyword) { |
|
204 | + function(CultureFeed_Cdb_Data_Keyword $keyword) { |
|
205 | 205 | return $keyword->isVisible(); |
206 | 206 | } |
207 | 207 | ); |
208 | 208 | |
209 | 209 | $hiddenKeywords = array_filter( |
210 | 210 | $validKeywords, |
211 | - function (CultureFeed_Cdb_Data_Keyword $keyword) { |
|
211 | + function(CultureFeed_Cdb_Data_Keyword $keyword) { |
|
212 | 212 | return !$keyword->isVisible(); |
213 | 213 | } |
214 | 214 | ); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | private function addKeywordsAsLabelsProperty($jsonLD, $labelsPropertyName, array $keywords) |
227 | 227 | { |
228 | 228 | $labels = array_map( |
229 | - function ($keyword) { |
|
229 | + function($keyword) { |
|
230 | 230 | /** @var CultureFeed_Cdb_Data_Keyword $keyword */ |
231 | 231 | return $keyword->getValue(); |
232 | 232 | }, |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | 'addressLocality' => $address->getCity(), |
313 | 313 | 'postalCode' => $address->getZip(), |
314 | 314 | 'streetAddress' => |
315 | - $address->getStreet() . ' ' . $address->getHouseNumber( |
|
315 | + $address->getStreet().' '.$address->getHouseNumber( |
|
316 | 316 | ), |
317 | 317 | ); |
318 | 318 | } |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | ) { |
494 | 494 | $contactInfo = $event->getContactInfo(); |
495 | 495 | |
496 | - $notForReservations = function ($item) { |
|
496 | + $notForReservations = function($item) { |
|
497 | 497 | /** @var \CultureFeed_Cdb_Data_Url|\CultureFeed_Cdb_Data_Phone|\CultureFeed_Cdb_Data_Mail $item */ |
498 | 498 | return !$item->isForReservations(); |
499 | 499 | }; |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | |
506 | 506 | if (!empty($emails)) { |
507 | 507 | $contactPoint['email'] = array_map( |
508 | - function (\CultureFeed_Cdb_Data_Mail $email) { |
|
508 | + function(\CultureFeed_Cdb_Data_Mail $email) { |
|
509 | 509 | return $email->getMailAddress(); |
510 | 510 | }, |
511 | 511 | $emails |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | |
518 | 518 | if (!empty($phones)) { |
519 | 519 | $contactPoint['phone'] = array_map( |
520 | - function (\CultureFeed_Cdb_Data_phone $phone) { |
|
520 | + function(\CultureFeed_Cdb_Data_phone $phone) { |
|
521 | 521 | return $phone->getNumber(); |
522 | 522 | }, |
523 | 523 | $phones |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | |
530 | 530 | if (!empty($urls)) { |
531 | 531 | $contactPoint['url'] = array_map( |
532 | - function (\CultureFeed_Cdb_Data_Url $url) { |
|
532 | + function(\CultureFeed_Cdb_Data_Url $url) { |
|
533 | 533 | return $url->getUrl(); |
534 | 534 | }, |
535 | 535 | $urls |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | $calendarType = 'periodic'; |
589 | 589 | $calendar->rewind(); |
590 | 590 | $firstCalendarItem = $calendar->current(); |
591 | - $startDateString = $firstCalendarItem->getDateFrom() . 'T00:00:00'; |
|
591 | + $startDateString = $firstCalendarItem->getDateFrom().'T00:00:00'; |
|
592 | 592 | $startDate = DateTimeFactory::dateTimeFromDateString($startDateString); |
593 | 593 | |
594 | 594 | if (iterator_count($calendar) > 1) { |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | $lastCalendarItem = $firstCalendarItem; |
599 | 599 | } |
600 | 600 | |
601 | - $endDateString = $lastCalendarItem->getDateTo() . 'T00:00:00'; |
|
601 | + $endDateString = $lastCalendarItem->getDateTo().'T00:00:00'; |
|
602 | 602 | $endDate = DateTimeFactory::dateTimeFromDateString($endDateString); |
603 | 603 | |
604 | 604 | $jsonLD->startDate = $startDate->format('c'); |
@@ -610,9 +610,9 @@ discard block |
||
610 | 610 | $firstCalendarItem = $calendar->current(); |
611 | 611 | if ($firstCalendarItem->getStartTime()) { |
612 | 612 | $dateString = |
613 | - $firstCalendarItem->getDate() . 'T' . $firstCalendarItem->getStartTime(); |
|
613 | + $firstCalendarItem->getDate().'T'.$firstCalendarItem->getStartTime(); |
|
614 | 614 | } else { |
615 | - $dateString = $firstCalendarItem->getDate() . 'T00:00:00'; |
|
615 | + $dateString = $firstCalendarItem->getDate().'T00:00:00'; |
|
616 | 616 | } |
617 | 617 | |
618 | 618 | $startDate = DateTimeFactory::dateTimeFromDateString($dateString); |
@@ -627,10 +627,10 @@ discard block |
||
627 | 627 | $endDateString = null; |
628 | 628 | if ($lastCalendarItem->getEndTime()) { |
629 | 629 | $endDateString = |
630 | - $lastCalendarItem->getDate() . 'T' . $lastCalendarItem->getEndTime(); |
|
630 | + $lastCalendarItem->getDate().'T'.$lastCalendarItem->getEndTime(); |
|
631 | 631 | } else { |
632 | 632 | if (iterator_count($calendar) > 1) { |
633 | - $endDateString = $lastCalendarItem->getDate() . 'T00:00:00'; |
|
633 | + $endDateString = $lastCalendarItem->getDate().'T00:00:00'; |
|
634 | 634 | } |
635 | 635 | } |
636 | 636 | |
@@ -744,7 +744,7 @@ discard block |
||
744 | 744 | $slug = ''; |
745 | 745 | } |
746 | 746 | |
747 | - $reference = 'http://www.uitinvlaanderen.be/agenda/e/' . $slug . '/' . $event->getCdbId(); |
|
747 | + $reference = 'http://www.uitinvlaanderen.be/agenda/e/'.$slug.'/'.$event->getCdbId(); |
|
748 | 748 | |
749 | 749 | |
750 | 750 | if (!property_exists($jsonLD, 'sameAs')) { |