@@ -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 | |
@@ -40,9 +40,9 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | class Ticket2481Product |
| 42 | 42 | { |
| 43 | - /** |
|
| 44 | - * @ORM\Id @ORM\Column(type="integer") |
|
| 45 | - * @ORM\GeneratedValue(strategy="AUTO") |
|
| 46 | - */ |
|
| 47 | - public $id; |
|
| 43 | + /** |
|
| 44 | + * @ORM\Id @ORM\Column(type="integer") |
|
| 45 | + * @ORM\GeneratedValue(strategy="AUTO") |
|
| 46 | + */ |
|
| 47 | + public $id; |
|
| 48 | 48 | } |
@@ -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 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $dql = $q->getDQL(); |
| 25 | 25 | |
| 26 | 26 | // Show difference between expected and actual queries on error |
| 27 | - self::assertEquals("SELECT _a FROM " . __NAMESPACE__ . "\DDC1757A _a, " . __NAMESPACE__ . "\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d", |
|
| 27 | + self::assertEquals("SELECT _a FROM ".__NAMESPACE__."\DDC1757A _a, ".__NAMESPACE__."\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d", |
|
| 28 | 28 | $dql, |
| 29 | 29 | "Wrong DQL query"); |
| 30 | 30 | } |
@@ -1,5 +1,5 @@ |
||
| 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 | |
@@ -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->em->getClassMetadata(Address::class), |
| 32 | 32 | ] |
| 33 | 33 | ); |
| 34 | - } catch(\Exception $e) { |
|
| 34 | + } catch (\Exception $e) { |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | $user = new User(); |
@@ -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 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $userClone = $this->em->merge($userClone); |
| 63 | 63 | |
| 64 | 64 | // Back in managed world I would expect to have my phonenumbers back but they aren't! |
| 65 | - // Remember I didn't touch (and probably didn't need) them at all while in detached mode. |
|
| 65 | + // Remember I didn't touch (and probably didn't need) them at all while in detached mode. |
|
| 66 | 66 | self::assertEquals(4, count($userClone->getPhonenumbers()), 'Phonenumbers are not available anymore'); |
| 67 | 67 | |
| 68 | 68 | // This works fine as long as cmUser::groups doesn't cascade "merge" |
@@ -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 | |
@@ -91,13 +91,13 @@ discard block |
||
| 91 | 91 | $user->username = 'lukacho'; |
| 92 | 92 | $user->status = 'developer'; |
| 93 | 93 | |
| 94 | - foreach([1111,2222,3333,4444] as $number) { |
|
| 94 | + foreach ([1111, 2222, 3333, 4444] as $number) { |
|
| 95 | 95 | $phone = new CmsPhonenumber; |
| 96 | 96 | $phone->phonenumber = $number; |
| 97 | 97 | $user->addPhonenumber($phone); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - foreach(['Moshers', 'Headbangers'] as $groupName) { |
|
| 100 | + foreach (['Moshers', 'Headbangers'] as $groupName) { |
|
| 101 | 101 | $group = new CmsGroup; |
| 102 | 102 | $group->setName($groupName); |
| 103 | 103 | $user->addGroup($group); |
@@ -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 @@ |
||
| 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 | |