@@ -16,7 +16,6 @@ |
||
| 16 | 16 | namespace Core\Event; |
| 17 | 17 | |
| 18 | 18 | use Cake\Event\Event as CakeEvent; |
| 19 | - |
|
| 20 | 19 | use JBZoo\Data\Data; |
| 21 | 20 | |
| 22 | 21 | /** |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * Emits an event. |
| 73 | 73 | * |
| 74 | 74 | * @param string $name |
| 75 | - * @param object|null $subject |
|
| 75 | + * @param \Cake\Controller\Controller $subject |
|
| 76 | 76 | * @param array|null $data |
| 77 | 77 | * @return Event |
| 78 | 78 | */ |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use Cake\ORM\Table; |
| 19 | 19 | use JBZoo\Utils\Arr; |
| 20 | 20 | use Cake\Controller\Component; |
| 21 | -use Cake\Datasource\EntityInterface; |
|
| 22 | 21 | use Cake\ORM\Behavior\TreeBehavior; |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | * Check html class exists. |
| 169 | 169 | * |
| 170 | 170 | * @param string $className |
| 171 | - * @return bool |
|
| 171 | + * @return string|false |
|
| 172 | 172 | */ |
| 173 | 173 | protected static function _classExists($className) |
| 174 | 174 | { |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | * |
| 211 | 211 | * @param string $plugin |
| 212 | 212 | * @param string $aliasClass |
| 213 | - * @return bool|string |
|
| 213 | + * @return string|false |
|
| 214 | 214 | */ |
| 215 | 215 | protected function _getItemClassName($plugin, $aliasClass) |
| 216 | 216 | { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | 'description' => 'Core plugin for UnionCMS' |
| 30 | 30 | ], |
| 31 | 31 | |
| 32 | - 'Controller.initialize' => function (Controller $controller) { |
|
| 32 | + 'Controller.initialize' => function(Controller $controller) { |
|
| 33 | 33 | $controller->loadComponent('Core.App'); |
| 34 | 34 | $controller->loadComponent('Core.Move'); |
| 35 | 35 | $controller->loadComponent('Core.Process'); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | ]); |
| 40 | 40 | }, |
| 41 | 41 | |
| 42 | - 'View.initialize' => function (AppView $view) { |
|
| 42 | + 'View.initialize' => function(AppView $view) { |
|
| 43 | 43 | $view->loadHelper('Core.Nav'); |
| 44 | 44 | $view->loadHelper('Core.Less'); |
| 45 | 45 | $view->loadHelper('Core.Assets'); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $view->loadHelper('Html', ['className' => 'Core.Html']); |
| 50 | 50 | $view->loadHelper('Form', [ |
| 51 | 51 | 'className' => 'Core.Form', |
| 52 | - 'prepareBtnClass' => function (\Core\View\Helper\FormHelper $html, $options, $button) { |
|
| 52 | + 'prepareBtnClass' => function(\Core\View\Helper\FormHelper $html, $options, $button) { |
|
| 53 | 53 | $options = $html->addClass($options, 'waves-effect waves-light btn'); |
| 54 | 54 | if (!empty($button)) { |
| 55 | 55 | $options = $html->addClass($options, Str::trim((string) $button)); |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use Cake\Routing\Router; |
| 17 | 17 | use Cake\Routing\RouteBuilder; |
| 18 | 18 | |
| 19 | -Router::plugin('Core', ['path' => '/'], function (RouteBuilder $routeBuilder) { |
|
| 20 | - $routeBuilder->prefix('admin', function (RouteBuilder $routeBuilder) { |
|
| 19 | +Router::plugin('Core', ['path' => '/'], function(RouteBuilder $routeBuilder) { |
|
| 20 | + $routeBuilder->prefix('admin', function(RouteBuilder $routeBuilder) { |
|
| 21 | 21 | $routeBuilder->connect('/:controller/:action/*', []); |
| 22 | 22 | $routeBuilder->connect('/', ['controller' => 'Root', 'action' => 'dashboard']); |
| 23 | 23 | }); |