@@ -44,10 +44,10 @@ |
||
44 | 44 | */ |
45 | 45 | public function render(array $data, ContextInterface $context) |
46 | 46 | { |
47 | - $data = array_merge(['class' => null], $data); |
|
47 | + $data = array_merge([ 'class' => null ], $data); |
|
48 | 48 | |
49 | - $data['class'] .= ' materialize-textarea'; |
|
50 | - $data['class'] = Str::trim($data['class']); |
|
49 | + $data[ 'class' ] .= ' materialize-textarea'; |
|
50 | + $data[ 'class' ] = Str::trim($data[ 'class' ]); |
|
51 | 51 | |
52 | 52 | return parent::render($data, $context); |
53 | 53 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'type' => 'theme', |
32 | 32 | 'backend' => true, |
33 | 33 | ], |
34 | - 'View.initialize' => function (AppView $view) { |
|
34 | + 'View.initialize' => function(AppView $view) { |
|
35 | 35 | $helpers = $view->helpers(); |
36 | 36 | |
37 | 37 | $helpers->unload('Form'); |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | $view->loadHelper('Form', [ |
46 | 46 | 'className' => 'Backend.Form', |
47 | 47 | 'widgets' => [ |
48 | - 'file' => ['Backend\View\Widget\FileWidget'], |
|
49 | - 'textarea' => ['Backend\View\Widget\TextareaWidget'], |
|
50 | - 'checkbox' => ['Backend\View\Widget\CheckboxWidget'] |
|
48 | + 'file' => [ 'Backend\View\Widget\FileWidget' ], |
|
49 | + 'textarea' => [ 'Backend\View\Widget\TextareaWidget' ], |
|
50 | + 'checkbox' => [ 'Backend\View\Widget\CheckboxWidget' ] |
|
51 | 51 | ] |
52 | 52 | ]); |
53 | 53 | } |