Test Setup Failed
Push — master ( 2b7bea...a8e43f )
by
unknown
01:34
created
src/Charcoal/Cms/Support/Traits/EventManagerAwareTrait.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
     protected function eventFormatShort(EventInterface $event)
237 237
     {
238 238
         return [
239
-            'title'         => (string)$event->title(),
240
-            'url'           => (string)$event->url(),
239
+            'title'         => (string) $event->title(),
240
+            'url'           => (string) $event->url(),
241 241
             'startDate'     => $this->getEventStartDateFormat($event),
242 242
             'startDateTime' => $event->startDate()->format('Y-m-d h:i'),
243 243
             'endDate'       => $this->getEventEndDateFormat($event),
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             'endDateTime'   => $event->endDate()->format('Y-m-d h:i'),
263 263
             'date'          => $this->getEventDateFormat($event),
264 264
             'time'          => $this->getEventTimeFormat($event),
265
-            'title'         => (string)$event->title(),
265
+            'title'         => (string) $event->title(),
266 266
             'url'           => $event->url()
267 267
         ];
268 268
     }
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
 
280 280
         return [
281 281
             'id'               => $event->id(),
282
-            'title'            => (string)$event->title(),
283
-            'summary'          => (string)$event->summary(),
284
-            'content'          => (string)$event->content(),
282
+            'title'            => (string) $event->title(),
283
+            'summary'          => (string) $event->summary(),
284
+            'content'          => (string) $event->content(),
285 285
             'image'            => $event->image(),
286 286
             'startDate'        => $this->getEventStartDateFormat($event),
287 287
             'startDateTime'    => $event->startDate()->format('Y-m-d h:i'),
@@ -296,9 +296,9 @@  discard block
 block discarded – undo
296 296
             'gallery'          => $gallery,
297 297
             'hasGallery'       => !!(count($gallery)),
298 298
             'url'              => $event->url(),
299
-            'metaTitle'        => (string)$event->metaTitle(),
300
-            'locationName'     => (string)$event->locationName(),
301
-            'dateNotes'        => (string)$event->dateNotes(),
299
+            'metaTitle'        => (string) $event->metaTitle(),
300
+            'locationName'     => (string) $event->locationName(),
301
+            'dateNotes'        => (string) $event->dateNotes(),
302 302
             'category'         => $event->getCategory()
303 303
         ];
304 304
     }
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
     {
312 312
         return [
313 313
             'id'   => $category->id(),
314
-            'name' => (string)$category->name(),
314
+            'name' => (string) $category->name(),
315 315
         ];
316 316
     }
317 317
 
Please login to merge, or discard this patch.
src/Charcoal/Cms/Support/Traits/NewsManagerAwareTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
     protected function newsFormatShort(NewsInterface $news)
196 196
     {
197 197
         return [
198
-            'title'        => (string)$news->title(),
199
-            'url'          => (string)$news->url(),
198
+            'title'        => (string) $news->title(),
199
+            'url'          => (string) $news->url(),
200 200
             'date'         => $this->getNewsDateFormat($news),
201 201
             'dateTime'     => $news->newsDate()->format('Y-m-d h:i'),
202 202
             'active'       => ($this->currentNews() && ($this->currentNews()['id'] == $news->id())),
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         return [
216 216
             'date'         => $this->getNewsDateFormat($news),
217 217
             'dateTime'     => $news->newsDate()->format('Y-m-d h:i'),
218
-            'title'        => (string)$news->title(),
218
+            'title'        => (string) $news->title(),
219 219
             'url'          => $news->url(),
220 220
             'category'     => $news->getCategory(),
221 221
             'categoryName' => $this->newsCategory($news)->name()
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
 
235 235
         return [
236 236
             'id'               => $news->id(),
237
-            'title'            => (string)$news->title(),
238
-            'summary'          => (string)$news->summary(),
239
-            'content'          => (string)$news->content(),
237
+            'title'            => (string) $news->title(),
238
+            'summary'          => (string) $news->summary(),
239
+            'content'          => (string) $news->content(),
240 240
             'image'            => $news->image(),
241 241
             'date'             => $this->getNewsDateFormat($news),
242 242
             'dateTime'         => $news->newsDate()->format('Y-m-d h:i'),
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             'gallery'          => $gallery,
248 248
             'hasGallery'       => !!(count($gallery)),
249 249
             'url'              => $news->url(),
250
-            'metaTitle'        => (string)$news->metaTitle(),
250
+            'metaTitle'        => (string) $news->metaTitle(),
251 251
             'category'         => $news->getCategory(),
252 252
             'categoryName'     => $this->newsCategory($news)->name()
253 253
         ];
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     {
262 262
         return [
263 263
             'id'   => $category->id(),
264
-            'name' => (string)$category['name'],
264
+            'name' => (string) $category['name'],
265 265
         ];
266 266
     }
267 267
 
Please login to merge, or discard this patch.