@@ -137,7 +137,7 @@ |
||
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 | } |
@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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', |
@@ -23,9 +23,9 @@ |
||
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 | } |