@@ -192,8 +192,8 @@ discard block |
||
| 192 | 192 | protected function newsFormatShort(NewsInterface $news) |
| 193 | 193 | { |
| 194 | 194 | return [ |
| 195 | - 'title' => (string)$news->title(), |
|
| 196 | - 'url' => (string)$news->url(), |
|
| 195 | + 'title' => (string) $news->title(), |
|
| 196 | + 'url' => (string) $news->url(), |
|
| 197 | 197 | 'date' => $this->getNewsDateFormat($news), |
| 198 | 198 | 'dateTime' => $news->newsDate()->format('Y-m-d h:i'), |
| 199 | 199 | 'active' => ($this->currentNews() && ($this->currentNews()['id'] == $news->id())), |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | return [ |
| 213 | 213 | 'date' => $this->getNewsDateFormat($news), |
| 214 | 214 | 'dateTime' => $news->newsDate()->format('Y-m-d h:i'), |
| 215 | - 'title' => (string)$news->title(), |
|
| 215 | + 'title' => (string) $news->title(), |
|
| 216 | 216 | 'url' => $news->url(), |
| 217 | 217 | 'category' => $news->category(), |
| 218 | 218 | 'categoryName' => $this->newsCategory($news)->name() |
@@ -231,9 +231,9 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | return [ |
| 233 | 233 | 'id' => $news->id(), |
| 234 | - 'title' => (string)$news->title(), |
|
| 235 | - 'summary' => (string)$news->summary(), |
|
| 236 | - 'content' => (string)$news->content(), |
|
| 234 | + 'title' => (string) $news->title(), |
|
| 235 | + 'summary' => (string) $news->summary(), |
|
| 236 | + 'content' => (string) $news->content(), |
|
| 237 | 237 | 'image' => $news->image(), |
| 238 | 238 | 'date' => $this->getNewsDateFormat($news), |
| 239 | 239 | 'dateTime' => $news->newsDate()->format('Y-m-d h:i'), |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | 'gallery' => $gallery, |
| 245 | 245 | 'hasGallery' => !!(count($gallery)), |
| 246 | 246 | 'url' => $news->url(), |
| 247 | - 'metaTitle' => (string)$news->metaTitle(), |
|
| 247 | + 'metaTitle' => (string) $news->metaTitle(), |
|
| 248 | 248 | 'category' => $news->category(), |
| 249 | 249 | 'categoryName' => $this->newsCategory($news)->name() |
| 250 | 250 | ]; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | { |
| 259 | 259 | return [ |
| 260 | 260 | 'id' => $category->id(), |
| 261 | - 'name' => (string)$category->name(), |
|
| 261 | + 'name' => (string) $category->name(), |
|
| 262 | 262 | ]; |
| 263 | 263 | } |
| 264 | 264 | |
@@ -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 | |