@@ -228,8 +228,8 @@ discard block |
||
| 228 | 228 | protected function eventFormatShort(EventInterface $event) |
| 229 | 229 | { |
| 230 | 230 | return [ |
| 231 | - 'title' => (string)$event->title(), |
|
| 232 | - 'url' => (string)$event->url(), |
|
| 231 | + 'title' => (string) $event->title(), |
|
| 232 | + 'url' => (string) $event->url(), |
|
| 233 | 233 | 'startDate' => $this->getEventStartDateFormat($event), |
| 234 | 234 | 'startDateTime' => $event->startDate()->format('Y-m-d h:i'), |
| 235 | 235 | 'endDate' => $this->getEventEndDateFormat($event), |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | 'endDateTime' => $event->endDate()->format('Y-m-d h:i'), |
| 255 | 255 | 'date' => $this->getEventDateFormat($event), |
| 256 | 256 | 'time' => $this->getEventTimeFormat($event), |
| 257 | - 'title' => (string)$event->title(), |
|
| 257 | + 'title' => (string) $event->title(), |
|
| 258 | 258 | 'url' => $event->url() |
| 259 | 259 | ]; |
| 260 | 260 | } |
@@ -271,9 +271,9 @@ discard block |
||
| 271 | 271 | |
| 272 | 272 | return [ |
| 273 | 273 | 'id' => $event->id(), |
| 274 | - 'title' => (string)$event->title(), |
|
| 275 | - 'summary' => (string)$event->summary(), |
|
| 276 | - 'content' => (string)$event->content(), |
|
| 274 | + 'title' => (string) $event->title(), |
|
| 275 | + 'summary' => (string) $event->summary(), |
|
| 276 | + 'content' => (string) $event->content(), |
|
| 277 | 277 | 'image' => $event->image(), |
| 278 | 278 | 'startDate' => $this->getEventStartDateFormat($event), |
| 279 | 279 | 'startDateTime' => $event->startDate()->format('Y-m-d h:i'), |
@@ -288,9 +288,9 @@ discard block |
||
| 288 | 288 | 'gallery' => $gallery, |
| 289 | 289 | 'hasGallery' => !!(count($gallery)), |
| 290 | 290 | 'url' => $event->url(), |
| 291 | - 'metaTitle' => (string)$event->metaTitle(), |
|
| 292 | - 'locationName' => (string)$event->locationName(), |
|
| 293 | - 'dateNotes' => (string)$event->dateNotes(), |
|
| 291 | + 'metaTitle' => (string) $event->metaTitle(), |
|
| 292 | + 'locationName' => (string) $event->locationName(), |
|
| 293 | + 'dateNotes' => (string) $event->dateNotes(), |
|
| 294 | 294 | 'category' => $event->category() |
| 295 | 295 | ]; |
| 296 | 296 | } |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | { |
| 304 | 304 | return [ |
| 305 | 305 | 'id' => $category->id(), |
| 306 | - 'name' => (string)$category->name(), |
|
| 306 | + 'name' => (string) $category->name(), |
|
| 307 | 307 | ]; |
| 308 | 308 | } |
| 309 | 309 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | $struct = $this->availableTemplates[$choiceIdent]; |
| 102 | - $immutable = [ 'value' => $struct['value'] ]; |
|
| 102 | + $immutable = ['value' => $struct['value']]; |
|
| 103 | 103 | |
| 104 | 104 | return array_replace($struct, $choice, $immutable); |
| 105 | 105 | } elseif (isset($choice['template']) || isset($choice['controller']) || isset($choice['class'])) { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | return ''; |
| 140 | 140 | } |
| 141 | 141 | } elseif ($val instanceof Translation) { |
| 142 | - $propertyValue = (string)$val; |
|
| 142 | + $propertyValue = (string) $val; |
|
| 143 | 143 | } else { |
| 144 | 144 | $propertyValue = $val; |
| 145 | 145 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $val = $this->val(); |
| 188 | 188 | if ($this->hasChoice($val)) { |
| 189 | 189 | $choice = $this->choice($val); |
| 190 | - $keys = [ 'controller', 'template', 'class' ]; |
|
| 190 | + $keys = ['controller', 'template', 'class']; |
|
| 191 | 191 | foreach ($keys as $key) { |
| 192 | 192 | if (isset($choice[$key])) { |
| 193 | 193 | return $choice[$key]; |