@@ -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 | }); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * Redirect by request data. |
| 63 | 63 | * |
| 64 | 64 | * @param array $options |
| 65 | - * @return \Cake\Http\Response|null |
|
| 65 | + * @return \Cake\Network\Response|null |
|
| 66 | 66 | */ |
| 67 | 67 | public function redirect(array $options = []) |
| 68 | 68 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param Table $table |
| 48 | 48 | * @param int $id |
| 49 | 49 | * @param int $step |
| 50 | - * @return \Cake\Http\Response|null |
|
| 50 | + * @return \Cake\Network\Response|null |
|
| 51 | 51 | */ |
| 52 | 52 | public function down(Table $table, $id, $step = 1) |
| 53 | 53 | { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @param array|string $key |
| 61 | 61 | * @param null|mixed $value |
| 62 | 62 | * @param bool $merge |
| 63 | - * @return mixed |
|
| 63 | + * @return MoveComponent |
|
| 64 | 64 | * @throws \Cake\Core\Exception\Exception When trying to set a key that is invalid. |
| 65 | 65 | */ |
| 66 | 66 | public function setConfig($key, $value = null, $merge = true) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @param Table $table |
| 83 | 83 | * @param int $id |
| 84 | 84 | * @param int $step |
| 85 | - * @return \Cake\Http\Response|null |
|
| 85 | + * @return \Cake\Network\Response|null |
|
| 86 | 86 | * @SuppressWarnings(PHPMD.ShortMethodName) |
| 87 | 87 | */ |
| 88 | 88 | public function up(Table $table, $id, $step = 1) |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * @param string $type |
| 98 | 98 | * @param int $id |
| 99 | 99 | * @param int $step |
| 100 | - * @return \Cake\Http\Response|null |
|
| 100 | + * @return \Cake\Network\Response|null |
|
| 101 | 101 | */ |
| 102 | 102 | protected function _move(Table $table, $id, $step = 1, $type = self::TYPE_UP) |
| 103 | 103 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Process redirect. |
| 126 | 126 | * |
| 127 | - * @return \Cake\Http\Response|null |
|
| 127 | + * @return \Cake\Network\Response|null |
|
| 128 | 128 | */ |
| 129 | 129 | protected function _redirect() |
| 130 | 130 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * @param string $action |
| 99 | 99 | * @param array $ids |
| 100 | 100 | * @param array $options |
| 101 | - * @return \Cake\Http\Response|null |
|
| 101 | + * @return \Cake\Network\Response|null |
|
| 102 | 102 | */ |
| 103 | 103 | public function make(Table $table, $action, array $ids = [], array $options = []) |
| 104 | 104 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * Create and merge actual process options. |
| 214 | 214 | * |
| 215 | 215 | * @param array $options |
| 216 | - * @param int|string $count |
|
| 216 | + * @param integer $count |
|
| 217 | 217 | * @return array |
| 218 | 218 | */ |
| 219 | 219 | protected function _getOptions(array $options, $count) |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * @param Data $messages |
| 243 | 243 | * @param array $redirect |
| 244 | 244 | * @param array $ids |
| 245 | - * @return \Cake\Http\Response|null |
|
| 245 | + * @return \Cake\Network\Response|null |
|
| 246 | 246 | */ |
| 247 | 247 | protected function _process($action, Data $messages, array $redirect, array $ids) |
| 248 | 248 | { |
@@ -79,11 +79,11 @@ |
||
| 79 | 79 | |
| 80 | 80 | $classes = [ |
| 81 | 81 | $prefix, |
| 82 | - 'theme-' . Str::low($this->_View->theme), |
|
| 83 | - 'plugin-' . Str::low($this->_View->plugin), |
|
| 84 | - 'view-' . Str::low($this->_View->name), |
|
| 85 | - 'tmpl-' . Str::low($this->_View->template), |
|
| 86 | - 'layout-' . Str::low($this->_View->layout), |
|
| 82 | + 'theme-' . Str::low($this->_View->theme), |
|
| 83 | + 'plugin-' . Str::low($this->_View->plugin), |
|
| 84 | + 'view-' . Str::low($this->_View->name), |
|
| 85 | + 'tmpl-' . Str::low($this->_View->template), |
|
| 86 | + 'layout-' . Str::low($this->_View->layout), |
|
| 87 | 87 | ]; |
| 88 | 88 | |
| 89 | 89 | $pass = (array) $this->request->getParam('pass'); |