@@ -499,7 +499,7 @@ |
||
| 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']); |
@@ -34,7 +34,7 @@ |
||
| 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' |
@@ -2,13 +2,9 @@ |
||
| 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; |
@@ -118,7 +118,7 @@ |
||
| 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 | |
@@ -118,7 +118,7 @@ |
||
| 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 | |
@@ -88,8 +88,8 @@ |
||
| 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); |
@@ -5,7 +5,6 @@ |
||
| 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; |