@@ -60,7 +60,7 @@ |
||
| 60 | 60 | /** |
| 61 | 61 | * @param string $className |
| 62 | 62 | * |
| 63 | - * @return ClassHierarchyMetadata|MergeableClassMetadata|null |
|
| 63 | + * @return ClassMetadata|null |
|
| 64 | 64 | */ |
| 65 | 65 | public function getMetadataForClass($className) |
| 66 | 66 | { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | if (null !== $classMetadata) { |
| 88 | - if ( ! $classMetadata instanceof ClassMetadata) { |
|
| 88 | + if (!$classMetadata instanceof ClassMetadata) { |
|
| 89 | 89 | throw new \LogicException(sprintf('The cache must return instances of ClassMetadata, but got %s.', var_export($classMetadata, true))); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function loadClassMetadataFromCache(\ReflectionClass $class) |
| 37 | 37 | { |
| 38 | - $cache = $this->cache->fetch($this->prefix . $class->name); |
|
| 38 | + $cache = $this->cache->fetch($this->prefix.$class->name); |
|
| 39 | 39 | return false === $cache ? null : $cache; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function putClassMetadataInCache(ClassMetadata $metadata) |
| 46 | 46 | { |
| 47 | - $this->cache->save($this->prefix . $metadata->name, $metadata); |
|
| 47 | + $this->cache->save($this->prefix.$metadata->name, $metadata); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -52,6 +52,6 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function evictClassMetadataFromCache(\ReflectionClass $class) |
| 54 | 54 | { |
| 55 | - $this->cache->delete($this->prefix . $class->name); |
|
| 55 | + $this->cache->delete($this->prefix.$class->name); |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -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 | { |