@@ -39,8 +39,8 @@ |
||
39 | 39 | public function rules() |
40 | 40 | { |
41 | 41 | return [ |
42 | - ['cachePath', 'string'], |
|
43 | - ['cachePath', 'default', 'value' => ''], |
|
42 | + [ 'cachePath', 'string' ], |
|
43 | + [ 'cachePath', 'default', 'value' => '' ], |
|
44 | 44 | ]; |
45 | 45 | } |
46 | 46 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | Craft::info( |
46 | 46 | Craft::t( |
47 | 47 | 'fastcgi-cache-bust', |
48 | - 'FastCGI Cache busted: `'.$cacheDir |
|
48 | + 'FastCGI Cache busted: `' . $cacheDir |
|
49 | 49 | ), |
50 | 50 | __METHOD__ |
51 | 51 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | Event::on( |
59 | 59 | Elements::class, |
60 | 60 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
61 | - function (ElementEvent $event) { |
|
61 | + function(ElementEvent $event) { |
|
62 | 62 | Craft::debug( |
63 | 63 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
64 | 64 | __METHOD__ |
@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | Event::on( |
96 | 96 | ClearCaches::class, |
97 | 97 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
98 | - function (RegisterCacheOptionsEvent $event) { |
|
99 | - $event->options[] = [ |
|
98 | + function(RegisterCacheOptionsEvent $event) { |
|
99 | + $event->options[ ] = [ |
|
100 | 100 | 'key' => 'fastcgi-cache-bust', |
101 | 101 | 'label' => Craft::t('fastcgi-cache-bust', 'FastCGI Cache'), |
102 | - 'action' => function () { |
|
102 | + 'action' => function() { |
|
103 | 103 | FastcgiCacheBust::$plugin->cache->clearAll(); |
104 | 104 | }, |
105 | 105 | ]; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | Craft::t( |
111 | 111 | 'fastcgi-cache-bust', |
112 | 112 | '{name} plugin loaded', |
113 | - ['name' => $this->name] |
|
113 | + [ 'name' => $this->name ] |
|
114 | 114 | ), |
115 | 115 | __METHOD__ |
116 | 116 | ); |