Passed
Push — master ( 8871a7...8d8958 )
by Asmir
01:27 queued 01:00
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
         }
@@ -44,13 +44,13 @@  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 50
         if (false === $tmpFile) {
51 51
             return;
52 52
         }
53
-        $data = '<?php return unserialize(' . var_export(serialize($metadata), true) . ');';
53
+        $data = '<?php return unserialize('.var_export(serialize($metadata), true).');';
54 54
         $bytesWritten = file_put_contents($tmpFile, $data);
55 55
         // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes.
56 56
         if ($bytesWritten !== strlen($data)) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function evict(string $class): void
93 93
     {
94
-        $path = $this->dir . '/' . strtr($class, '\\', '-') . '.cache.php';
94
+        $path = $this->dir.'/'.strtr($class, '\\', '-').'.cache.php';
95 95
         if (file_exists($path)) {
96 96
             unlink($path);
97 97
         }
Please login to merge, or discard this patch.