Completed
Push — master ( 3c888d...fd4785 )
by Georges
16s queued 12s
created
lib/Phpfastcache/Core/Pool/IO/IOHelperTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
             ->setSize(Directory::dirSize($path))
65 65
             ->setInfo('Number of files used to build the cache: ' . Directory::getFileCount($path));
66 66
 
67
-        if($this->getConfig()->isUseStaticItemCaching()){
67
+        if ($this->getConfig()->isUseStaticItemCaching()) {
68 68
             $stat->setData(implode(', ', \array_keys($this->itemInstances)));
69
-        }else{
69
+        } else {
70 70
             $stat->setData('No data available since static item caching option (useStaticItemCaching) is disabled.');
71 71
         }
72 72
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
             throw new PhpfastcacheIOException("Cannot read file located at: {$file}");
295 295
         }
296 296
         if (\function_exists('file_get_contents')) {
297
-            return (string)\file_get_contents($file);
297
+            return (string) \file_get_contents($file);
298 298
         }
299 299
 
300 300
         $string = '';
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
                 dirname($file) . \DIRECTORY_SEPARATOR . 'tmp_' . $this->getConfig()->getDefaultFileNameHashFunction()(
339 339
                     \bin2hex(\random_bytes(16))
340 340
                 )
341
-            ) . '.' .  $this->getConfig()->getCacheFileExtension() . \random_int(1000, 9999);
341
+            ) . '.' . $this->getConfig()->getCacheFileExtension() . \random_int(1000, 9999);
342 342
 
343 343
             $handle = \fopen($tmpFilename, 'w+b');
344 344
             if (\is_resource($handle)) {
@@ -359,6 +359,6 @@  discard block
 block discarded – undo
359 359
             }
360 360
         }
361 361
 
362
-        return (bool)($octetWritten ?? false);
362
+        return (bool) ($octetWritten ?? false);
363 363
     }
364 364
 }
Please login to merge, or discard this patch.