Test Setup Failed
Push — master ( a8e43f...bd2eaf )
by Chauncey
01:05
created
src/Charcoal/Cms/Mixin/Traits/HasContentBlocksTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function contentBlocks()
21 21
     {
22
-        return $this->getAttachments([ 'group' => 'contents' ]);
22
+        return $this->getAttachments(['group' => 'contents']);
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
src/Charcoal/Cms/Support/Traits/EventManagerAwareTrait.php 1 patch
Spacing   +13 added lines, -13 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
     }
@@ -273,15 +273,15 @@  discard block
 block discarded – undo
273 273
      */
274 274
     protected function eventFormatFull(EventInterface $event)
275 275
     {
276
-        $contentBlocks = $event->getAttachments([ 'group' => 'content-blocks' ]);
277
-        $gallery = $event->getAttachments([ 'group' => 'image-gallery' ]);
278
-        $documents = $event->getAttachments([ 'group' => 'document' ]);
276
+        $contentBlocks = $event->getAttachments(['group' => 'content-blocks']);
277
+        $gallery = $event->getAttachments(['group' => 'image-gallery']);
278
+        $documents = $event->getAttachments(['group' => 'document']);
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/SectionLoaderAwareTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function routes()
85 85
     {
86
-        return function ($arg) {
86
+        return function($arg) {
87 87
             return $this->sectionLoader()->resolveRoute($arg);
88 88
         };
89 89
     }
@@ -180,15 +180,15 @@  discard block
 block discarded – undo
180 180
      */
181 181
     protected function formatSection(SectionInterface $section)
182 182
     {
183
-        $contentBlocks = $section->getAttachments([ 'group' => 'content-blocks' ]);
184
-        $gallery = $section->getAttachments([ 'group' => 'image-gallery' ]);
185
-        $documents = $section->getAttachments([ 'group' => 'document' ]);
183
+        $contentBlocks = $section->getAttachments(['group' => 'content-blocks']);
184
+        $gallery = $section->getAttachments(['group' => 'image-gallery']);
185
+        $documents = $section->getAttachments(['group' => 'document']);
186 186
 
187 187
         return [
188
-            'title'         => (string)$section->title(),
189
-            'summary'       => (string)$section->summary(),
190
-            'image'         => (string)$section->image(),
191
-            'content'       => (string)$section->content(),
188
+            'title'         => (string) $section->title(),
189
+            'summary'       => (string) $section->summary(),
190
+            'image'         => (string) $section->image(),
191
+            'content'       => (string) $section->content(),
192 192
             'contentBlocks' => $contentBlocks,
193 193
             'gallery'       => $gallery,
194 194
             'documents'     => $documents
Please login to merge, or discard this patch.
src/Charcoal/Cms/Support/Traits/NewsManagerAwareTrait.php 1 patch
Spacing   +11 added lines, -11 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()
@@ -228,15 +228,15 @@  discard block
 block discarded – undo
228 228
      */
229 229
     protected function newsFormatFull(NewsInterface $news)
230 230
     {
231
-        $contentBlocks = $news->getAttachments([ 'group' => 'content-blocks' ]);
232
-        $gallery = $news->getAttachments([ 'group' => 'image-gallery' ]);
233
-        $documents = $news->getAttachments([ 'group' => 'document' ]);
231
+        $contentBlocks = $news->getAttachments(['group' => 'content-blocks']);
232
+        $gallery = $news->getAttachments(['group' => 'image-gallery']);
233
+        $documents = $news->getAttachments(['group' => 'document']);
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.