Passed
Push — master ( 30b5fc...078af8 )
by Asmir
04:39 queued 02:39
created
src/Cache/FileCache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function load(string $class): ?ClassMetadata
29 29
     {
30
-        $path = $this->dir . '/' . strtr($class, '\\', '-') . '.cache.php';
30
+        $path = $this->dir.'/'.strtr($class, '\\', '-').'.cache.php';
31 31
         if (!file_exists($path)) {
32 32
             return null;
33 33
         }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable.', $this->dir));
55 55
         }
56 56
 
57
-        $path = $this->dir . '/' . strtr($metadata->name, '\\', '-') . '.cache.php';
57
+        $path = $this->dir.'/'.strtr($metadata->name, '\\', '-').'.cache.php';
58 58
 
59 59
         $tmpFile = tempnam($this->dir, 'metadata-cache');
60 60
         if (false === $tmpFile) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
             return;
64 64
         }
65
-        $data = '<?php return unserialize(' . var_export(serialize($metadata), true) . ');';
65
+        $data = '<?php return unserialize('.var_export(serialize($metadata), true).');';
66 66
         $bytesWritten = file_put_contents($tmpFile, $data);
67 67
         // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes.
68 68
         if ($bytesWritten !== strlen($data)) {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function evict(string $class): void
105 105
     {
106
-        $path = $this->dir . '/' . strtr($class, '\\', '-') . '.cache.php';
106
+        $path = $this->dir.'/'.strtr($class, '\\', '-').'.cache.php';
107 107
         if (file_exists($path)) {
108 108
             @unlink($path);
109 109
         }
Please login to merge, or discard this patch.