@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function testGetMetadataForAbsentClass() : void |
54 | 54 | { |
55 | 55 | $this->expectException(MappingException::class); |
56 | - $this->cmf->getMetadataFor(__NAMESPACE__ . '\AbsentClass'); |
|
56 | + $this->cmf->getMetadataFor(__NAMESPACE__.'\AbsentClass'); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function testGetParentMetadata() : void |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | { |
69 | 69 | $metadata = $this->createMock(ClassMetadata::class); |
70 | 70 | $cache = new ArrayCache(); |
71 | - $cache->save(str_replace('\\', '.', ChildEntity::class) . '$CLASSMETADATA', $metadata); |
|
71 | + $cache->save(str_replace('\\', '.', ChildEntity::class).'$CLASSMETADATA', $metadata); |
|
72 | 72 | |
73 | 73 | $this->cmf->setCacheDriver($cache); |
74 | 74 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $metadata = $this->createMock(ClassMetadata::class); |
81 | 81 | $cache = new ArrayCachePool(); |
82 | - $cache->set(str_replace('\\', '.', ChildEntity::class) . '$CLASSMETADATA', $metadata); |
|
82 | + $cache->set(str_replace('\\', '.', ChildEntity::class).'$CLASSMETADATA', $metadata); |
|
83 | 83 | |
84 | 84 | $this->cmf->setCache($cache); |
85 | 85 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $loadedMetadata = $this->cmf->getMetadataFor(ChildEntity::class); |
95 | 95 | |
96 | - self::assertEquals($loadedMetadata, $cache->fetch(str_replace('\\', '.', ChildEntity::class) . '$CLASSMETADATA')); |
|
96 | + self::assertEquals($loadedMetadata, $cache->fetch(str_replace('\\', '.', ChildEntity::class).'$CLASSMETADATA')); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | public function testCacheGetMetadataFor() : void |
@@ -103,14 +103,14 @@ discard block |
||
103 | 103 | |
104 | 104 | $loadedMetadata = $this->cmf->getMetadataFor(ChildEntity::class); |
105 | 105 | |
106 | - self::assertEquals($loadedMetadata, $cache->get(str_replace('\\', '.', ChildEntity::class) . '$CLASSMETADATA')); |
|
106 | + self::assertEquals($loadedMetadata, $cache->get(str_replace('\\', '.', ChildEntity::class).'$CLASSMETADATA')); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | public function testGetAliasedMetadata() : void |
110 | 110 | { |
111 | 111 | $this->cmf->getMetadataFor('prefix:ChildEntity'); |
112 | 112 | |
113 | - self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__ . '\ChildEntity')); |
|
113 | + self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__.'\ChildEntity')); |
|
114 | 114 | self::assertTrue($this->cmf->hasMetadataFor('prefix:ChildEntity')); |
115 | 115 | } |
116 | 116 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $classMetadata = $this->createMock(ClassMetadata::class); |
141 | 141 | |
142 | - $this->cmf->fallbackCallback = static function () use ($classMetadata) { |
|
142 | + $this->cmf->fallbackCallback = static function() use ($classMetadata) { |
|
143 | 143 | return $classMetadata; |
144 | 144 | }; |
145 | 145 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | |
152 | 152 | public function testWillFailOnFallbackFailureWithNotLoadedMetadata() : void |
153 | 153 | { |
154 | - $this->cmf->fallbackCallback = static function () { |
|
154 | + $this->cmf->fallbackCallback = static function() { |
|
155 | 155 | return null; |
156 | 156 | }; |
157 | 157 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function getAllMetadata() : array |
98 | 98 | { |
99 | - if (! $this->initialized) { |
|
99 | + if (!$this->initialized) { |
|
100 | 100 | $this->initialize(); |
101 | 101 | } |
102 | 102 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | try { |
185 | 185 | if ($this->cache !== null) { |
186 | - $cacheKey = str_replace('\\', '.', $realClassName) . $this->cacheSalt; |
|
186 | + $cacheKey = str_replace('\\', '.', $realClassName).$this->cacheSalt; |
|
187 | 187 | $cached = $this->cache->get($cacheKey); |
188 | 188 | |
189 | 189 | if ($cached instanceof ClassMetadata) { |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | */ |
280 | 280 | protected function loadMetadata(string $name) : array |
281 | 281 | { |
282 | - if (! $this->initialized) { |
|
282 | + if (!$this->initialized) { |
|
283 | 283 | $this->initialize(); |
284 | 284 | } |
285 | 285 | |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | */ |
363 | 363 | public function isTransient(string $class) : bool |
364 | 364 | { |
365 | - if (! $this->initialized) { |
|
365 | + if (!$this->initialized) { |
|
366 | 366 | $this->initialize(); |
367 | 367 | } |
368 | 368 | |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | */ |
402 | 402 | private function getRealClass(string $class) : string |
403 | 403 | { |
404 | - $pos = strrpos($class, '\\' . Proxy::MARKER . '\\'); |
|
404 | + $pos = strrpos($class, '\\'.Proxy::MARKER.'\\'); |
|
405 | 405 | |
406 | 406 | if ($pos === false) { |
407 | 407 | return $class; |