@@ -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__ |
@@ -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) { |
|
| 93 | + function(RegisterCacheOptionsEvent $event) { |
|
| 94 | 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 | ]; |