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