Passed
Push — master ( a96d2e...0ccacc )
by Nicolaas
03:59 queued 14s
created
src/Extensions/SimpleTemplateCachingSiteConfigExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 ;');
207 207
                 if ($obj->RecordCacheUpdates) {
208 208
                     $recordId = Injector::inst()
209
-                        ->create(ObjectsUpdated::class, ['ClassNameLastEdited' => $className])
209
+                        ->create(ObjectsUpdated::class, [ 'ClassNameLastEdited' => $className ])
210 210
                         ->write();
211 211
                     DB::query('DELETE FROM "ObjectsUpdated" WHERE "ID" < ' . (int) ($recordId - self::MAX_OBJECTS_UPDATED));
212 212
                 }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                 'FONT_CACHE_DIRECTIVE' => $currentSiteConfig->config()->get('font_cache_directive'),
247 247
             ] as $key => $value
248 248
         ) {
249
-            if (! $currentSiteConfig->HasResourceCaching) {
249
+            if (!$currentSiteConfig->HasResourceCaching) {
250 250
                 $value = '';
251 251
             }
252 252
             $this->updateHtaccess($key, $value);
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     public function DoesNotHaveCaching(): bool
257 257
     {
258 258
         $owner = $this->getOwner();
259
-        return ! $owner->HasCaching;
259
+        return !$owner->HasCaching;
260 260
     }
261 261
 
262 262
     protected function updateHtaccess(string $code, string $toAdd)
Please login to merge, or discard this patch.