@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | public function testGetMetadataForAbsentClass() |
48 | 48 | { |
49 | 49 | $this->expectException(MappingException::class); |
50 | - $this->cmf->getMetadataFor(__NAMESPACE__ . '\AbsentClass'); |
|
50 | + $this->cmf->getMetadataFor(__NAMESPACE__.'\AbsentClass'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function testGetParentMetadata() |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $metadata = $this->createMock(ClassMetadata::class); |
65 | 65 | $cache = new ArrayCache(); |
66 | - $cache->save(ChildEntity::class . '$CLASSMETADATA', $metadata); |
|
66 | + $cache->save(ChildEntity::class.'$CLASSMETADATA', $metadata); |
|
67 | 67 | |
68 | 68 | $this->cmf->setCacheDriver($cache); |
69 | 69 | |
@@ -77,14 +77,14 @@ discard block |
||
77 | 77 | |
78 | 78 | $loadedMetadata = $this->cmf->getMetadataFor(ChildEntity::class); |
79 | 79 | |
80 | - self::assertSame($loadedMetadata, $cache->fetch(ChildEntity::class . '$CLASSMETADATA')); |
|
80 | + self::assertSame($loadedMetadata, $cache->fetch(ChildEntity::class.'$CLASSMETADATA')); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function testGetAliasedMetadata() |
84 | 84 | { |
85 | 85 | $this->cmf->getMetadataFor('prefix:ChildEntity'); |
86 | 86 | |
87 | - self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__ . '\ChildEntity')); |
|
87 | + self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__.'\ChildEntity')); |
|
88 | 88 | self::assertTrue($this->cmf->hasMetadataFor('prefix:ChildEntity')); |
89 | 89 | } |
90 | 90 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $classMetadata = $this->createMock(ClassMetadata::class); |
115 | 115 | |
116 | - $this->cmf->fallbackCallback = static function () use ($classMetadata) { |
|
116 | + $this->cmf->fallbackCallback = static function() use ($classMetadata) { |
|
117 | 117 | return $classMetadata; |
118 | 118 | }; |
119 | 119 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | public function testWillFailOnFallbackFailureWithNotLoadedMetadata() |
126 | 126 | { |
127 | - $this->cmf->fallbackCallback = static function () { |
|
127 | + $this->cmf->fallbackCallback = static function() { |
|
128 | 128 | return null; |
129 | 129 | }; |
130 | 130 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | $classMetadata = $this->createMock(ClassMetadata::class); |
172 | 172 | |
173 | - $this->cmf->fallbackCallback = static function () use ($classMetadata) { |
|
173 | + $this->cmf->fallbackCallback = static function() use ($classMetadata) { |
|
174 | 174 | return $classMetadata; |
175 | 175 | }; |
176 | 176 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) |
218 | 218 | { |
219 | - return __NAMESPACE__ . '\\' . $simpleClassName; |
|
219 | + return __NAMESPACE__.'\\'.$simpleClassName; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | protected function initialize() |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | protected function onNotFoundMetadata($className) |
249 | 249 | { |
250 | - if (! $this->fallbackCallback) { |
|
250 | + if (!$this->fallbackCallback) { |
|
251 | 251 | return null; |
252 | 252 | } |
253 | 253 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function getAllMetadata() |
84 | 84 | { |
85 | - if (! $this->initialized) { |
|
85 | + if (!$this->initialized) { |
|
86 | 86 | $this->initialize(); |
87 | 87 | } |
88 | 88 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | try { |
167 | 167 | if ($this->cacheDriver) { |
168 | - $cached = $this->cacheDriver->fetch($className . $this->cacheSalt); |
|
168 | + $cached = $this->cacheDriver->fetch($className.$this->cacheSalt); |
|
169 | 169 | if ($cached instanceof ClassMetadata) { |
170 | 170 | $this->loadedMetadata[$className] = $cached; |
171 | 171 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } catch (MappingException $loadingException) { |
180 | 180 | $fallbackMetadataResponse = $this->onNotFoundMetadata($className); |
181 | 181 | |
182 | - if (! $fallbackMetadataResponse) { |
|
182 | + if (!$fallbackMetadataResponse) { |
|
183 | 183 | throw $loadingException; |
184 | 184 | } |
185 | 185 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | |
225 | 225 | $this->cacheDriver->save( |
226 | - $className . $this->cacheSalt, |
|
226 | + $className.$this->cacheSalt, |
|
227 | 227 | $this->loadedMetadata[$className], |
228 | 228 | null |
229 | 229 | ); |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | */ |
269 | 269 | protected function loadMetadata($name) |
270 | 270 | { |
271 | - if (! $this->initialized) { |
|
271 | + if (!$this->initialized) { |
|
272 | 272 | $this->initialize(); |
273 | 273 | } |
274 | 274 | |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | */ |
355 | 355 | public function isTransient($class) |
356 | 356 | { |
357 | - if (! $this->initialized) { |
|
357 | + if (!$this->initialized) { |
|
358 | 358 | $this->initialize(); |
359 | 359 | } |
360 | 360 | |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | [$namespaceAlias, $simpleClassName] = explode(':', $className, 2); |
409 | 409 | $realClassName = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName); |
410 | 410 | break; |
411 | - case $pos = strrpos($className, '\\' . Proxy::MARKER . '\\') !== false: // Check for namespace proxy |
|
411 | + case $pos = strrpos($className, '\\'.Proxy::MARKER.'\\') !== false: // Check for namespace proxy |
|
412 | 412 | $realClassName = substr($className, $pos + Proxy::MARKER_LENGTH + 2); |
413 | 413 | break; |
414 | 414 | default: |