@@ -77,9 +77,9 @@ discard block |
||
77 | 77 | |
78 | 78 | public function testHasGetMetadataNamespaceSeparatorIsNotNormalized() : void |
79 | 79 | { |
80 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
80 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
81 | 81 | |
82 | - $metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']); |
|
82 | + $metadataDriver = $this->createAnnotationDriver([__DIR__.'/../../Models/Global/']); |
|
83 | 83 | |
84 | 84 | $entityManager = $this->createEntityManager($metadataDriver); |
85 | 85 | |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | |
88 | 88 | self::assertSame( |
89 | 89 | $mf->getMetadataFor(DoctrineGlobalArticle::class), |
90 | - $mf->getMetadataFor('\\' . DoctrineGlobalArticle::class) |
|
90 | + $mf->getMetadataFor('\\'.DoctrineGlobalArticle::class) |
|
91 | 91 | ); |
92 | 92 | self::assertTrue($mf->hasMetadataFor(DoctrineGlobalArticle::class)); |
93 | - self::assertTrue($mf->hasMetadataFor('\\' . DoctrineGlobalArticle::class)); |
|
93 | + self::assertTrue($mf->hasMetadataFor('\\'.DoctrineGlobalArticle::class)); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | public function testNoDefaultDiscriminatorMapIsAssumed(string $rootClassName, string $targetClassName) : void |
122 | 122 | { |
123 | 123 | $cmf = new ClassMetadataFactory(); |
124 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/JoinedInheritanceType/']); |
|
124 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/JoinedInheritanceType/']); |
|
125 | 125 | $em = $this->createEntityManager($driver); |
126 | 126 | $cmf->setEntityManager($em); |
127 | 127 | |
@@ -171,10 +171,10 @@ discard block |
||
171 | 171 | $driverMock = new DriverMock(); |
172 | 172 | $config = new Configuration(); |
173 | 173 | |
174 | - $config->setProxyDir(__DIR__ . '/../../Proxies'); |
|
174 | + $config->setProxyDir(__DIR__.'/../../Proxies'); |
|
175 | 175 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
176 | 176 | |
177 | - if (! $conn) { |
|
177 | + if ( ! $conn) { |
|
178 | 178 | $conn = new ConnectionMock([], $driverMock, $config, new EventManager()); |
179 | 179 | } |
180 | 180 | $eventManager = $conn->getEventManager(); |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | public function testQuoteMetadata() : void |
270 | 270 | { |
271 | 271 | $cmf = new ClassMetadataFactory(); |
272 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Quote/']); |
|
272 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/Quote/']); |
|
273 | 273 | $em = $this->createEntityManager($driver); |
274 | 274 | $cmf->setEntityManager($em); |
275 | 275 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | $listener |
350 | 350 | ->expects($this->any()) |
351 | 351 | ->method('onClassMetadataNotFound') |
352 | - ->will($this->returnCallback(function (OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em) { |
|
352 | + ->will($this->returnCallback(function(OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em) { |
|
353 | 353 | self::assertNull($args->getFoundMetadata()); |
354 | 354 | self::assertSame('Foo', $args->getClassName()); |
355 | 355 | self::assertSame($em, $args->getObjectManager()); |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | public function testInheritsIdGeneratorMappingFromEmbeddable() : void |
412 | 412 | { |
413 | 413 | $cmf = new ClassMetadataFactory(); |
414 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/DDC4006/']); |
|
414 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/DDC4006/']); |
|
415 | 415 | $em = $this->createEntityManager($driver); |
416 | 416 | $cmf->setEntityManager($em); |
417 | 417 | |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | ) : ClassMetadata { |
435 | 435 | $this->requestedClasses[] = $className; |
436 | 436 | |
437 | - if (! isset($this->mockMetadata[$className])) { |
|
437 | + if ( ! isset($this->mockMetadata[$className])) { |
|
438 | 438 | throw new InvalidArgumentException(sprintf('No mock metadata found for class %s.', $className)); |
439 | 439 | } |
440 | 440 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $listener |
39 | 39 | ->expects($this->once()) |
40 | 40 | ->method(Events::postFlush) |
41 | - ->will($this->returnCallback(function () use ($uow) { |
|
41 | + ->will($this->returnCallback(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 | } |