Passed
Push — master ( 1a4aeb...c4d310 )
by Nicolaas
03:20
created
src/Extensions/ControllerExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
     public function onBeforeInit()
11 11
     {
12 12
         $owner = $this->getOwner();
13
-        if($owner instanceof ContentController) {
14
-            if(Versioned::get_stage() !== 'Live') {
13
+        if ($owner instanceof ContentController) {
14
+            if (Versioned::get_stage() !== 'Live') {
15 15
                 return;
16 16
             }
17
-            if(empty($owner->dataRecord) || empty($owner->dataRecord->PublicCacheDurationInSeconds)) {
17
+            if (empty($owner->dataRecord) || empty($owner->dataRecord->PublicCacheDurationInSeconds)) {
18 18
                 return;
19 19
             }
20 20
             HTTPCacheControlMiddleware::singleton()
Please login to merge, or discard this patch.
src/Extensions/PageControllerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             self::$_can_cache_content_string = '';
42 42
             if ($this->owner->hasMethod('canCachePage')) {
43 43
                 // if it can cache the page, then it the cache string will remain empty.
44
-                self::$_can_cache_content_string .= $this->owner->canCachePage() ? '' : 'can-cache-page-no' . $this->owner->ID. '_'.time();
44
+                self::$_can_cache_content_string .= $this->owner->canCachePage() ? '' : 'can-cache-page-no' . $this->owner->ID . '_' . time();
45 45
             }
46 46
 
47 47
             //action
Please login to merge, or discard this patch.