Completed
Push — master ( 2677a0...2a87e3 )
by Mathieu
22:06
created
src/Charcoal/Cms/Route/GenericRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -499,7 +499,7 @@
 block discarded – undo
499 499
             if (isset($available[$code])) {
500 500
                 $locale = $available[$code];
501 501
                 if (isset($locale['locales'])) {
502
-                    $choices = (array)$locale['locales'];
502
+                    $choices = (array) $locale['locales'];
503 503
                     array_push($locales, ...$choices);
504 504
                 } elseif (isset($locale['locale'])) {
505 505
                     array_push($locales, $locale['locale']);
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/Section/BlocksSection.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Charcoal\Cms\Section;
4 4
 
5
-use RuntimeException;
6
-
7 5
 // From Pimple
8
-use Pimple\Container;
9 6
 
10 7
 // From `charcoal-core`
11
-use Charcoal\Loader\CollectionLoader;
12 8
 
13 9
 // From 'charcoal-cms'
14 10
 use Charcoal\Cms\AbstractSection;
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/NewsRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
     protected function loadNewsFromPath(Container $container)
119 119
     {
120 120
         if (!$this->news) {
121
-            $config  = $this->config();
121
+            $config = $this->config();
122 122
             $type   = (isset($config['obj_type']) ? $config['obj_type'] : $this->objType);
123 123
             $model  = $container['model/factory']->create($type);
124 124
 
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/EventRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
     protected function loadEventFromPath(Container $container)
119 119
     {
120 120
         if (!$this->event) {
121
-            $config  = $this->config();
121
+            $config = $this->config();
122 122
             $type   = (isset($config['obj_type']) ? $config['obj_type'] : $this->objType);
123 123
             $model  = $container['model/factory']->create($type);
124 124
 
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
@@ -88,8 +88,8 @@
 block discarded – undo
88 88
             return $response->withStatus(404);
89 89
         }
90 90
 
91
-        $templateIdent      = (string)$section->templateIdent();
92
-        $templateController = (string)$section->templateIdent();
91
+        $templateIdent      = (string) $section->templateIdent();
92
+        $templateController = (string) $section->templateIdent();
93 93
 
94 94
         if (!$templateController) {
95 95
             return $response->withStatus(404);
Please login to merge, or discard this patch.
src/Charcoal/Admin/Widget/Cms/HierarchicalSectionTableWidget.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Charcoal\Model\ModelInterface;
6 6
 use Charcoal\Property\PropertyInterface;
7 7
 use Pimple\Container;
8
-
9 8
 use Charcoal\Admin\Property\Display\HierarchicalDisplay;
10 9
 use Charcoal\Admin\Widget\TableWidget;
11 10
 use Charcoal\Object\HierarchicalCollection;
Please login to merge, or discard this patch.
src/Charcoal/Cms/TemplateableTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     protected function defaultTemplateProperties()
186 186
     {
187
-        return [ 'template_ident' ];
187
+        return ['template_ident'];
188 188
     }
189 189
 
190 190
     /**
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             if ($property instanceof SelectablePropertyInterface) {
210 210
                 if ($property->hasChoice($val)) {
211 211
                     $choice = $property->choice($val);
212
-                    $keys   = [ 'controller', 'template', 'class' ];
212
+                    $keys   = ['controller', 'template', 'class'];
213 213
                     foreach ($keys as $key) {
214 214
                         if (isset($choice[$key])) {
215 215
                             $interfaces[] = $choice[$key];
Please login to merge, or discard this patch.