Passed
Push — master ( 6983b5...5e6d7b )
by Nicolaas
04:38
created
src/Extensions/DataObjectExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
         // NB.
22 22
         // if the dataobject has the versioned extension then the cache should be invalidated onAfterPublish
23 23
         // hasStages function is part of the Versioned class so safe to check here
24
-        if (! $owner->hasExtension(Versioned::class)) {
24
+        if (!$owner->hasExtension(Versioned::class)) {
25 25
             $this->doUpdateCache();
26
-        } elseif (! $owner->hasStages()) {
26
+        } elseif (!$owner->hasStages()) {
27 27
             $this->doUpdateCache();
28 28
         }
29 29
     }
@@ -95,6 +95,6 @@  discard block
 block discarded – undo
95 95
         }
96 96
         $excludedClasses = (array) Config::inst()->get(self::class, 'excluded_classes_for_caching');
97 97
 
98
-        return ! in_array($className, $excludedClasses, true);
98
+        return !in_array($className, $excludedClasses, true);
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
src/Extensions/PageExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
                 ),
35 35
             ]
36 36
         );
37
-        if (! (bool) $this->getOwner()->NeverCachePublicly) {
37
+        if (!(bool) $this->getOwner()->NeverCachePublicly) {
38 38
             $fields->addFieldsToTab(
39 39
                 'Root.Cache',
40 40
                 [
Please login to merge, or discard this patch.
src/Extensions/ControllerExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         }
29 29
         //make sure that caching is always https
30 30
         $owner = $this->getOwner();
31
-        if(Director::isLive()) {
31
+        if (Director::isLive()) {
32 32
             $owner->response->addHeader('Strict-Transport-Security', 'max-age=31536000; includeSubDomains');
33 33
         }
34 34
         /** PageController|ControllerExtension $owner */
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 return null;
39 39
             }
40 40
             $sc = SiteConfig::current_site_config();
41
-            if (! $sc->HasCaching) {
41
+            if (!$sc->HasCaching) {
42 42
                 return null;
43 43
             }
44 44
             $request = $owner->getRequest();
Please login to merge, or discard this patch.
src/Extensions/PageControllerExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,10 +72,10 @@
 block discarded – undo
72 72
             $requestVars = $owner->request->requestVars();
73 73
             if ($requestVars) {
74 74
                 foreach ($owner->request->requestVars() as $key => $item) {
75
-                    if (! $item) {
75
+                    if (!$item) {
76 76
                         $item = '';
77 77
                     }
78
-                    self::$_can_cache_content_string .= serialize($key . '_'. serialize($item));
78
+                    self::$_can_cache_content_string .= serialize($key . '_' . serialize($item));
79 79
                 }
80 80
             }
81 81
 
Please login to merge, or discard this patch.
src/Extensions/SimpleTemplateCachingSiteConfigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         }
113 113
         if ($obj && $obj->RecordCacheUpdates) {
114 114
             $recordId = Injector::inst()
115
-                ->create(ObjectsUpdated::class, ['ClassNameLastEdited' => $className])
115
+                ->create(ObjectsUpdated::class, [ 'ClassNameLastEdited' => $className ])
116 116
                 ->write();
117 117
             DB::query('DELETE FROM ObjectsUpdated WHERE ID < ' . (int) ($recordId - self::MAX_OBJECTS_UPDATED));
118 118
         }
Please login to merge, or discard this patch.