Passed
Branch v1 (6d792a)
by Andrew
03:01
created
src/FastcgiCacheBust.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
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/models/Settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
     public function rules(): array
37 37
     {
38 38
         return [
39
-            ['cachePath', 'string'],
40
-            ['cachePath', 'default', 'value' => ''],
39
+            [ 'cachePath', 'string' ],
40
+            [ 'cachePath', 'default', 'value' => '' ],
41 41
         ];
42 42
     }
43 43
 }
Please login to merge, or discard this patch.