@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | |
| 397 | 397 | $l1 = new Login('session1'); |
| 398 | 398 | $l2 = new Login('session2'); |
| 399 | - $token = new Token('token-hash'); |
|
| 399 | + $token = new Token('token-hash'); |
|
| 400 | 400 | $token->addLogin($l1); |
| 401 | 401 | $token->addLogin($l2); |
| 402 | 402 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function testIssue2059() |
| 33 | 33 | { |
| 34 | - if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 34 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 35 | 35 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | public function testLoadMetadataFromDatabase() |
| 55 | 55 | { |
| 56 | - if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 56 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 57 | 57 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | public function testLoadMetadataWithForeignKeyFromDatabase() |
| 93 | 93 | { |
| 94 | - if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 94 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 95 | 95 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 96 | 96 | } |
| 97 | 97 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | public function testDetectManyToManyTables() |
| 126 | 126 | { |
| 127 | - if (!$this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 127 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 128 | 128 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | $table->addColumn('column_index1', 'string'); |
| 181 | 181 | $table->addColumn('column_index2', 'string'); |
| 182 | - $table->addIndex(['column_index1','column_index2'], 'index1'); |
|
| 182 | + $table->addIndex(['column_index1', 'column_index2'], 'index1'); |
|
| 183 | 183 | |
| 184 | 184 | $table->addColumn('column_unique_index1', 'string'); |
| 185 | 185 | $table->addColumn('column_unique_index2', 'string'); |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | |
| 246 | 246 | self::assertTrue( ! empty($indexes['index1']['columns'])); |
| 247 | 247 | self::assertEquals( |
| 248 | - ['column_index1','column_index2'], |
|
| 248 | + ['column_index1', 'column_index2'], |
|
| 249 | 249 | $indexes['index1']['columns'] |
| 250 | 250 | ); |
| 251 | 251 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -268,8 +268,8 @@ |
||
| 268 | 268 | $this->em->clear(); |
| 269 | 269 | |
| 270 | 270 | $newUser = $this->em->createQuery('SELECT u, g FROM Doctrine\Tests\Models\CMS\CmsUser u LEFT JOIN u.groups g WHERE u.id = ?1') |
| 271 | - ->setParameter(1, $user->getId()) |
|
| 272 | - ->getSingleResult(); |
|
| 271 | + ->setParameter(1, $user->getId()) |
|
| 272 | + ->getSingleResult(); |
|
| 273 | 273 | self::assertEquals(0, count($newUser->groups)); |
| 274 | 274 | self::assertInstanceOf(ManyToManyAssociationMetadata::class, $newUser->groups->getMapping()); |
| 275 | 275 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -293,9 +293,9 @@ discard block |
||
| 293 | 293 | $user->username = 'gblanco'; |
| 294 | 294 | $user->status = 'developer'; |
| 295 | 295 | |
| 296 | - for ($i=0; $i < $groupCount; ++$i) { |
|
| 296 | + for ($i = 0; $i < $groupCount; ++$i) { |
|
| 297 | 297 | $group = new CmsGroup; |
| 298 | - $group->name = 'Developers_' . $i; |
|
| 298 | + $group->name = 'Developers_'.$i; |
|
| 299 | 299 | $user->addGroup($group); |
| 300 | 300 | } |
| 301 | 301 | |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | $user |
| 419 | 419 | ->getGroups() |
| 420 | 420 | ->matching($criteria) |
| 421 | - ->map(function (CmsGroup $group) { |
|
| 421 | + ->map(function(CmsGroup $group) { |
|
| 422 | 422 | return $group->getName(); |
| 423 | 423 | }) |
| 424 | 424 | ->toArray() |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | $user |
| 463 | 463 | ->getTags() |
| 464 | 464 | ->matching($criteria) |
| 465 | - ->map(function (CmsTag $tag) { |
|
| 465 | + ->map(function(CmsTag $tag) { |
|
| 466 | 466 | return $tag->getName(); |
| 467 | 467 | }) |
| 468 | 468 | ->toArray() |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Doctrine\Tests\ORM\Functional; |
| 5 | 5 | |
@@ -234,8 +234,8 @@ discard block |
||
| 234 | 234 | $eventManager->addEventListener([Events::postLoad], $listener); |
| 235 | 235 | |
| 236 | 236 | $this->em->find(CmsUser::class, $this->userId); |
| 237 | - self::assertSame(1, $listener->countHandledEvents(CmsUser::class), CmsUser::class . ' should be handled once!'); |
|
| 238 | - self::assertSame(1, $listener->countHandledEvents(CmsEmail::class), CmsEmail::class . ' should be handled once!'); |
|
| 237 | + self::assertSame(1, $listener->countHandledEvents(CmsUser::class), CmsUser::class.' should be handled once!'); |
|
| 238 | + self::assertSame(1, $listener->countHandledEvents(CmsEmail::class), CmsEmail::class.' should be handled once!'); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | private function loadFixture() |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | { |
| 312 | 312 | $object = $event->getObject(); |
| 313 | 313 | $class = ClassUtils::getClass($object); |
| 314 | - if (!isset($this->firedByClasses[$class])) { |
|
| 314 | + if ( ! isset($this->firedByClasses[$class])) { |
|
| 315 | 315 | $this->firedByClasses[$class] = 1; |
| 316 | 316 | } else { |
| 317 | 317 | $this->firedByClasses[$class]++; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\ValueConversionType; |
| 6 | 6 | |