@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | return [ |
42 | 42 | new TwigFunction('config', [Configure::class, 'read']), |
43 | - new TwigFunction('write_config', function ($key, $val) { |
|
43 | + new TwigFunction('write_config', function($key, $val) { |
|
44 | 44 | // avoid unwanted return value display in templates |
45 | 45 | Configure::write($key, $val); |
46 | 46 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return [ |
58 | 58 | new TwigFilter( |
59 | 59 | 'shuffle', |
60 | - function (array $array) { |
|
60 | + function(array $array) { |
|
61 | 61 | shuffle($array); |
62 | 62 | |
63 | 63 | return $array; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | ), |
66 | 66 | new TwigFilter( |
67 | 67 | 'ksort', |
68 | - function (array $array) { |
|
68 | + function(array $array) { |
|
69 | 69 | ksort($array); |
70 | 70 | |
71 | 71 | return $array; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ), |
74 | 74 | new TwigFilter( |
75 | 75 | 'krsort', |
76 | - function (array $array) { |
|
76 | + function(array $array) { |
|
77 | 77 | krsort($array); |
78 | 78 | |
79 | 79 | return $array; |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types=1); |
3 | 3 | |
4 | - /** |
|
5 | - * BEdita, API-first content management framework |
|
6 | - * Copyright 2020 ChannelWeb Srl, Chialab Srl |
|
7 | - * |
|
8 | - * This file is part of BEdita: you can redistribute it and/or modify |
|
9 | - * it under the terms of the GNU Lesser General Public License as published |
|
10 | - * by the Free Software Foundation, either version 3 of the License, or |
|
11 | - * (at your option) any later version. |
|
12 | - * |
|
13 | - * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details. |
|
14 | - */ |
|
15 | - namespace BEdita\WebTools\Utility\Asset\Strategy; |
|
4 | + /** |
|
5 | + * BEdita, API-first content management framework |
|
6 | + * Copyright 2020 ChannelWeb Srl, Chialab Srl |
|
7 | + * |
|
8 | + * This file is part of BEdita: you can redistribute it and/or modify |
|
9 | + * it under the terms of the GNU Lesser General Public License as published |
|
10 | + * by the Free Software Foundation, either version 3 of the License, or |
|
11 | + * (at your option) any later version. |
|
12 | + * |
|
13 | + * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details. |
|
14 | + */ |
|
15 | + namespace BEdita\WebTools\Utility\Asset\Strategy; |
|
16 | 16 | |
17 | 17 | use BEdita\WebTools\Utility\Asset\AssetStrategy; |
18 | 18 | use Cake\Utility\Hash; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | join('', $statements) |
70 | 70 | ); |
71 | 71 | // @codingStandardsIgnoreEnd |
72 | - $this->Html->scriptBlock($content, [ 'block' => 'scriptsComponents' ]); |
|
72 | + $this->Html->scriptBlock($content, ['block' => 'scriptsComponents']); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | return $attributes; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | public function is(string $tagName, array $properties = [], string $scriptPath = ''): string |
87 | 87 | { |
88 | 88 | if (!empty($scriptPath)) { |
89 | - $this->Html->script($scriptPath, [ 'block' => 'scriptsComponents' ]); |
|
89 | + $this->Html->script($scriptPath, ['block' => 'scriptsComponents']); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | $options = ['is' => $tagName] + $this->props($properties); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | public function element(string $tagName, array $properties = [], $scriptPath = ''): string |
106 | 106 | { |
107 | 107 | if (!empty($scriptPath)) { |
108 | - $this->Html->script($scriptPath, [ 'block' => 'scriptsComponents' ]); |
|
108 | + $this->Html->script($scriptPath, ['block' => 'scriptsComponents']); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | return $this->Html->tag($tagName, '', $this->props($properties)); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | |
214 | 214 | return (string)Cache::remember( |
215 | 215 | $key, |
216 | - function () use ($image, $options) { |
|
216 | + function() use ($image, $options) { |
|
217 | 217 | return $this->url($image['id'], $options); |
218 | 218 | }, |
219 | 219 | $this->getConfig('cache') |
@@ -113,7 +113,7 @@ |
||
113 | 113 | |
114 | 114 | $response = (array)Cache::remember( |
115 | 115 | $key, |
116 | - function () use ($key, $path, $query) { |
|
116 | + function() use ($key, $path, $query) { |
|
117 | 117 | return (array)ApiClientProvider::getApiClient()->get($path, $query); |
118 | 118 | }, |
119 | 119 | $this->getConfig('cache') |