Passed
Push — v1 ( 77aba6...800730 )
by Andrew
07:56 queued 05:08
created
src/models/Settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
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
 }
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
@@ -45,7 +45,7 @@
 block discarded – undo
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
                     );
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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.