Test Setup Failed
Push — master ( bf8bab...84252e )
by
unknown
01:10 queued 11s
created
src/Charcoal/Cms/Route/GenericRoute.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         }
133 133
 
134 134
         if (isset($contextObject['active'])) {
135
-            return (bool)$contextObject['active'];
135
+            return (bool) $contextObject['active'];
136 136
         }
137 137
 
138 138
         return true;
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
         if ($route->getRouteOptionsIdent()) {
453 453
             $loader->addFilter('route_options_ident', $route->getRouteOptionsIdent());
454 454
         } else {
455
-            $loader->addFilter('route_options_ident', '', [ 'operator' => 'IS NULL' ]);
455
+            $loader->addFilter('route_options_ident', '', ['operator' => 'IS NULL']);
456 456
         }
457 457
 
458 458
         return $loader->load()->first();
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
             if (isset($available[$code])) {
524 524
                 $locale = $available[$code];
525 525
                 if (isset($locale['locales'])) {
526
-                    $choices = (array)$locale['locales'];
526
+                    $choices = (array) $locale['locales'];
527 527
                     array_push($locales, ...$choices);
528 528
                 } elseif (isset($locale['locale'])) {
529 529
                     array_push($locales, $locale['locale']);
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/EventRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
             return $response->withStatus(404);
91 91
         }
92 92
 
93
-        $templateIdent      = (string)$event['templateIdent'];
94
-        $templateController = (string)$event['templateIdent'];
93
+        $templateIdent      = (string) $event['templateIdent'];
94
+        $templateController = (string) $event['templateIdent'];
95 95
 
96 96
         if (!$templateController) {
97 97
             $container['logger']->warning(sprintf(
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/SectionRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
             return $response->withStatus(404);
92 92
         }
93 93
 
94
-        $templateIdent      = (string)$section['templateIdent'];
95
-        $templateController = (string)$section['templateIdent'];
94
+        $templateIdent      = (string) $section['templateIdent'];
95
+        $templateController = (string) $section['templateIdent'];
96 96
 
97 97
         if (!$templateController) {
98 98
             $container['logger']->warning(sprintf(
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/NewsRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
             return $response->withStatus(404);
91 91
         }
92 92
 
93
-        $templateIdent      = (string)$news['templateIdent'];
94
-        $templateController = (string)$news['templateIdent'];
93
+        $templateIdent      = (string) $news['templateIdent'];
94
+        $templateController = (string) $news['templateIdent'];
95 95
 
96 96
         if (!$templateController) {
97 97
             $container['logger']->warning(sprintf(
Please login to merge, or discard this patch.
src/Charcoal/Cms/Support/Traits/SectionLoaderAwareTrait.php 1 patch
Spacing   +5 added lines, -5 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
     }
@@ -185,10 +185,10 @@  discard block
 block discarded – undo
185 185
         $documents = $section->getAttachments('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.