Passed
Pull Request — master (#72)
by
unknown
04:18
created
src/Metadata/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
         }
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
             throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable.', $this->dir));
45 45
         }
46 46
 
47
-        $path = $this->dir . '/' . strtr($metadata->name, '\\', '-') . '.cache.php';
47
+        $path = $this->dir.'/'.strtr($metadata->name, '\\', '-').'.cache.php';
48 48
 
49 49
         $tmpFile = tempnam($this->dir, 'metadata-cache');
50
-        file_put_contents($tmpFile, '<?php return unserialize(' . var_export(serialize($metadata), true) . ');');
50
+        file_put_contents($tmpFile, '<?php return unserialize('.var_export(serialize($metadata), true).');');
51 51
 
52 52
         // Let's not break filesystems which do not support chmod.
53 53
         @chmod($tmpFile, 0666 & ~umask());
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function evict(string $class): void
82 82
     {
83
-        $path = $this->dir . '/' . strtr($class, '\\', '-') . '.cache.php';
83
+        $path = $this->dir.'/'.strtr($class, '\\', '-').'.cache.php';
84 84
         if (file_exists($path)) {
85 85
             unlink($path);
86 86
         }
Please login to merge, or discard this patch.