@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | return; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - $data = '<?php return unserialize(' . var_export($metadata->serialize(), true) . ');'; |
|
| 64 | + $data = '<?php return unserialize('.var_export($metadata->serialize(), true).');'; |
|
| 65 | 65 | $bytesWritten = file_put_contents($tmpFile, $data); |
| 66 | 66 | // use strlen and not mb_strlen. if there is utf8 in the code, it also writes more bytes. |
| 67 | 67 | if ($bytesWritten !== strlen($data)) { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | public function clear(): bool |
| 110 | 110 | { |
| 111 | 111 | $result = true; |
| 112 | - $files = glob($this->dir . '/*.cache.php'); |
|
| 112 | + $files = glob($this->dir.'/*.cache.php'); |
|
| 113 | 113 | foreach ($files as $file) { |
| 114 | 114 | if (is_file($file)) { |
| 115 | 115 | $result = $result && @unlink($file); |
@@ -129,6 +129,6 @@ discard block |
||
| 129 | 129 | { |
| 130 | 130 | $fileName = str_replace(['\\', "\0", '@', '/', '$', '{', '}', ':'], '-', $key); |
| 131 | 131 | |
| 132 | - return $this->dir . '/' . $fileName . '.cache.php'; |
|
| 132 | + return $this->dir.'/'.$fileName.'.cache.php'; |
|
| 133 | 133 | } |
| 134 | 134 | } |