@@ -59,7 +59,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | ); |