Completed
Push — master ( 9cd38e...eb909a )
by Alberto
15s queued 12s
created
src/View/Twig/BeditaTwigExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/View/Helper/WebComponentsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/View/Helper/ThumbHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
src/Controller/Component/ApiCacheComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.