@@ -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 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | } |
222 | 222 | |
223 | 223 | $this->cacheDriver->save( |
224 | - $className . $this->cacheSalt, |
|
224 | + $className.$this->cacheSalt, |
|
225 | 225 | $this->loadedMetadata[$className], |
226 | 226 | null |
227 | 227 | ); |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | */ |
267 | 267 | protected function loadMetadata($name) |
268 | 268 | { |
269 | - if (! $this->initialized) { |
|
269 | + if (!$this->initialized) { |
|
270 | 270 | $this->initialize(); |
271 | 271 | } |
272 | 272 | |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | */ |
353 | 353 | public function isTransient($class) |
354 | 354 | { |
355 | - if (! $this->initialized) { |
|
355 | + if (!$this->initialized) { |
|
356 | 356 | $this->initialize(); |
357 | 357 | } |
358 | 358 | |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | [$namespaceAlias, $simpleClassName] = explode(':', $className, 2); |
407 | 407 | $realClassName = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName); |
408 | 408 | break; |
409 | - case $pos = strrpos($className, '\\' . Proxy::MARKER . '\\') !== false: // Check for namespace proxy |
|
409 | + case $pos = strrpos($className, '\\'.Proxy::MARKER.'\\') !== false: // Check for namespace proxy |
|
410 | 410 | $realClassName = substr($className, $pos + Proxy::MARKER_LENGTH + 2); |
411 | 411 | break; |
412 | 412 | default: |