@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $listener |
| 39 | 39 | ->expects($this->once()) |
| 40 | 40 | ->method(Events::postFlush) |
| 41 | - ->will($this->returnCallback(static function () use ($uow) { |
|
| 41 | + ->will($this->returnCallback(static function() use ($uow) { |
|
| 42 | 42 | self::assertAttributeEmpty('extraUpdates', $uow, 'ExtraUpdates are reset before postFlush'); |
| 43 | 43 | })); |
| 44 | 44 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | { |
| 157 | 157 | $this->addresses = $addresses; |
| 158 | 158 | |
| 159 | - $addresses->map(function ($address) { |
|
| 159 | + $addresses->map(function($address) { |
|
| 160 | 160 | $address->user = $this; |
| 161 | 161 | }); |
| 162 | 162 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | { |
| 166 | 166 | $this->pets = $pets; |
| 167 | 167 | |
| 168 | - $pets->map(function ($pet) { |
|
| 168 | + $pets->map(function($pet) { |
|
| 169 | 169 | $pet->owner = $this; |
| 170 | 170 | }); |
| 171 | 171 | } |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | public function testHasGetMetadataNamespaceSeparatorIsNotNormalized() : void |
| 78 | 78 | { |
| 79 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 79 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 80 | 80 | |
| 81 | - $metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']); |
|
| 81 | + $metadataDriver = $this->createAnnotationDriver([__DIR__.'/../../Models/Global/']); |
|
| 82 | 82 | |
| 83 | 83 | $entityManager = $this->createEntityManager($metadataDriver); |
| 84 | 84 | |
@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | self::assertSame( |
| 88 | 88 | $mf->getMetadataFor(DoctrineGlobalArticle::class), |
| 89 | - $mf->getMetadataFor('\\' . DoctrineGlobalArticle::class) |
|
| 89 | + $mf->getMetadataFor('\\'.DoctrineGlobalArticle::class) |
|
| 90 | 90 | ); |
| 91 | 91 | self::assertTrue($mf->hasMetadataFor(DoctrineGlobalArticle::class)); |
| 92 | - self::assertTrue($mf->hasMetadataFor('\\' . DoctrineGlobalArticle::class)); |
|
| 92 | + self::assertTrue($mf->hasMetadataFor('\\'.DoctrineGlobalArticle::class)); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | public function testNoDefaultDiscriminatorMapIsAssumed(string $rootClassName, string $targetClassName) : void |
| 121 | 121 | { |
| 122 | 122 | $cmf = new ClassMetadataFactory(); |
| 123 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/JoinedInheritanceType/']); |
|
| 123 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/JoinedInheritanceType/']); |
|
| 124 | 124 | $em = $this->createEntityManager($driver); |
| 125 | 125 | $cmf->setEntityManager($em); |
| 126 | 126 | |
@@ -170,10 +170,10 @@ discard block |
||
| 170 | 170 | $driverMock = new DriverMock(); |
| 171 | 171 | $config = new Configuration(); |
| 172 | 172 | |
| 173 | - $config->setProxyDir(__DIR__ . '/../../Proxies'); |
|
| 173 | + $config->setProxyDir(__DIR__.'/../../Proxies'); |
|
| 174 | 174 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 175 | 175 | |
| 176 | - if (! $conn) { |
|
| 176 | + if ( ! $conn) { |
|
| 177 | 177 | $conn = new ConnectionMock([], $driverMock, $config, new EventManager()); |
| 178 | 178 | } |
| 179 | 179 | $eventManager = $conn->getEventManager(); |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | public function testQuoteMetadata() : void |
| 269 | 269 | { |
| 270 | 270 | $cmf = new ClassMetadataFactory(); |
| 271 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Quote/']); |
|
| 271 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/Quote/']); |
|
| 272 | 272 | $em = $this->createEntityManager($driver); |
| 273 | 273 | $cmf->setEntityManager($em); |
| 274 | 274 | |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | $listener |
| 349 | 349 | ->expects($this->any()) |
| 350 | 350 | ->method('onClassMetadataNotFound') |
| 351 | - ->will($this->returnCallback(static function (OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em) { |
|
| 351 | + ->will($this->returnCallback(static function(OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em) { |
|
| 352 | 352 | self::assertNull($args->getFoundMetadata()); |
| 353 | 353 | self::assertSame('Foo', $args->getClassName()); |
| 354 | 354 | self::assertSame($em, $args->getObjectManager()); |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | public function testInheritsIdGeneratorMappingFromEmbeddable() : void |
| 411 | 411 | { |
| 412 | 412 | $cmf = new ClassMetadataFactory(); |
| 413 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/DDC4006/']); |
|
| 413 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/DDC4006/']); |
|
| 414 | 414 | $em = $this->createEntityManager($driver); |
| 415 | 415 | $cmf->setEntityManager($em); |
| 416 | 416 | |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | ) : ClassMetadata { |
| 434 | 434 | $this->requestedClasses[] = $className; |
| 435 | 435 | |
| 436 | - if (! isset($this->mockMetadata[$className])) { |
|
| 436 | + if ( ! isset($this->mockMetadata[$className])) { |
|
| 437 | 437 | throw new InvalidArgumentException(sprintf('No mock metadata found for class %s.', $className)); |
| 438 | 438 | } |
| 439 | 439 | |