Passed
Push — master ( dde6cc...887c42 )
by Nicolaas
03:51
created
src/Reports/NeverCachedPages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function sourceRecords($params = null)
35 35
     {
36 36
         return Page::get()
37
-            ->filter(['NeverCachePublicly' => 1]);
37
+            ->filter([ 'NeverCachePublicly' => 1 ]);
38 38
     }
39 39
 
40 40
     public function columns()
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             ],
47 47
             'ShowInSearch' => [
48 48
                 'title' => 'Edit Cache Settings',
49
-                'formatting' => function ($value, $item) {
49
+                'formatting' => function($value, $item) {
50 50
                     return '<a href="' . $item->EditCacheSettingsLink() . '" target="_blank">Edit Settings</a>';
51 51
                 },
52 52
             ],
Please login to merge, or discard this patch.
src/Reports/CachedPages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function sourceRecords($params = null)
35 35
     {
36 36
         return Page::get()
37
-            ->filter(['PublicCacheDurationInSeconds:GreaterThan' => 0, 'NeverCachePublicly' => 0]);
37
+            ->filter([ 'PublicCacheDurationInSeconds:GreaterThan' => 0, 'NeverCachePublicly' => 0 ]);
38 38
     }
39 39
 
40 40
     public function columns()
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             // ],
53 53
             'ShowInSearch' => [
54 54
                 'title' => 'Edit Cache Settings',
55
-                'formatting' => function ($value, $item) {
55
+                'formatting' => function($value, $item) {
56 56
                     return '<a href="' . $item->EditCacheSettingsLink() . '" target="_blank">Edit Settings</a>';
57 57
                 },
58 58
             ],
Please login to merge, or discard this patch.
src/Extensions/PageExtension.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                 ),
38 38
             ]
39 39
         );
40
-        if (! (bool) $owner->NeverCachePublicly) {
40
+        if (!(bool) $owner->NeverCachePublicly) {
41 41
             $fields->addFieldsToTab(
42 42
                 'Root.Cache',
43 43
                 [
@@ -105,8 +105,7 @@  discard block
 block discarded – undo
105 105
     public function PageCanBeCachedEntirelyDuration(): int
106 106
     {
107 107
         return (int) (
108
-            $this->getOwner()->PublicCacheDurationInSeconds ?:
109
-            SiteConfig::current_site_config()->PublicCacheDurationInSeconds);
108
+            $this->getOwner()->PublicCacheDurationInSeconds ?: SiteConfig::current_site_config()->PublicCacheDurationInSeconds);
110 109
     }
111 110
 
112 111
     public function EditCacheSettingsLink(): string
Please login to merge, or discard this patch.