Passed
Push — master ( 143d3d...1a4aeb )
by Nicolaas
08:12 queued 04:52
created
src/Extensions/DataObjectExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
         // NB.
20 20
         // if the dataobject has the versioned extension then the cache should be invalidated onAfterPublish
21 21
         // hasStages function is part of the Versioned class so safe to check here
22
-        if (! $owner->hasExtension(Versioned::class)) {
22
+        if (!$owner->hasExtension(Versioned::class)) {
23 23
             $this->doUpdateCache($className);
24
-        } elseif (! $owner->hasStages()) {
24
+        } elseif (!$owner->hasStages()) {
25 25
             $this->doUpdateCache($className);
26 26
         }
27 27
     }
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
         }
94 94
         $excludedClasses = (array) Config::inst()->get(self::class, 'excluded_classes_for_caching');
95 95
 
96
-        return ! in_array($className, $excludedClasses, true);
96
+        return !in_array($className, $excludedClasses, true);
97 97
     }
98 98
 }
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
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         }
84 84
         if ($obj->RecordCacheUpdates) {
85 85
             $recordId = Injector::inst()
86
-                ->create(ObjectsUpdated::class, ['ClassNameLastEdited' => $className])
86
+                ->create(ObjectsUpdated::class, [ 'ClassNameLastEdited' => $className ])
87 87
                 ->write()
88 88
             ;
89 89
             DB::query('DELETE FROM ObjectsUpdated WHERE ID < ' . (int) ($recordId - self::MAX_OBJECTS_UPDATED));
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
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             self::$_can_cache_content_string = '';
37 37
             if ($this->owner->hasMethod('canCachePage')) {
38 38
                 // if it can cache the page, then it the cache string will remain empty.
39
-                self::$_can_cache_content_string .= $this->owner->canCachePage() ? '' : 'can-no-cache-' . $this->owner->ID. '_'.rand(0, 99999999999999999);
39
+                self::$_can_cache_content_string .= $this->owner->canCachePage() ? '' : 'can-no-cache-' . $this->owner->ID . '_' . rand(0, 99999999999999999);
40 40
             }
41 41
 
42 42
             //action
Please login to merge, or discard this patch.