@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if (false === (@file_put_contents($path, |
| 52 | - '<?php return unserialize(' . var_export(serialize($metadata), true) . ');') |
|
| 52 | + '<?php return unserialize('.var_export(serialize($metadata), true).');') |
|
| 53 | 53 | )) { |
| 54 | 54 | throw new \RuntimeException("Can't not write new cache file to {$path}"); |
| 55 | 55 | }; |
@@ -76,6 +76,6 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | private function getFileName(ClassMetadata $metadata) |
| 78 | 78 | { |
| 79 | - return $this->dir . '/' . strtr($metadata->name, '\\', '-') . '.cache.php'; |
|
| 79 | + return $this->dir.'/'.strtr($metadata->name, '\\', '-').'.cache.php'; |
|
| 80 | 80 | } |
| 81 | 81 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * @param $dir |
|
| 84 | + * @param string $dir |
|
| 85 | 85 | */ |
| 86 | 86 | private function createDirectory($dir) |
| 87 | 87 | { |