@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 | ], |
@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 | ], |
@@ -37,7 +37,7 @@ discard block |
||
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 |
||
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 |