@@ -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'); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | ]); |
| 45 | 45 | }, |
| 46 | 46 | |
| 47 | - 'View.initialize' => function (AppView $view) { |
|
| 47 | + 'View.initialize' => function(AppView $view) { |
|
| 48 | 48 | $view->loadHelper('Core.Nav'); |
| 49 | 49 | $view->loadHelper('Core.Less'); |
| 50 | 50 | $view->loadHelper('Core.Assets'); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $view->loadHelper('Html', ['className' => 'Core.Html']); |
| 55 | 55 | $view->loadHelper('Form', [ |
| 56 | 56 | 'className' => 'Core.Form', |
| 57 | - 'prepareBtnClass' => function (FormHelper $html, $options, $button) { |
|
| 57 | + 'prepareBtnClass' => function(FormHelper $html, $options, $button) { |
|
| 58 | 58 | $options = $html->addClass($options, 'waves-effect waves-light btn'); |
| 59 | 59 | if (!empty($button)) { |
| 60 | 60 | $options = $html->addClass($options, Str::trim((string) $button)); |