@@ -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 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | ->em |
| 76 | 76 | ->createQuery( |
| 77 | 77 | 'SELECT e, p, c FROM ' |
| 78 | - . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id' |
|
| 78 | + . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id' |
|
| 79 | 79 | ) |
| 80 | 80 | ->setParameter('id', $second) |
| 81 | 81 | ->setHint(Query::HINT_REFRESH, true) |
@@ -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\Ticket; |
| 5 | 5 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | { |
| 144 | 144 | $qb = $this->em->createQueryBuilder(); |
| 145 | 145 | |
| 146 | - $result = $qb->select('r, d, c') |
|
| 146 | + $result = $qb->select('r, d, c') |
|
| 147 | 147 | ->from(PaidRide::class, 'r') |
| 148 | 148 | ->leftJoin('r.driver', 'd') |
| 149 | 149 | ->leftJoin('r.car', 'c') |
@@ -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 | |
@@ -58,17 +58,17 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | public function loadFixture() |
| 60 | 60 | { |
| 61 | - $user1 = new LegacyUser(); |
|
| 61 | + $user1 = new LegacyUser(); |
|
| 62 | 62 | $user1->username = 'FabioBatSilva'; |
| 63 | 63 | $user1->name = 'Fabio B. Silva'; |
| 64 | 64 | $user1->status = 'active'; |
| 65 | 65 | |
| 66 | - $user2 = new LegacyUser(); |
|
| 66 | + $user2 = new LegacyUser(); |
|
| 67 | 67 | $user2->username = 'doctrinebot'; |
| 68 | 68 | $user2->name = 'Doctrine Bot'; |
| 69 | 69 | $user2->status = 'active'; |
| 70 | 70 | |
| 71 | - $user3 = new LegacyUser(); |
|
| 71 | + $user3 = new LegacyUser(); |
|
| 72 | 72 | $user3->username = 'test'; |
| 73 | 73 | $user3->name = 'Tester'; |
| 74 | 74 | $user3->status = 'active'; |
@@ -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 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | public function __construct(DDC2579Id $id) |
| 130 | 130 | { |
| 131 | - $this->associationId = $id; |
|
| 131 | + $this->associationId = $id; |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | */ |
| 143 | 143 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
| 144 | 144 | { |
| 145 | - return (string)$value; |
|
| 145 | + return (string) $value; |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | public function convertToPhpValue($value, AbstractPlatform $platform) |
@@ -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 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $id = $this->createAddress(); |
| 39 | 39 | |
| 40 | - $addresses = $this->em->createQuery('SELECT a FROM ' . Address::class . ' a WHERE a.id = :id') |
|
| 40 | + $addresses = $this->em->createQuery('SELECT a FROM '.Address::class.' a WHERE a.id = :id') |
|
| 41 | 41 | ->setParameter('id', $id) |
| 42 | 42 | ->getResult(); |
| 43 | 43 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | { |
| 59 | 59 | $id = $this->createFullAddress(); |
| 60 | 60 | |
| 61 | - $addresses = $this->em->createQuery('SELECT a FROM ' . FullAddress::class . ' a WHERE a.id = :id') |
|
| 61 | + $addresses = $this->em->createQuery('SELECT a FROM '.FullAddress::class.' a WHERE a.id = :id') |
|
| 62 | 62 | ->setParameter('id', $id) |
| 63 | 63 | ->getResult(); |
| 64 | 64 | |
@@ -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 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $entity = $this->em->find(Travel::class, $entitiId); |
| 235 | 235 | |
| 236 | 236 | self::assertEquals(0, $entity->getVisitedCities()->count()); |
| 237 | - self::assertEquals($queryCount+2, $this->getCurrentQueryCount()); |
|
| 237 | + self::assertEquals($queryCount + 2, $this->getCurrentQueryCount()); |
|
| 238 | 238 | |
| 239 | 239 | $this->em->clear(); |
| 240 | 240 | |
@@ -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 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | self::assertNull($this->cache->getEntityCacheRegion(ComplexAction::class)); |
| 217 | 217 | self::assertInstanceOf(Region::class, $this->cache->getEntityCacheRegion(Token::class)); |
| 218 | 218 | |
| 219 | - $token = new Token('token-hash'); |
|
| 219 | + $token = new Token('token-hash'); |
|
| 220 | 220 | |
| 221 | 221 | $action1 = new Action('login'); |
| 222 | 222 | $action2 = new Action('logout'); |
@@ -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 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | $this->createFixture(); |
| 186 | 186 | |
| 187 | - $product = $this->em->find(ECommerceProduct::class, $this->product->getId()); |
|
| 187 | + $product = $this->em->find(ECommerceProduct::class, $this->product->getId()); |
|
| 188 | 188 | |
| 189 | 189 | $thirdFeature = new ECommerceFeature(); |
| 190 | 190 | $thirdFeature->setDescription('Model writing tutorial'); |
@@ -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 | |
@@ -155,10 +155,10 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | private $ownerO; |
| 157 | 157 | |
| 158 | - public function __construct(CascadeRemoveOrderEntityO $eO, $position=1) |
|
| 158 | + public function __construct(CascadeRemoveOrderEntityO $eO, $position = 1) |
|
| 159 | 159 | { |
| 160 | 160 | $this->position = $position; |
| 161 | - $this->ownerO= $eO; |
|
| 161 | + $this->ownerO = $eO; |
|
| 162 | 162 | $this->ownerO->addOneToManyG($this); |
| 163 | 163 | } |
| 164 | 164 | |