Passed
Push — master ( 887c42...eae59a )
by Nicolaas
04:01
created
src/Reports/NeverCachedPages.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     public function sourceRecords($params = null)
36 36
     {
37 37
         $sc = SiteConfig::current_site_config();
38
-        if (! $sc->HasCaching) {
38
+        if (!$sc->HasCaching) {
39 39
             return Page::get();
40 40
         } elseif ($sc->PublicCacheDurationInSeconds > 0) {
41
-            return Page::get()->filter(['NeverCachePublicly' => true]);
41
+            return Page::get()->filter([ 'NeverCachePublicly' => true ]);
42 42
         } else {
43 43
             return Page::get()
44
-                ->filterAny(['PublicCacheDurationInSeconds' => 0, 'NeverCachePublicly' => true]);
44
+                ->filterAny([ 'PublicCacheDurationInSeconds' => 0, 'NeverCachePublicly' => true ]);
45 45
         }
46 46
     }
47 47
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             ],
55 55
             'ShowInSearch' => [
56 56
                 'title' => 'Edit Cache Settings',
57
-                'formatting' => function ($value, $item) {
57
+                'formatting' => function($value, $item) {
58 58
                     return '<a href="' . $item->EditCacheSettingsLink() . '" target="_blank">Edit Settings</a>';
59 59
                 },
60 60
             ],
Please login to merge, or discard this patch.
src/Reports/CachedPages.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     public function sourceRecords($params = null)
36 36
     {
37 37
         $sc = SiteConfig::current_site_config();
38
-        if (! $sc->HasCaching) {
39
-            return Page::get()->filter(['ID' => 0]);
38
+        if (!$sc->HasCaching) {
39
+            return Page::get()->filter([ 'ID' => 0 ]);
40 40
         } elseif ($sc->PublicCacheDurationInSeconds > 0) {
41
-            return Page::get()->filter(['NeverCachePublicly' => false]);
41
+            return Page::get()->filter([ 'NeverCachePublicly' => false ]);
42 42
         } else {
43 43
             return Page::get()
44
-                ->filter(['PublicCacheDurationInSeconds:GreaterThan' => 0, 'NeverCachePublicly' => false]);
44
+                ->filter([ 'PublicCacheDurationInSeconds:GreaterThan' => 0, 'NeverCachePublicly' => false ]);
45 45
         }
46 46
     }
47 47
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             // ],
61 61
             'ShowInSearch' => [
62 62
                 'title' => 'Edit Cache Settings',
63
-                'formatting' => function ($value, $item) {
63
+                'formatting' => function($value, $item) {
64 64
                     return '<a href="' . $item->EditCacheSettingsLink() . '" target="_blank">Edit Settings</a>';
65 65
                 },
66 66
             ],
Please login to merge, or discard this patch.