@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function getAllMetadata() : array |
| 77 | 77 | { |
| 78 | - if (! $this->initialized) { |
|
| 78 | + if (!$this->initialized) { |
|
| 79 | 79 | $this->initialize(); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | try { |
| 164 | 164 | if ($this->cacheDriver) { |
| 165 | - $cached = $this->cacheDriver->fetch($realClassName . $this->cacheSalt); |
|
| 165 | + $cached = $this->cacheDriver->fetch($realClassName.$this->cacheSalt); |
|
| 166 | 166 | if ($cached instanceof ClassMetadata) { |
| 167 | 167 | $this->loadedMetadata[$realClassName] = $cached; |
| 168 | 168 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } else { |
| 171 | 171 | foreach ($this->loadMetadata($realClassName) as $loadedClassName) { |
| 172 | 172 | $this->cacheDriver->save( |
| 173 | - $loadedClassName . $this->cacheSalt, |
|
| 173 | + $loadedClassName.$this->cacheSalt, |
|
| 174 | 174 | $this->loadedMetadata[$loadedClassName], |
| 175 | 175 | 0 |
| 176 | 176 | ); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } catch (MappingException $loadingException) { |
| 183 | 183 | $fallbackMetadataResponse = $this->onNotFoundMetadata($realClassName); |
| 184 | 184 | |
| 185 | - if (! $fallbackMetadataResponse) { |
|
| 185 | + if (!$fallbackMetadataResponse) { |
|
| 186 | 186 | throw $loadingException; |
| 187 | 187 | } |
| 188 | 188 | |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | protected function loadMetadata(string $name) : array |
| 259 | 259 | { |
| 260 | - if (! $this->initialized) { |
|
| 260 | + if (!$this->initialized) { |
|
| 261 | 261 | $this->initialize(); |
| 262 | 262 | } |
| 263 | 263 | |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | */ |
| 344 | 344 | public function isTransient(string $class) : bool |
| 345 | 345 | { |
| 346 | - if (! $this->initialized) { |
|
| 346 | + if (!$this->initialized) { |
|
| 347 | 347 | $this->initialize(); |
| 348 | 348 | } |
| 349 | 349 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | */ |
| 385 | 385 | private function getRealClass(string $class) : string |
| 386 | 386 | { |
| 387 | - $pos = strrpos($class, '\\' . Proxy::MARKER . '\\'); |
|
| 387 | + $pos = strrpos($class, '\\'.Proxy::MARKER.'\\'); |
|
| 388 | 388 | |
| 389 | 389 | if ($pos === false) { |
| 390 | 390 | return $class; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $name = $this->defaultConnection; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - if (! isset($this->connections[$name])) { |
|
| 92 | + if (!isset($this->connections[$name])) { |
|
| 93 | 93 | throw new InvalidArgumentException( |
| 94 | 94 | sprintf('Doctrine %s Connection named "%s" does not exist.', $this->name, $name) |
| 95 | 95 | ); |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $name = $this->defaultManager; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - if (! isset($this->managers[$name])) { |
|
| 149 | + if (!isset($this->managers[$name])) { |
|
| 150 | 150 | throw new InvalidArgumentException( |
| 151 | 151 | sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name) |
| 152 | 152 | ); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | if (strpos($class, ':') !== false) { |
| 168 | 168 | [$namespaceAlias, $simpleClassName] = explode(':', $class, 2); |
| 169 | 169 | |
| 170 | - $class = $this->getAliasNamespace($namespaceAlias) . '\\' . $simpleClassName; |
|
| 170 | + $class = $this->getAliasNamespace($namespaceAlias).'\\'.$simpleClassName; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $proxyClass = new ReflectionClass($class); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | if ($proxyClass->implementsInterface($this->proxyInterfaceName)) { |
| 176 | 176 | $parentClass = $proxyClass->getParentClass(); |
| 177 | 177 | |
| 178 | - if (! $parentClass) { |
|
| 178 | + if (!$parentClass) { |
|
| 179 | 179 | return null; |
| 180 | 180 | } |
| 181 | 181 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | /** @var ObjectManager $manager */ |
| 187 | 187 | $manager = $this->getService($id); |
| 188 | 188 | |
| 189 | - if (! $manager->getMetadataFactory()->isTransient($class)) { |
|
| 189 | + if (!$manager->getMetadataFactory()->isTransient($class)) { |
|
| 190 | 190 | return $manager; |
| 191 | 191 | } |
| 192 | 192 | } |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | $name = $this->defaultManager; |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | - if (! isset($this->managers[$name])) { |
|
| 248 | + if (!isset($this->managers[$name])) { |
|
| 249 | 249 | throw new InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.', $this->name, $name)); |
| 250 | 250 | } |
| 251 | 251 | |