@@ -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\Functional\Ticket; |
| 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\Ticket; |
| 6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | //$this->em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger); |
| 28 | 28 | |
| 29 | - $num = $this->em->createQuery('DELETE ' . __NAMESPACE__ . '\DDC425Entity e WHERE e.someDatetimeField > ?1') |
|
| 29 | + $num = $this->em->createQuery('DELETE '.__NAMESPACE__.'\DDC425Entity e WHERE e.someDatetimeField > ?1') |
|
| 30 | 30 | ->setParameter(1, new DateTime, Type::DATETIME) |
| 31 | 31 | ->getResult(); |
| 32 | 32 | self::assertEquals(0, $num); |
@@ -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\Ticket; |
| 6 | 6 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function testIssue() |
| 25 | 25 | { |
| 26 | - $q = $this->em->createQuery('select b from ' . __NAMESPACE__ . '\\DDC448SubTable b where b.connectedClassId = ?1'); |
|
| 26 | + $q = $this->em->createQuery('select b from '.__NAMESPACE__.'\\DDC448SubTable b where b.connectedClassId = ?1'); |
|
| 27 | 27 | |
| 28 | 28 | self::assertSQLEquals( |
| 29 | 29 | 'SELECT t0."id" AS c0, t0."discr" AS c1, t0."connectedClassId" AS c2 FROM "SubTable" t1 INNER JOIN "DDC448MainTable" t0 ON t1."id" = t0."id" WHERE t0."connectedClassId" = ?', |
@@ -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\Ticket; |
| 6 | 6 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | $platform = $this->em->getConnection()->getDatabasePlatform(); |
| 27 | 27 | |
| 28 | - if (! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) { |
|
| 28 | + if ( ! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) { |
|
| 29 | 29 | $this->markTestSkipped('This test is only useful for databases that support schemas or can emulate them.'); |
| 30 | 30 | } |
| 31 | 31 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | // Checks sequence name validity |
| 63 | 63 | self::assertEquals( |
| 64 | - str_replace('"', '', $fullTableName) . '_' . $property->getColumnName() . '_seq', |
|
| 64 | + str_replace('"', '', $fullTableName).'_'.$property->getColumnName().'_seq', |
|
| 65 | 65 | $idSequenceName |
| 66 | 66 | ); |
| 67 | 67 | } |
@@ -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\Ticket; |
| 6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | $metadata = $this->em->getClassMetadata(DDC3634Entity::class); |
| 24 | 24 | |
| 25 | - if (! $metadata->getValueGenerationPlan()->containsDeferred()) { |
|
| 25 | + if ( ! $metadata->getValueGenerationPlan()->containsDeferred()) { |
|
| 26 | 26 | $this->markTestSkipped('Need a post-insert ID generator in order to make this test work correctly'); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | public function testSavesVeryLargeIntegerAutoGeneratedValue() |
| 41 | 41 | { |
| 42 | - $veryLargeId = PHP_INT_MAX . PHP_INT_MAX; |
|
| 42 | + $veryLargeId = PHP_INT_MAX.PHP_INT_MAX; |
|
| 43 | 43 | |
| 44 | 44 | $entityManager = EntityManager::create( |
| 45 | 45 | new DDC3634LastInsertIdMockingConnection($veryLargeId, $this->em->getConnection()), |
@@ -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\Ticket; |
| 6 | 6 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | $related = $this |
| 50 | 50 | ->em |
| 51 | - ->createQuery('SELECT b FROM ' . __NAMESPACE__ . '\DDC2214Bar b WHERE b.id IN(:ids)') |
|
| 51 | + ->createQuery('SELECT b FROM '.__NAMESPACE__.'\DDC2214Bar b WHERE b.id IN(:ids)') |
|
| 52 | 52 | ->setParameter('ids', [$bar]) |
| 53 | 53 | ->getResult(); |
| 54 | 54 | |
@@ -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\Ticket; |
| 6 | 6 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function addGroup(Group $child) |
| 96 | 96 | { |
| 97 | - if (! $this->children->contains($child)) { |
|
| 97 | + if ( ! $this->children->contains($child)) { |
|
| 98 | 98 | $this->children->add($child); |
| 99 | 99 | $child->addGroup($this); |
| 100 | 100 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function addChannel(Channel $child) |
| 109 | 109 | { |
| 110 | - if (! $this->channels->contains($child)) { |
|
| 110 | + if ( ! $this->channels->contains($child)) { |
|
| 111 | 111 | $this->channels->add($child); |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -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\Test\ORM\Functional\Ticket; |
| 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\Ticket; |
| 6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function testIssue() |
| 24 | 24 | { |
| 25 | - $q = $this->em->createQuery('select u, c.data from ' . __NAMESPACE__ . '\\DDC493Distributor u JOIN u.contact c'); |
|
| 25 | + $q = $this->em->createQuery('select u, c.data from '.__NAMESPACE__.'\\DDC493Distributor u JOIN u.contact c'); |
|
| 26 | 26 | |
| 27 | 27 | self::assertSQLEquals( |
| 28 | 28 | 'SELECT t0."id" AS c0, t1."data" AS c1, t0."discr" AS c2, t0."contact" AS c3 FROM "DDC493Distributor" t2 INNER JOIN "DDC493Customer" t0 ON t2."id" = t0."id" INNER JOIN "DDC493Contact" t1 ON t0."contact" = t1."id"', |