Passed
Branch v1 (7189bf)
by Andrew
14:11 queued 08:52
created
Category
src/helpers/Manifest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $cache = Craft::$app->getCache();
225 225
         $manifest = $cache->getOrSet(
226 226
             self::CACHE_KEY.$path,
227
-            function () use ($path) {
227
+            function() use ($path) {
228 228
                 $result = null;
229 229
                 $string = @file_get_contents($path);
230 230
                 if ($string) {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     protected static function combinePaths(string ...$paths): string
253 253
     {
254 254
         $last_key = \count($paths) - 1;
255
-        array_walk($paths, function (&$val, $key) use ($last_key) {
255
+        array_walk($paths, function(&$val, $key) use ($last_key) {
256 256
             switch ($key) {
257 257
                 case 0:
258 258
                     $val = rtrim($val, '/ ');
Please login to merge, or discard this patch.
src/Twigpack.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         Event::on(
98 98
             CraftVariable::class,
99 99
             CraftVariable::EVENT_INIT,
100
-            function (Event $event) {
100
+            function(Event $event) {
101 101
                 /** @var CraftVariable $variable */
102 102
                 $variable = $event->sender;
103 103
                 $variable->set('twigpack', ManifestVariable::class);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         Event::on(
108 108
             TemplateCaches::class,
109 109
             TemplateCaches::EVENT_AFTER_DELETE_CACHES,
110
-            function (DeleteTemplateCachesEvent $event) {
110
+            function(DeleteTemplateCachesEvent $event) {
111 111
                 // Invalidate the caches when template caches are deleted
112 112
                 $this->clearAllCaches();
113 113
             }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         Event::on(
117 117
             Plugins::class,
118 118
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
119
-            function (PluginEvent $event) {
119
+            function(PluginEvent $event) {
120 120
                 if ($event->plugin === $this) {
121 121
                     // Invalidate our caches after we've been installed
122 122
                     $this->clearAllCaches();
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         Event::on(
128 128
             ClearCaches::class,
129 129
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
130
-            function (RegisterCacheOptionsEvent $event) {
130
+            function(RegisterCacheOptionsEvent $event) {
131 131
                 Craft::debug(
132 132
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
133 133
                     __METHOD__
Please login to merge, or discard this patch.