@@ -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 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | $user1 = $this->em->getReference(DDC1400User::class, $user1->id); |
| 55 | 55 | |
| 56 | - $this->em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser') |
|
| 56 | + $this->em->createQuery('SELECT a, s FROM '.DDC1400Article::class.' a JOIN a.userStates s WITH s.user = :activeUser') |
|
| 57 | 57 | ->setParameter('activeUser', $user1) |
| 58 | 58 | ->getResult(); |
| 59 | 59 | |
@@ -54,8 +54,8 @@ |
||
| 54 | 54 | $user1 = $this->em->getReference(DDC1400User::class, $user1->id); |
| 55 | 55 | |
| 56 | 56 | $this->em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser') |
| 57 | - ->setParameter('activeUser', $user1) |
|
| 58 | - ->getResult(); |
|
| 57 | + ->setParameter('activeUser', $user1) |
|
| 58 | + ->getResult(); |
|
| 59 | 59 | |
| 60 | 60 | $queryCount = $this->getCurrentQueryCount(); |
| 61 | 61 | |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | private function createQuery() |
| 52 | 52 | { |
| 53 | 53 | return $this->em->createQueryBuilder() |
| 54 | - ->select('car') |
|
| 55 | - ->from(GH2947Car::class, 'car') |
|
| 56 | - ->getQuery() |
|
| 57 | - ->useResultCache(true, 3600, 'foo-cache-id'); |
|
| 54 | + ->select('car') |
|
| 55 | + ->from(GH2947Car::class, 'car') |
|
| 56 | + ->getQuery() |
|
| 57 | + ->useResultCache(true, 3600, 'foo-cache-id'); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | private function createData() |
@@ -67,13 +67,13 @@ discard block |
||
| 67 | 67 | private function updateData() |
| 68 | 68 | { |
| 69 | 69 | $this->em->createQueryBuilder() |
| 70 | - ->update(GH2947Car::class, 'car') |
|
| 71 | - ->set('car.brand', ':newBrand') |
|
| 72 | - ->where('car.brand = :oldBrand') |
|
| 73 | - ->setParameter('newBrand', 'Dacia') |
|
| 74 | - ->setParameter('oldBrand', 'BMW') |
|
| 75 | - ->getQuery() |
|
| 76 | - ->execute(); |
|
| 70 | + ->update(GH2947Car::class, 'car') |
|
| 71 | + ->set('car.brand', ':newBrand') |
|
| 72 | + ->where('car.brand = :oldBrand') |
|
| 73 | + ->setParameter('newBrand', 'Dacia') |
|
| 74 | + ->setParameter('oldBrand', 'BMW') |
|
| 75 | + ->getQuery() |
|
| 76 | + ->execute(); |
|
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | 79 | |
@@ -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\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 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | if (Type::hasType('ddc3192_currency_code')) { |
| 22 | 22 | $this->fail( |
| 23 | - 'Type ddc3192_currency_code exists for testing DDC-3192 only, ' . |
|
| 23 | + 'Type ddc3192_currency_code exists for testing DDC-3192 only, '. |
|
| 24 | 24 | 'but it has already been registered for some reason' |
| 25 | 25 | ); |
| 26 | 26 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $this->em->close(); |
| 58 | 58 | |
| 59 | 59 | $query = $this->em->createQuery(); |
| 60 | - $query->setDQL('SELECT t FROM ' . DDC3192Transaction::class . ' t WHERE t.id = ?1'); |
|
| 60 | + $query->setDQL('SELECT t FROM '.DDC3192Transaction::class.' t WHERE t.id = ?1'); |
|
| 61 | 61 | $query->setParameter(1, $transaction->id); |
| 62 | 62 | |
| 63 | 63 | $resultByQuery = $query->getSingleResult(); |
@@ -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 | |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | $this->addresses = $addresses; |
| 166 | 166 | |
| 167 | - $addresses->map(function ($address) use ($self) { |
|
| 167 | + $addresses->map(function($address) use ($self) { |
|
| 168 | 168 | $address->user = $self; |
| 169 | 169 | }); |
| 170 | 170 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | $this->pets = $pets; |
| 177 | 177 | |
| 178 | - $pets->map(function ($pet) use ($self) { |
|
| 178 | + $pets->map(function($pet) use ($self) { |
|
| 179 | 179 | $pet->owner = $self; |
| 180 | 180 | }); |
| 181 | 181 | } |
@@ -50,19 +50,19 @@ |
||
| 50 | 50 | $this->em->clear(); |
| 51 | 51 | |
| 52 | 52 | $result = $this->em->createQueryBuilder() |
| 53 | - ->select('p') |
|
| 54 | - ->from(DDC3170ProductJoined::class, 'p') |
|
| 55 | - ->getQuery() |
|
| 56 | - ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT); |
|
| 53 | + ->select('p') |
|
| 54 | + ->from(DDC3170ProductJoined::class, 'p') |
|
| 55 | + ->getQuery() |
|
| 56 | + ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT); |
|
| 57 | 57 | |
| 58 | 58 | self::assertCount(1, $result); |
| 59 | 59 | self::assertContainsOnly(DDC3170ProductJoined::class, $result); |
| 60 | 60 | |
| 61 | 61 | $result = $this->em->createQueryBuilder() |
| 62 | - ->select('p') |
|
| 63 | - ->from(DDC3170ProductSingleTable::class, 'p') |
|
| 64 | - ->getQuery() |
|
| 65 | - ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT); |
|
| 62 | + ->select('p') |
|
| 63 | + ->from(DDC3170ProductSingleTable::class, 'p') |
|
| 64 | + ->getQuery() |
|
| 65 | + ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT); |
|
| 66 | 66 | |
| 67 | 67 | self::assertCount(1, $result); |
| 68 | 68 | self::assertContainsOnly(DDC3170ProductSingleTable::class, $result); |
@@ -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\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 | |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | try { |
| 17 | 17 | $this->schemaTool->createSchema( |
| 18 | 18 | [ |
| 19 | - $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity1'), |
|
| 20 | - $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity2'), |
|
| 19 | + $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity1'), |
|
| 20 | + $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity2'), |
|
| 21 | 21 | ] |
| 22 | 22 | ); |
| 23 | 23 | } catch (\Exception $exc) { |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | $e1 = $this->loadFixture(); |
| 46 | 46 | $e2 = $e1->getMyEntity2(); |
| 47 | - $e = $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', $e2); |
|
| 47 | + $e = $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', $e2); |
|
| 48 | 48 | |
| 49 | - self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity1', $e); |
|
| 50 | - self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity2', $e->getMyEntity2()); |
|
| 49 | + self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity1', $e); |
|
| 50 | + self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity2', $e->getMyEntity2()); |
|
| 51 | 51 | self::assertEquals('Foo', $e->getMyEntity2()->getValue()); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function testinvalidIdentifierBindingEntityException() |
| 59 | 59 | { |
| 60 | - $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo')); |
|
| 60 | + $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo')); |
|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | |
@@ -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 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | // step 1 |
| 44 | 44 | $page = $this->em |
| 45 | - ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
| 45 | + ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
| 46 | 46 | ->setParameter('id', $id) |
| 47 | 47 | ->getOneOrNullResult(); |
| 48 | 48 | |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | { |
| 31 | 31 | $qb = $this->em->createQueryBuilder(); |
| 32 | 32 | $qb->from(DDC1225_TestEntity1::class, 'te1') |
| 33 | - ->select('te1') |
|
| 34 | - ->where('te1.testEntity2 = ?1') |
|
| 35 | - ->setParameter(1, 0); |
|
| 33 | + ->select('te1') |
|
| 34 | + ->where('te1.testEntity2 = ?1') |
|
| 35 | + ->setParameter(1, 0); |
|
| 36 | 36 | |
| 37 | 37 | self::assertSQLEquals( |
| 38 | 38 | 'SELECT t0."test_entity2_id" AS c0 FROM "te1" t0 WHERE t0."test_entity2_id" = ?', |
@@ -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\Ticket; |
| 6 | 6 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $product->addBuyer($user); |
| 36 | 36 | |
| 37 | 37 | $this->em->getUnitOfWork() |
| 38 | - ->computeChangeSets(); |
|
| 38 | + ->computeChangeSets(); |
|
| 39 | 39 | |
| 40 | 40 | $this->em->persist($product); |
| 41 | 41 | $this->em->flush(); |
@@ -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\Ticket; |
| 6 | 6 | |