Passed
Pull Request — master (#66)
by Stefano
02:16
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/Utility/Asset/Strategy/EntrypointsStrategy.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
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;
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.