Test Setup Failed
Push — master ( 84252e...d1a772 )
by
unknown
02:53
created
src/Charcoal/Cms/Service/Manager/EventManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         }
217 217
 
218 218
         if ($this->category()) {
219
-            $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]);
219
+            $loader->addFilter('category', $this->category(), ['operator' => 'in']);
220 220
         }
221 221
 
222 222
         if ($this->numPerPage()) {
@@ -321,8 +321,8 @@  discard block
 block discarded – undo
321 321
 
322 322
         $ids = explode(',', $ids);
323 323
 
324
-        $loader->addFilter('id', $ids, [ 'operator' => 'in' ])
325
-            ->addOrder('id', 'values', [ 'values' => $ids ]);
324
+        $loader->addFilter('id', $ids, ['operator' => 'in'])
325
+            ->addOrder('id', 'values', ['values' => $ids]);
326 326
 
327 327
         if (count($options) > 0) {
328 328
             foreach ($options as $key => $option) {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
         $loader = $this->loader()->archive();
370 370
 
371 371
         if ($this->category()) {
372
-            $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]);
372
+            $loader->addFilter('category', $this->category(), ['operator' => 'in']);
373 373
         }
374 374
         if ($this->numPerPage()) {
375 375
             $loader->setPage($this->page());
Please login to merge, or discard this patch.
src/Charcoal/Cms/Service/Manager/NewsManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $loader->addOrder('news_date', 'desc');
123 123
 
124 124
         if ($this->category()) {
125
-            $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]);
125
+            $loader->addFilter('category', $this->category(), ['operator' => 'in']);
126 126
         }
127 127
         if ($this->numPerPage()) {
128 128
             $loader->setPage($this->page());
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
 
224 224
         $ids = explode(',', $ids);
225 225
 
226
-        $loader->addFilter('id', $ids, [ 'operator' => 'in' ])
227
-            ->addOrder('id', 'values', [ 'values' => $ids ]);
226
+        $loader->addFilter('id', $ids, ['operator' => 'in'])
227
+            ->addOrder('id', 'values', ['values' => $ids]);
228 228
 
229 229
         if (count($options) > 0) {
230 230
             foreach ($options as $key => $option) {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         $loader->addOrder('news_date', 'desc');
273 273
 
274 274
         if ($this->category()) {
275
-            $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]);
275
+            $loader->addFilter('category', $this->category(), ['operator' => 'in']);
276 276
         }
277 277
         if ($this->numPerPage()) {
278 278
             $loader->setPage($this->page());
Please login to merge, or discard this patch.
src/Charcoal/Cms/Service/Loader/SectionLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $loader = $this->all();
74 74
         $operator = [];
75 75
         if (!$this->baseSection()) {
76
-            $operator = [ 'operator' => 'IS NULL' ];
76
+            $operator = ['operator' => 'IS NULL'];
77 77
         }
78 78
         $loader->addFilter('master', $this->baseSection(), $operator);
79 79
 
Please login to merge, or discard this patch.
src/Charcoal/Property/TemplateOptionsProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function addStructureInterface($interface)
35 35
     {
36 36
         if ($interface instanceof TemplateProperty) {
37
-            $interface = (string)$interface;
37
+            $interface = (string) $interface;
38 38
             if (empty($interface)) {
39 39
                 throw new InvalidArgumentException(
40 40
                     'Invalid template structure interface'
Please login to merge, or discard this patch.
src/Charcoal/Cms/Support/Helpers/DateHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -199,18 +199,18 @@  discard block
 block discarded – undo
199 199
                            ? $this->translator()->translation($case['formats']['to'])
200 200
                            : null;
201 201
 
202
-        $formats['from'] = $this->crossPlatformFormat((string)$formats['from']);
203
-        $formats['to']   = $this->crossPlatformFormat((string)$formats['to']);
202
+        $formats['from'] = $this->crossPlatformFormat((string) $formats['from']);
203
+        $formats['to']   = $this->crossPlatformFormat((string) $formats['to']);
204 204
 
205 205
         if (!$this->to || !$formats['to']) {
206 206
             return sprintf(
207
-                (string)$content,
207
+                (string) $content,
208 208
                 strftime($formats['from'], $this->from->getTimestamp())
209 209
             );
210 210
         }
211 211
 
212 212
         return sprintf(
213
-            (string)$content,
213
+            (string) $content,
214 214
             strftime($formats['from'], $this->from->getTimestamp()),
215 215
             strftime($formats['to'], $this->to->getTimestamp())
216 216
         );
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
 
236 236
         if (!$this->to || !$formats['to']) {
237 237
             return sprintf(
238
-                (string)$content,
238
+                (string) $content,
239 239
                 strftime($formats['from'], $this->from->getTimestamp())
240 240
             );
241 241
         }
242 242
 
243 243
         return sprintf(
244
-            (string)$content,
244
+            (string) $content,
245 245
             strftime($formats['from'], $this->from->getTimestamp()),
246 246
             strftime($formats['to'], $this->to->getTimestamp())
247 247
         );
Please login to merge, or discard this patch.
src/Charcoal/Cms/AbstractNews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         parent::__construct($data);
33 33
 
34
-        if (is_callable([ $this, 'defaultData' ])) {
34
+        if (is_callable([$this, 'defaultData'])) {
35 35
             $this->setData($this->defaultData());
36 36
         }
37 37
     }
Please login to merge, or discard this patch.
src/Charcoal/Cms/AbstractSection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         parent::__construct($data);
33 33
 
34
-        if (is_callable([ $this, 'defaultData' ])) {
34
+        if (is_callable([$this, 'defaultData'])) {
35 35
             $this->setData($this->defaultData());
36 36
         }
37 37
     }
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
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Charcoal/Cms/Support/Traits/EventManagerAwareTrait.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -228,8 +228,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.