Completed
Pull Request — master (#15)
by
unknown
03:12
created
src/Charcoal/Cms/Service/Loader/NewsLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $now = new DateTime();
54 54
         $loader = $this->all();
55
-        $loader->addFilter('publishDate', $now->format('Y-m-d H:i:s'), [ 'operator' => '<=' ])
56
-            ->addFilter('expiryDate', $now->format('Y-m-d H:i:s'), [ 'operator' => '>=' ]);
55
+        $loader->addFilter('publishDate', $now->format('Y-m-d H:i:s'), ['operator' => '<='])
56
+            ->addFilter('expiryDate', $now->format('Y-m-d H:i:s'), ['operator' => '>=']);
57 57
 
58 58
         return $loader;
59 59
     }
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $now = new DateTime();
67 67
         $loader = $this->all();
68
-        $loader->addFilter('publishDate', $now->format('Y-m-d H:i:s'), [ 'operator' => '<=' ])
69
-            ->addFilter('expiryDate', $now->format('Y-m-d H:i:s'), [ 'operator' => '<=' ]);
68
+        $loader->addFilter('publishDate', $now->format('Y-m-d H:i:s'), ['operator' => '<='])
69
+            ->addFilter('expiryDate', $now->format('Y-m-d H:i:s'), ['operator' => '<=']);
70 70
 
71 71
         return $loader;
72 72
     }
Please login to merge, or discard this patch.
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.