Passed
Push — master ( 10fdf9...6a1da3 )
by Nicolaas
11:24 queued 01:31
created
src/Extensions/ControllerExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@
 block discarded – undo
21 21
             if (empty($owner->dataRecord)) {
22 22
                 return;
23 23
             }
24
-            if(Security::getCurrentUser()) {
24
+            if (Security::getCurrentUser()) {
25 25
                 return;
26 26
             }
27 27
             if (Versioned::LIVE !== Versioned::get_stage()) {
28 28
                 return;
29 29
             }
30 30
             $sc = SiteConfig::current_site_config();
31
-            if($sc->HasCaching) {
31
+            if ($sc->HasCaching) {
32 32
                 $cacheTime = $sc->PublicCacheDurationInSeconds ?: $owner->dataRecord->PublicCacheDurationInSeconds;
33 33
                 HTTPCacheControlMiddleware::singleton()
34 34
                     ->enableCache()
Please login to merge, or discard this patch.