Passed
Push — develop ( a52af0...f3999c )
by Andrew
03:45
created
src/services/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 Craft::info(
50 50
                     Craft::t(
51 51
                         'fastcgi-cache-bust',
52
-                        'FastCGI Cache busted: `' . $cacheDir
52
+                        'FastCGI Cache busted: `'.$cacheDir
53 53
                     ),
54 54
                     __METHOD__
55 55
                 );
Please login to merge, or discard this patch.
src/FastcgiCacheBust.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         Event::on(
91 91
             Elements::class,
92 92
             Elements::EVENT_AFTER_SAVE_ELEMENT,
93
-            function (ElementEvent $event) {
93
+            function(ElementEvent $event) {
94 94
                 Craft::debug(
95 95
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
96 96
                     __METHOD__
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 // Only bust the cache if it's not certain excluded element types
101 101
                 if ($this->shouldBustCache($element)) {
102 102
                     Craft::debug(
103
-                        'Cache busted due to saving: ' . get_class($element) . ' - ' . $element->title,
103
+                        'Cache busted due to saving: '.get_class($element).' - '.$element->title,
104 104
                         __METHOD__
105 105
                     );
106 106
                     FastcgiCacheBust::$plugin->cache->clearAll();
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         Event::on(
112 112
             TemplateCaches::class,
113 113
             TemplateCaches::EVENT_AFTER_DELETE_CACHES,
114
-            static function (DeleteTemplateCachesEvent $event) {
114
+            static function(DeleteTemplateCachesEvent $event) {
115 115
                 FastcgiCacheBust::$plugin->cache->clearAll();
116 116
             }
117 117
         );
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
         Event::on(
120 120
             ClearCaches::class,
121 121
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
122
-            static function (RegisterCacheOptionsEvent $event) {
122
+            static function(RegisterCacheOptionsEvent $event) {
123 123
                 $event->options[] = [
124 124
                     'key' => 'fastcgi-cache-bust',
125 125
                     'label' => Craft::t('fastcgi-cache-bust', 'FastCGI Cache'),
126
-                    'action' => function () {
126
+                    'action' => function() {
127 127
                         FastcgiCacheBust::$plugin->cache->clearAll();
128 128
                     },
129 129
                 ];
Please login to merge, or discard this patch.