@@ -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; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $locator->expects($this->once()) |
| 37 | 37 | ->method('findMappingFile') |
| 38 | 38 | ->with($this->equalTo('stdClass')) |
| 39 | - ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml')); |
|
| 39 | + ->will($this->returnValue(__DIR__.'/_files/stdClass.yml')); |
|
| 40 | 40 | |
| 41 | 41 | $driver = new TestFileDriver($locator); |
| 42 | 42 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $locator->expects($this->once()) |
| 52 | 52 | ->method('findMappingFile') |
| 53 | 53 | ->with($this->equalTo('stdClass')) |
| 54 | - ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml')); |
|
| 54 | + ->will($this->returnValue(__DIR__.'/_files/stdClass.yml')); |
|
| 55 | 55 | |
| 56 | 56 | $driver = new TestFileDriver($locator); |
| 57 | 57 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | public function testNonLocatorFallback() |
| 134 | 134 | { |
| 135 | - $driver = new TestFileDriver(__DIR__ . '/_files', '.yml'); |
|
| 135 | + $driver = new TestFileDriver(__DIR__.'/_files', '.yml'); |
|
| 136 | 136 | self::assertTrue($driver->isTransient('stdClass2')); |
| 137 | 137 | self::assertFalse($driver->isTransient('stdClass')); |
| 138 | 138 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | { |
| 142 | 142 | $locator = $this->createMock(FileLocator::class); |
| 143 | 143 | $locator->expects($this->any())->method('getFileExtension')->will($this->returnValue('.yml')); |
| 144 | - $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__ . '/_files'])); |
|
| 144 | + $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__.'/_files'])); |
|
| 145 | 145 | |
| 146 | 146 | return $locator; |
| 147 | 147 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class_alias( |
| 12 | 12 | \Doctrine\Persistence\PropertyChangedListener::class, |
| 13 | - __NAMESPACE__ . '\PropertyChangedListener' |
|
| 13 | + __NAMESPACE__.'\PropertyChangedListener' |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | if (false) { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | class_alias( |
| 11 | 11 | \Doctrine\Persistence\NotifyPropertyChanged::class, |
| 12 | - __NAMESPACE__ . '\NotifyPropertyChanged' |
|
| 12 | + __NAMESPACE__.'\NotifyPropertyChanged' |
|
| 13 | 13 | ); |
| 14 | 14 | |
| 15 | 15 | if (false) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class_alias( |
| 12 | 12 | \Doctrine\Persistence\ManagerRegistry::class, |
| 13 | - __NAMESPACE__ . '\ManagerRegistry' |
|
| 13 | + __NAMESPACE__.'\ManagerRegistry' |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | if (false) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class_alias( |
| 12 | 12 | \Doctrine\Persistence\ObjectRepository::class, |
| 13 | - __NAMESPACE__ . '\ObjectRepository' |
|
| 13 | + __NAMESPACE__.'\ObjectRepository' |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | if (false) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class_alias( |
| 12 | 12 | \Doctrine\Persistence\AbstractManagerRegistry::class, |
| 13 | - __NAMESPACE__ . '\AbstractManagerRegistry' |
|
| 13 | + __NAMESPACE__.'\AbstractManagerRegistry' |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | if (false) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class_alias( |
| 12 | 12 | \Doctrine\Persistence\ObjectManagerDecorator::class, |
| 13 | - __NAMESPACE__ . '\ObjectManagerDecorator' |
|
| 13 | + __NAMESPACE__.'\ObjectManagerDecorator' |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | if (false) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | class_alias( |
| 12 | 12 | \Doctrine\Persistence\ConnectionRegistry::class, |
| 13 | - __NAMESPACE__ . '\ConnectionRegistry' |
|
| 13 | + __NAMESPACE__.'\ConnectionRegistry' |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | if (false) { |