@@ -38,13 +38,13 @@ |
||
38 | 38 | public function testGetParentClasses() |
39 | 39 | { |
40 | 40 | $classes = $this->reflectionService->getParentClasses(self::class); |
41 | - self::assertTrue(count($classes) >= 1, 'The test class ' . self::class . ' should have at least one parent.'); |
|
41 | + self::assertTrue(count($classes) >= 1, 'The test class '.self::class.' should have at least one parent.'); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function testGetParentClassesForAbsentClass() |
45 | 45 | { |
46 | 46 | $this->expectException(MappingException::class); |
47 | - $this->reflectionService->getParentClasses(__NAMESPACE__ . '\AbsentClass'); |
|
47 | + $this->reflectionService->getParentClasses(__NAMESPACE__.'\AbsentClass'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | public function testGetReflectionClass() |
@@ -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 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) |
189 | 189 | { |
190 | - return __NAMESPACE__ . '\\' . $simpleClassName; |
|
190 | + return __NAMESPACE__.'\\'.$simpleClassName; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | protected function initialize() |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | |
219 | 219 | protected function onNotFoundMetadata($className) |
220 | 220 | { |
221 | - if (! $this->fallbackCallback) { |
|
221 | + if (!$this->fallbackCallback) { |
|
222 | 222 | return null; |
223 | 223 | } |
224 | 224 |
@@ -16,12 +16,12 @@ |
||
16 | 16 | error_reporting(E_ALL | E_STRICT); |
17 | 17 | |
18 | 18 | // register silently failing autoloader |
19 | -spl_autoload_register(static function ($class) { |
|
19 | +spl_autoload_register(static function($class) { |
|
20 | 20 | if (strpos($class, 'Doctrine\Tests\\') !== 0) { |
21 | 21 | return; |
22 | 22 | } |
23 | 23 | |
24 | - $path = __DIR__ . '/../../' . strtr($class, '\\', '/') . '.php'; |
|
24 | + $path = __DIR__.'/../../'.strtr($class, '\\', '/').'.php'; |
|
25 | 25 | if (is_file($path) && is_readable($path)) { |
26 | 26 | require_once $path; |
27 | 27 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getAllMetadata() |
81 | 81 | { |
82 | - if (! $this->initialized) { |
|
82 | + if (!$this->initialized) { |
|
83 | 83 | $this->initialize(); |
84 | 84 | } |
85 | 85 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | try { |
176 | 176 | if ($this->cacheDriver) { |
177 | - $cached = $this->cacheDriver->fetch($realClassName . $this->cacheSalt); |
|
177 | + $cached = $this->cacheDriver->fetch($realClassName.$this->cacheSalt); |
|
178 | 178 | if ($cached instanceof ClassMetadata) { |
179 | 179 | $this->loadedMetadata[$realClassName] = $cached; |
180 | 180 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } else { |
183 | 183 | foreach ($this->loadMetadata($realClassName) as $loadedClassName) { |
184 | 184 | $this->cacheDriver->save( |
185 | - $loadedClassName . $this->cacheSalt, |
|
185 | + $loadedClassName.$this->cacheSalt, |
|
186 | 186 | $this->loadedMetadata[$loadedClassName] |
187 | 187 | ); |
188 | 188 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | } catch (MappingException $loadingException) { |
194 | 194 | $fallbackMetadataResponse = $this->onNotFoundMetadata($realClassName); |
195 | 195 | |
196 | - if (! $fallbackMetadataResponse) { |
|
196 | + if (!$fallbackMetadataResponse) { |
|
197 | 197 | throw $loadingException; |
198 | 198 | } |
199 | 199 | |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | */ |
275 | 275 | protected function loadMetadata($name) |
276 | 276 | { |
277 | - if (! $this->initialized) { |
|
277 | + if (!$this->initialized) { |
|
278 | 278 | $this->initialize(); |
279 | 279 | } |
280 | 280 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | */ |
362 | 362 | public function isTransient($class) |
363 | 363 | { |
364 | - if (! $this->initialized) { |
|
364 | + if (!$this->initialized) { |
|
365 | 365 | $this->initialize(); |
366 | 366 | } |
367 | 367 | |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | */ |
403 | 403 | private function getRealClass(string $class) : string |
404 | 404 | { |
405 | - $pos = strrpos($class, '\\' . Proxy::MARKER . '\\'); |
|
405 | + $pos = strrpos($class, '\\'.Proxy::MARKER.'\\'); |
|
406 | 406 | |
407 | 407 | if ($pos === false) { |
408 | 408 | return $class; |