Passed
Pull Request — master (#88)
by
unknown
04:12
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
         try {
32 32
             if (!file_exists($path)) {
33 33
                 return null;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable.', $this->dir));
59 59
         }
60 60
 
61
-        $path = $this->dir . '/' . strtr($metadata->name, '\\', '-') . '.cache.php';
61
+        $path = $this->dir.'/'.strtr($metadata->name, '\\', '-').'.cache.php';
62 62
 
63 63
         $tmpFile = tempnam($this->dir, 'metadata-cache');
64 64
         if (false === $tmpFile) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
             return;
68 68
         }
69
-        $data = '<?php return unserialize(' . var_export(serialize($metadata), true) . ');';
69
+        $data = '<?php return unserialize('.var_export(serialize($metadata), true).');';
70 70
         $bytesWritten = file_put_contents($tmpFile, $data);
71 71
         // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes.
72 72
         if ($bytesWritten !== strlen($data)) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function evict(string $class): void
115 115
     {
116
-        $path = $this->dir . '/' . strtr($class, '\\', '-') . '.cache.php';
116
+        $path = $this->dir.'/'.strtr($class, '\\', '-').'.cache.php';
117 117
         try {
118 118
             if (file_exists($path)) {
119 119
                 unlink($path);
Please login to merge, or discard this patch.