Passed
Push — master ( 8e5bf0...202659 )
by Nicolaas
03:49
created
src/Extensions/SimpleTemplateCachingSiteConfigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
             }
138 138
             if ($obj->RecordCacheUpdates) {
139 139
                 $recordId = Injector::inst()
140
-                    ->create(ObjectsUpdated::class, ['ClassNameLastEdited' => $className])
140
+                    ->create(ObjectsUpdated::class, [ 'ClassNameLastEdited' => $className ])
141 141
                     ->write();
142 142
                 DB::query('DELETE FROM ObjectsUpdated WHERE ID < ' . (int) ($recordId - self::MAX_OBJECTS_UPDATED));
143 143
             }
Please login to merge, or discard this patch.
src/Extensions/PageExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                 ),
37 37
             ]
38 38
         );
39
-        if (! (bool) $owner->NeverCachePublicly) {
39
+        if (!(bool) $owner->NeverCachePublicly) {
40 40
             $fields->addFieldsToTab(
41 41
                 'Root.Cache',
42 42
                 [
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $owner = $this->getOwner();
70 70
         $sc = SiteConfig::current_site_config();
71 71
         if ($sc->HasCaching || $owner->PublicCacheDurationInSeconds) {
72
-            if (! $owner->NeverCachePublicly) {
72
+            if (!$owner->NeverCachePublicly) {
73 73
                 $fields->push(
74 74
                     LiteralField::create(
75 75
                         'CacheInfo',
Please login to merge, or discard this patch.
src/Model/ObjectsUpdated.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
             ORDER BY "ClassNameLastEdited" ASC
24 24
         ');
25 25
         foreach ($query as $row) {
26
-            $array[$row['ClassNameLastEdited']] =
27
-                Injector::inst()->get($row['ClassNameLastEdited'])->i18n_singular_name() .
28
-                ' (' . $row['Count'] . ')';
26
+            $array[ $row[ 'ClassNameLastEdited' ] ] =
27
+                Injector::inst()->get($row[ 'ClassNameLastEdited' ])->i18n_singular_name() .
28
+                ' (' . $row[ 'Count' ] . ')';
29 29
         }
30 30
         return implode(', ', $array);
31 31
     }
Please login to merge, or discard this patch.