@@ -69,8 +69,8 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Add new value in list. |
| 71 | 71 | * |
| 72 | - * @param string|int $key |
|
| 73 | - * @param string|int $val |
|
| 72 | + * @param string $key |
|
| 73 | + * @param string $val |
|
| 74 | 74 | * @return $this |
| 75 | 75 | */ |
| 76 | 76 | public function set($key, $val) |
@@ -213,7 +213,7 @@ |
||
| 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) |
@@ -60,7 +60,7 @@ |
||
| 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) |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use JBZoo\Data\Data; |
| 22 | 22 | use JBZoo\Utils\Arr; |
| 23 | 23 | use Phinx\Config\Config; |
| 24 | -use Cake\Core\Configure; |
|
| 25 | 24 | use Phinx\Db\Adapter\AdapterFactory; |
| 26 | 25 | use Phinx\Migration\AbstractMigration; |
| 27 | 26 | use Cake\Datasource\ConnectionManager; |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | return $data; |
| 72 | - } |
|
| 72 | + } |
|
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | 'description' => 'Core plugin for UnionCMS' |
| 31 | 31 | ], |
| 32 | 32 | |
| 33 | - 'Controller.initialize' => function (Controller $controller) { |
|
| 33 | + 'Controller.initialize' => function(Controller $controller) { |
|
| 34 | 34 | $controller->loadComponent('Csrf'); |
| 35 | 35 | $controller->loadComponent('Cookie'); |
| 36 | 36 | $controller->loadComponent('Security', [ |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | ]); |
| 47 | 47 | }, |
| 48 | 48 | |
| 49 | - 'View.initialize' => function (AppView $view) { |
|
| 49 | + 'View.initialize' => function(AppView $view) { |
|
| 50 | 50 | $view->loadHelper('Core.Nav'); |
| 51 | 51 | $view->loadHelper('Core.Less'); |
| 52 | 52 | $view->loadHelper('Core.Assets'); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $view->loadHelper('Html', ['className' => 'Core.Html']); |
| 57 | 57 | $view->loadHelper('Form', [ |
| 58 | 58 | 'className' => 'Core.Form', |
| 59 | - 'prepareBtnClass' => function (FormHelper $html, $options, $button) { |
|
| 59 | + 'prepareBtnClass' => function(FormHelper $html, $options, $button) { |
|
| 60 | 60 | $options = $html->addClass($options, 'waves-effect waves-light btn'); |
| 61 | 61 | if (!empty($button)) { |
| 62 | 62 | $options = $html->addClass($options, Str::trim((string) $button)); |