@@ -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 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | @trigger_error(sprintf('%s is deprecated.', __METHOD__), E_USER_DEPRECATED); |
| 73 | 73 | |
| 74 | - if ($this->cache !== null && ! $this->cache instanceof SimpleCacheAdapter) { |
|
| 74 | + if ($this->cache !== null && !$this->cache instanceof SimpleCacheAdapter) { |
|
| 75 | 75 | throw new BadMethodCallException('Cannot convert a PSR-16 cache back to a Doctrine cache.'); |
| 76 | 76 | } |
| 77 | 77 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | public function getAllMetadata() : array |
| 103 | 103 | { |
| 104 | - if (! $this->initialized) { |
|
| 104 | + if (!$this->initialized) { |
|
| 105 | 105 | $this->initialize(); |
| 106 | 106 | } |
| 107 | 107 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | |
| 189 | 189 | try { |
| 190 | 190 | if ($this->cache !== null) { |
| 191 | - $cacheKey = str_replace('\\', '.', $realClassName) . $this->cacheSalt; |
|
| 191 | + $cacheKey = str_replace('\\', '.', $realClassName).$this->cacheSalt; |
|
| 192 | 192 | $cached = $this->cache->get($cacheKey); |
| 193 | 193 | |
| 194 | 194 | if ($cached instanceof ClassMetadata) { |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | */ |
| 285 | 285 | protected function loadMetadata(string $name) : array |
| 286 | 286 | { |
| 287 | - if (! $this->initialized) { |
|
| 287 | + if (!$this->initialized) { |
|
| 288 | 288 | $this->initialize(); |
| 289 | 289 | } |
| 290 | 290 | |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | */ |
| 368 | 368 | public function isTransient(string $class) : bool |
| 369 | 369 | { |
| 370 | - if (! $this->initialized) { |
|
| 370 | + if (!$this->initialized) { |
|
| 371 | 371 | $this->initialize(); |
| 372 | 372 | } |
| 373 | 373 | |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | */ |
| 407 | 407 | private function getRealClass(string $class) : string |
| 408 | 408 | { |
| 409 | - $pos = strrpos($class, '\\' . Proxy::MARKER . '\\'); |
|
| 409 | + $pos = strrpos($class, '\\'.Proxy::MARKER.'\\'); |
|
| 410 | 410 | |
| 411 | 411 | if ($pos === false) { |
| 412 | 412 | return $class; |