Passed
Push — develop ( e8b570...5f2d1f )
by Andrew
03:39
created
src/FastcgiCacheBust.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         Event::on(
60 60
             Elements::class,
61 61
             Elements::EVENT_AFTER_SAVE_ELEMENT,
62
-            function (ElementEvent $event) {
62
+            function(ElementEvent $event) {
63 63
                 Craft::debug(
64 64
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
65 65
                     __METHOD__
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 // Only bust the cache if it's not certain excluded element types
70 70
                 if ($this->shouldBustCache($element)) {
71 71
                     Craft::debug(
72
-                        'Cache busted due to saving: '.\get_class($element).' - '.$element->title,
72
+                        'Cache busted due to saving: ' . \get_class($element) . ' - ' . $element->title,
73 73
                         __METHOD__
74 74
                     );
75 75
                     FastcgiCacheBust::$plugin->cache->clearAll();
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         Event::on(
82 82
             ClearCaches::class,
83 83
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
84
-            function (RegisterCacheOptionsEvent $event) {
85
-                $event->options[] = [
84
+            function(RegisterCacheOptionsEvent $event) {
85
+                $event->options[ ] = [
86 86
                     'key'    => 'fastcgi-cache-bust',
87 87
                     'label'  => Craft::t('fastcgi-cache-bust', 'FastCGI Cache'),
88
-                    'action' => function () {
88
+                    'action' => function() {
89 89
                         FastcgiCacheBust::$plugin->cache->clearAll();
90 90
                     },
91 91
                 ];
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             Craft::t(
97 97
                 'fastcgi-cache-bust',
98 98
                 '{name} plugin loaded',
99
-                ['name' => $this->name]
99
+                [ 'name' => $this->name ]
100 100
             ),
101 101
             __METHOD__
102 102
         );
Please login to merge, or discard this patch.