@@ -27,7 +27,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |