Passed
Push — develop ( 22f43d...2ea0d3 )
by Andrew
06:17 queued 23s
created
src/FastcgiCacheBust.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         Event::on(
62 62
             Elements::class,
63 63
             Elements::EVENT_AFTER_SAVE_ELEMENT,
64
-            function (ElementEvent $event) {
64
+            function(ElementEvent $event) {
65 65
                 Craft::debug(
66 66
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
67 67
                     __METHOD__
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 // Only bust the cache if it's not certain excluded element types
72 72
                 if ($this->shouldBustCache($element)) {
73 73
                     Craft::debug(
74
-                        'Cache busted due to saving: '.\get_class($element).' - '.$element->title,
74
+                        'Cache busted due to saving: ' . \get_class($element) . ' - ' . $element->title,
75 75
                         __METHOD__
76 76
                     );
77 77
                     FastcgiCacheBust::$plugin->cache->clearAll();
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         Event::on(
83 83
             TemplateCaches::class,
84 84
             TemplateCaches::EVENT_AFTER_DELETE_CACHES,
85
-            function (DeleteTemplateCachesEvent $event) {
85
+            function(DeleteTemplateCachesEvent $event) {
86 86
                 FastcgiCacheBust::$plugin->cache->clearAll();
87 87
             }
88 88
         );
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
         Event::on(
91 91
             ClearCaches::class,
92 92
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
93
-            function (RegisterCacheOptionsEvent $event) {
94
-                $event->options[] = [
93
+            function(RegisterCacheOptionsEvent $event) {
94
+                $event->options[ ] = [
95 95
                     'key'    => 'fastcgi-cache-bust',
96 96
                     'label'  => Craft::t('fastcgi-cache-bust', 'FastCGI Cache'),
97
-                    'action' => function () {
97
+                    'action' => function() {
98 98
                         FastcgiCacheBust::$plugin->cache->clearAll();
99 99
                     },
100 100
                 ];
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             Craft::t(
106 106
                 'fastcgi-cache-bust',
107 107
                 '{name} plugin loaded',
108
-                ['name' => $this->name]
108
+                [ 'name' => $this->name ]
109 109
             ),
110 110
             __METHOD__
111 111
         );
Please login to merge, or discard this patch.