Passed
Push — develop ( e5a0fe...350fb5 )
by M. Mikkel
03:40
created
src/twigextensions/Extension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             return $value;
67 67
         }
68 68
         $pattern = '/([a-z])([A-Z])/';
69
-        $r = \strtolower(\preg_replace_callback($pattern, function ($a) {
69
+        $r = \strtolower(\preg_replace_callback($pattern, function($a) {
70 70
             return $a[1] . ' ' . \strtolower($a[2]);
71 71
         }, $value));
72 72
         return $r;
Please login to merge, or discard this patch.
src/migrations/Install.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         return true;
52 52
     }
53 53
 
54
-   /**
54
+    /**
55 55
      * @inheritdoc
56 56
      */
57 57
     public function safeDown()
Please login to merge, or discard this patch.
src/services/TemplateCachesService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         // Make sure the cache was tagged w/ the same flags
60 60
         $flagTags = $this->_getTagsForFlags($flags);
61
-        $cachedFlagTags = \array_filter($tags, function (string $tag) {
61
+        $cachedFlagTags = \array_filter($tags, function(string $tag) {
62 62
             return \strpos($tag, 'cacheflag') === 0 || $tag === 'element';
63 63
         });
64 64
 
@@ -201,14 +201,14 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $tagsArray = ['cacheflag'];
203 203
         if (\is_array($flags)) {
204
-            $flags = \implode(',', \array_map(function ($flag) {
204
+            $flags = \implode(',', \array_map(function($flag) {
205 205
                 return \preg_replace('/\s+/', '', $flag);
206 206
             }, $flags));
207 207
         } else {
208 208
             $flags = \preg_replace('/\s+/', '', $flags);
209 209
         }
210 210
         $flags = \array_filter(\explode($delimiter, $flags));
211
-        $tagsArray = \array_merge($tagsArray, \array_map(function (string $flag) {
211
+        $tagsArray = \array_merge($tagsArray, \array_map(function(string $flag) {
212 212
             return "cacheflag::$flag";
213 213
         }, $flags));
214 214
         if ($this->_collectElementTags) {
Please login to merge, or discard this patch.
src/variables/CpVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             'elementTypes' => [
88 88
                 'column' => 'elementType',
89 89
                 'name' => Craft::t('app', 'Element Types'),
90
-                'sources' => \array_map(function (string $elementType) {
90
+                'sources' => \array_map(function(string $elementType) {
91 91
                     return [
92 92
                         'id' => $elementType,
93 93
                         'name' => $elementType,
Please login to merge, or discard this patch.
src/services/CacheFlagService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@
 block discarded – undo
333 333
             ]));
334 334
         }
335 335
 
336
-        $flagTags = \array_map(function (string $flag) {
336
+        $flagTags = \array_map(function(string $flag) {
337 337
             return "cacheflag::$flag";
338 338
         }, $flags);
339 339
 
Please login to merge, or discard this patch.
src/CacheFlag.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         // Add option to the Clear Caches utility to invalidate all flagged caches
94 94
         Event::on(ClearCaches::class, ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
95
-            static function (RegisterCacheOptionsEvent $event) {
95
+            static function(RegisterCacheOptionsEvent $event) {
96 96
                 $event->options[] = [
97 97
                     'key' => 'cacheflag-flagged-caches',
98 98
                     'label' => Craft::t('cache-flag', 'Flagged template caches'),
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         Event::on(
107 107
             CraftVariable::class,
108 108
             CraftVariable::EVENT_INIT,
109
-            function (Event $event) {
109
+            function(Event $event) {
110 110
                 /** @var CraftVariable $variable */
111 111
                 $variable = $event->sender;
112 112
                 $variable->set('cacheFlagCp', CpVariable::class);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         Event::on(
157 157
             Plugins::class,
158 158
             Plugins::EVENT_AFTER_UNINSTALL_PLUGIN,
159
-            function (PluginEvent $event) {
159
+            function(PluginEvent $event) {
160 160
                 if ($event->plugin === $this) {
161 161
                     Craft::$app->getProjectConfig()->remove('cacheFlags');
162 162
                 }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         Event::on(
174 174
             Elements::class,
175 175
             Elements::EVENT_AFTER_SAVE_ELEMENT,
176
-            function (ElementEvent $event) {
176
+            function(ElementEvent $event) {
177 177
                 $element = $event->element;
178 178
                 if (!$element || ElementHelper::isDraftOrRevision($element)) {
179 179
                     return;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         Event::on(
187 187
             Elements::class,
188 188
             Elements::EVENT_BEFORE_DELETE_ELEMENT,
189
-            function (ElementEvent $event) {
189
+            function(ElementEvent $event) {
190 190
                 $element = $event->element;
191 191
                 if (!$element || ElementHelper::isDraftOrRevision($element)) {
192 192
                     return;
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         Event::on(
200 200
             Structures::class,
201 201
             Structures::EVENT_AFTER_MOVE_ELEMENT,
202
-            function (MoveElementEvent $event) {
202
+            function(MoveElementEvent $event) {
203 203
                 $element = $event->element;
204 204
                 if (!$element || ElementHelper::isDraftOrRevision($element)) {
205 205
                     return;
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         Event::on(
213 213
             Elements::class,
214 214
             Elements::EVENT_AFTER_PERFORM_ACTION,
215
-            function (ElementActionEvent $event) {
215
+            function(ElementActionEvent $event) {
216 216
 
217 217
                 /* @var ElementQueryInterface|null $criteria */
218 218
                 $criteria = $event->criteria;
Please login to merge, or discard this patch.