@@ -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 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | try { |
| 79 | 79 | // exception depending on the underlying Database Driver |
| 80 | 80 | $this->em->flush(); |
| 81 | - } catch(\Exception $e) { |
|
| 81 | + } catch (\Exception $e) { |
|
| 82 | 82 | $exceptionThrown = true; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -167,12 +167,12 @@ |
||
| 167 | 167 | $this->em->clear(); |
| 168 | 168 | |
| 169 | 169 | $dateTimeDb = $this->em->createQueryBuilder() |
| 170 | - ->select('d') |
|
| 171 | - ->from(DateTimeModel::class, 'd') |
|
| 172 | - ->where('d.datetime = ?1') |
|
| 173 | - ->setParameter(1, $date, DBALType::DATETIME) |
|
| 174 | - ->getQuery() |
|
| 175 | - ->getSingleResult(); |
|
| 170 | + ->select('d') |
|
| 171 | + ->from(DateTimeModel::class, 'd') |
|
| 172 | + ->where('d.datetime = ?1') |
|
| 173 | + ->setParameter(1, $date, DBALType::DATETIME) |
|
| 174 | + ->getQuery() |
|
| 175 | + ->getSingleResult(); |
|
| 176 | 176 | |
| 177 | 177 | self::assertInstanceOf(\DateTime::class, $dateTimeDb->datetime); |
| 178 | 178 | self::assertSame('2009-10-02 20:10:52', $dateTimeDb->datetime->format('Y-m-d H:i:s')); |
@@ -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 | $this->em->flush(); |
| 32 | 32 | $this->em->clear(); |
| 33 | 33 | |
| 34 | - $dql = 'SELECT d FROM ' . DecimalModel::class . ' d'; |
|
| 34 | + $dql = 'SELECT d FROM '.DecimalModel::class.' d'; |
|
| 35 | 35 | $decimal = $this->em->createQuery($dql)->getSingleResult(); |
| 36 | 36 | |
| 37 | 37 | self::assertSame('0.15', $decimal->decimal); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $this->em->flush(); |
| 52 | 52 | $this->em->clear(); |
| 53 | 53 | |
| 54 | - $dql = 'SELECT b FROM ' . BooleanModel::class . ' b WHERE b.booleanField = true'; |
|
| 54 | + $dql = 'SELECT b FROM '.BooleanModel::class.' b WHERE b.booleanField = true'; |
|
| 55 | 55 | $bool = $this->em->createQuery($dql)->getSingleResult(); |
| 56 | 56 | |
| 57 | 57 | self::assertTrue($bool->booleanField); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $this->em->flush(); |
| 62 | 62 | $this->em->clear(); |
| 63 | 63 | |
| 64 | - $dql = 'SELECT b FROM ' . BooleanModel::class . ' b WHERE b.booleanField = false'; |
|
| 64 | + $dql = 'SELECT b FROM '.BooleanModel::class.' b WHERE b.booleanField = false'; |
|
| 65 | 65 | $bool = $this->em->createQuery($dql)->getSingleResult(); |
| 66 | 66 | |
| 67 | 67 | self::assertFalse($bool->booleanField); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->em->flush(); |
| 78 | 78 | $this->em->clear(); |
| 79 | 79 | |
| 80 | - $dql = 'SELECT s FROM ' . SerializationModel::class . ' s'; |
|
| 80 | + $dql = 'SELECT s FROM '.SerializationModel::class.' s'; |
|
| 81 | 81 | $serialize = $this->em->createQuery($dql)->getSingleResult(); |
| 82 | 82 | |
| 83 | 83 | self::assertSame(["foo" => "bar", "bar" => "baz"], $serialize->array); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $this->em->flush(); |
| 93 | 93 | $this->em->clear(); |
| 94 | 94 | |
| 95 | - $dql = 'SELECT s FROM ' . SerializationModel::class . ' s'; |
|
| 95 | + $dql = 'SELECT s FROM '.SerializationModel::class.' s'; |
|
| 96 | 96 | $serialize = $this->em->createQuery($dql)->getSingleResult(); |
| 97 | 97 | |
| 98 | 98 | self::assertInstanceOf('stdClass', $serialize->object); |
@@ -112,9 +112,9 @@ discard block |
||
| 112 | 112 | $this->putTripAroundEurope(); |
| 113 | 113 | |
| 114 | 114 | $dql = 'SELECT t, p, c ' |
| 115 | - . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 116 | - . 'INNER JOIN t.pois p ' |
|
| 117 | - . 'INNER JOIN p.country c' |
|
| 115 | + . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 116 | + . 'INNER JOIN t.pois p ' |
|
| 117 | + . 'INNER JOIN p.country c' |
|
| 118 | 118 | ; |
| 119 | 119 | |
| 120 | 120 | $tours = $this->em->createQuery($dql)->getResult(); |
@@ -134,9 +134,9 @@ discard block |
||
| 134 | 134 | $this->putTripAroundEurope(); |
| 135 | 135 | |
| 136 | 136 | $dql = 'SELECT t ' |
| 137 | - . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 138 | - . ', Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' |
|
| 139 | - . 'WHERE p MEMBER OF t.pois' |
|
| 137 | + . 'FROM Doctrine\Tests\Models\Navigation\NavTour t ' |
|
| 138 | + . ', Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' |
|
| 139 | + . 'WHERE p MEMBER OF t.pois' |
|
| 140 | 140 | ; |
| 141 | 141 | |
| 142 | 142 | $query = $this->em->createQuery($dql); |
@@ -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\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 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $this->em->getClassMetadata(DDC381Entity::class), |
| 19 | 19 | ] |
| 20 | 20 | ); |
| 21 | - } catch(\Exception $e) { |
|
| 21 | + } catch (\Exception $e) { |
|
| 22 | 22 | |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -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 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $this |
| 32 | 32 | ->em |
| 33 | 33 | ->createQuery( |
| 34 | - 'SELECT f, b FROM ' . __NAMESPACE__ . '\DDC3042Foo f JOIN ' . __NAMESPACE__ . '\DDC3042Bar b WITH 1 = 1' |
|
| 34 | + 'SELECT f, b FROM '.__NAMESPACE__.'\DDC3042Foo f JOIN '.__NAMESPACE__.'\DDC3042Bar b WITH 1 = 1' |
|
| 35 | 35 | ) |
| 36 | 36 | ->getSQL() |
| 37 | 37 | ); |
@@ -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 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $this->em->getClassMetadata(DDC2759MetadataCategory::class), |
| 28 | 28 | ] |
| 29 | 29 | ); |
| 30 | - } catch(\Exception $e) { |
|
| 30 | + } catch (\Exception $e) { |
|
| 31 | 31 | return; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -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 | - $dql = "SELECT n.smallText, n.publishDate FROM " . __NAMESPACE__ . "\\DDC1695News n"; |
|
| 25 | + $dql = "SELECT n.smallText, n.publishDate FROM ".__NAMESPACE__."\\DDC1695News n"; |
|
| 26 | 26 | $sql = $this->em->createQuery($dql)->getSQL(); |
| 27 | 27 | |
| 28 | 28 | self::assertEquals( |
@@ -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 | |