| @@ -132,14 +132,14 @@ | ||
| 132 | 132 | public function serialize() | 
| 133 | 133 |      { | 
| 134 | 134 | return [ | 
| 135 | - 'phone' => $this->phone, | |
| 136 | - 'email' => $this->email, | |
| 137 | - 'url' => $this->url, | |
| 138 | - 'urlLabel' => $this->urlLabel, | |
| 139 | - 'name' => $this->name, | |
| 140 | - 'description' => $this->description, | |
| 141 | - 'availabilityStarts' => $this->availabilityStarts, | |
| 142 | - 'availabilityEnds' => $this->availabilityEnds | |
| 135 | + 'phone' => $this->phone, | |
| 136 | + 'email' => $this->email, | |
| 137 | + 'url' => $this->url, | |
| 138 | + 'urlLabel' => $this->urlLabel, | |
| 139 | + 'name' => $this->name, | |
| 140 | + 'description' => $this->description, | |
| 141 | + 'availabilityStarts' => $this->availabilityStarts, | |
| 142 | + 'availabilityEnds' => $this->availabilityEnds | |
| 143 | 143 | ]; | 
| 144 | 144 | } | 
| 145 | 145 | |
| @@ -70,9 +70,9 @@ | ||
| 70 | 70 | public function serialize() | 
| 71 | 71 |      { | 
| 72 | 72 | return [ | 
| 73 | - 'id' => $this->id, | |
| 74 | - 'label' => $this->label, | |
| 75 | - 'domain' => $this->domain, | |
| 73 | + 'id' => $this->id, | |
| 74 | + 'label' => $this->label, | |
| 75 | + 'domain' => $this->domain, | |
| 76 | 76 | ]; | 
| 77 | 77 | } | 
| 78 | 78 | |
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | public static function deserialize(array $data) | 
| 58 | 58 |      { | 
| 59 | 59 | $labels = array_map( | 
| 60 | -            function ($item) { | |
| 60 | +            function($item) { | |
| 61 | 61 | return new Label( | 
| 62 | 62 | $item['text'], | 
| 63 | 63 | $item['visible'] | 
| @@ -78,9 +78,9 @@ discard block | ||
| 78 | 78 | public function serialize() | 
| 79 | 79 |      { | 
| 80 | 80 | $labels = array_map( | 
| 81 | -            function (Label $label) { | |
| 81 | +            function(Label $label) { | |
| 82 | 82 | return [ | 
| 83 | - 'text' => (string) $label, | |
| 83 | + 'text' => (string)$label, | |
| 84 | 84 | 'visible' => $label->isVisible(), | 
| 85 | 85 | ]; | 
| 86 | 86 | }, | 
| @@ -78,16 +78,16 @@ | ||
| 78 | 78 | $firstTimestamp = reset($uitpasCalendar->timestamps); | 
| 79 | 79 | $firstTimestampDate = new \DateTime(); | 
| 80 | 80 | $firstTimestampDate | 
| 81 | - ->setTimestamp($firstTimestamp->date) | |
| 82 | - ->setTime(0, 0, 0); | |
| 81 | + ->setTimestamp($firstTimestamp->date) | |
| 82 | + ->setTime(0, 0, 0); | |
| 83 | 83 | $dateRange->datefrom = $firstTimestampDate->getTimestamp(); | 
| 84 | 84 | |
| 85 | 85 | /** @var \CultureFeed_Uitpas_Calendar_Timestamp $lastTimestamp */ | 
| 86 | 86 | $lastTimestamp = end($uitpasCalendar->timestamps); | 
| 87 | 87 | $lastTimestampDate = new \DateTime(); | 
| 88 | 88 | $lastTimestampDate | 
| 89 | - ->setTimestamp($lastTimestamp->date) | |
| 90 | - ->setTime(24, 59, 59); | |
| 89 | + ->setTimestamp($lastTimestamp->date) | |
| 90 | + ->setTime(24, 59, 59); | |
| 91 | 91 | $dateRange->dateto = $lastTimestampDate->getTimestamp(); | 
| 92 | 92 |          } else { | 
| 93 | 93 | // If there is no useful calendar info, start from the time the | 
| @@ -65,7 +65,7 @@ discard block | ||
| 65 | 65 | $dateRange->datefrom = $firstPeriod->datefrom; | 
| 66 | 66 | |
| 67 | 67 | /** @var CultureFeed_Uitpas_Calendar_Period $lastPeriod */ | 
| 68 | - $lastPeriod = end($uitpasCalendar->periods); | |
| 68 | + $lastPeriod = end($uitpasCalendar->periods); | |
| 69 | 69 | $dateRange->dateto = $lastPeriod->dateto; | 
| 70 | 70 |          } elseif (!empty($uitpasCalendar->timestamps)) { | 
| 71 | 71 | /** | 
| @@ -83,7 +83,7 @@ discard block | ||
| 83 | 83 | $dateRange->datefrom = $firstTimestampDate->getTimestamp(); | 
| 84 | 84 | |
| 85 | 85 | /** @var \CultureFeed_Uitpas_Calendar_Timestamp $lastTimestamp */ | 
| 86 | - $lastTimestamp = end($uitpasCalendar->timestamps); | |
| 86 | + $lastTimestamp = end($uitpasCalendar->timestamps); | |
| 87 | 87 | $lastTimestampDate = new \DateTime(); | 
| 88 | 88 | $lastTimestampDate | 
| 89 | 89 | ->setTimestamp($lastTimestamp->date) | 
| @@ -58,11 +58,11 @@ discard block | ||
| 58 | 58 | |
| 59 | 59 | $prefixedTerms = array_filter( | 
| 60 | 60 | $properties, | 
| 61 | -            function ($property) use ($termPrefix) { | |
| 61 | +            function($property) use ($termPrefix) { | |
| 62 | 62 | return strpos($property, $termPrefix) === 0; | 
| 63 | 63 | } | 
| 64 | 64 | ); | 
| 65 | -        $terms = array_map(function ($term) use ($termPrefix) { | |
| 65 | +        $terms = array_map(function($term) use ($termPrefix) { | |
| 66 | 66 | return str_replace($termPrefix, "", $term); | 
| 67 | 67 | }, $prefixedTerms); | 
| 68 | 68 | |
| @@ -86,7 +86,7 @@ discard block | ||
| 86 | 86 |              if (property_exists($eventObject, 'terms') && $includedTerms) { | 
| 87 | 87 | $filteredTerms = array_filter( | 
| 88 | 88 | $eventObject->terms, | 
| 89 | -                    function ($term) use ($includedTerms) { | |
| 89 | +                    function($term) use ($includedTerms) { | |
| 90 | 90 | return in_array($term->domain, $includedTerms); | 
| 91 | 91 | } | 
| 92 | 92 | ); | 
| @@ -33,8 +33,8 @@ | ||
| 33 | 33 | public function equals(Label $label) | 
| 34 | 34 |      { | 
| 35 | 35 | return strcmp( | 
| 36 | - mb_strtolower((string) $this, 'UTF-8'), | |
| 37 | - mb_strtolower((string) $label, 'UTF-8') | |
| 36 | + mb_strtolower((string)$this, 'UTF-8'), | |
| 37 | + mb_strtolower((string)$label, 'UTF-8') | |
| 38 | 38 | ) == 0; | 
| 39 | 39 | } | 
| 40 | 40 | } | 
| @@ -88,11 +88,11 @@ | ||
| 88 | 88 | } | 
| 89 | 89 | |
| 90 | 90 | return parent::serialize() + array( | 
| 91 | - 'title' => (string) $this->getTitle(), | |
| 92 | - 'addresses' => $addresses, | |
| 93 | - 'phones' => $this->getPhones(), | |
| 94 | - 'emails' => $this->getEmails(), | |
| 95 | - 'urls' => $this->getUrls(), | |
| 91 | + 'title' => (string) $this->getTitle(), | |
| 92 | + 'addresses' => $addresses, | |
| 93 | + 'phones' => $this->getPhones(), | |
| 94 | + 'emails' => $this->getEmails(), | |
| 95 | + 'urls' => $this->getUrls(), | |
| 96 | 96 | ); | 
| 97 | 97 | } | 
| 98 | 98 | |
| @@ -88,7 +88,7 @@ | ||
| 88 | 88 | } | 
| 89 | 89 | |
| 90 | 90 | return parent::serialize() + array( | 
| 91 | - 'title' => (string) $this->getTitle(), | |
| 91 | + 'title' => (string)$this->getTitle(), | |
| 92 | 92 | 'addresses' => $addresses, | 
| 93 | 93 | 'phones' => $this->getPhones(), | 
| 94 | 94 | 'emails' => $this->getEmails(), | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | public function serialize() | 
| 34 | 34 |      { | 
| 35 | 35 | return array( | 
| 36 | - 'organizer_id' => $this->organizerId, | |
| 36 | + 'organizer_id' => $this->organizerId, | |
| 37 | 37 | ); | 
| 38 | 38 | } | 
| 39 | 39 | |
| @@ -113,7 +113,7 @@ | ||
| 113 | 113 | $theme = $this->getTheme()->serialize(); | 
| 114 | 114 | } | 
| 115 | 115 | return parent::serialize() + array( | 
| 116 | - 'title' => (string) $this->getTitle(), | |
| 116 | + 'title' => (string)$this->getTitle(), | |
| 117 | 117 | 'event_type' => $this->getEventType()->serialize(), | 
| 118 | 118 | 'theme' => $theme, | 
| 119 | 119 | 'address' => $this->getAddress()->serialize(), |