@@ -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\Mocks; |
6 | 6 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if ($config === null) { |
82 | 82 | $config = new Configuration(); |
83 | 83 | |
84 | - $config->setProxyDir(__DIR__ . '/../Proxies'); |
|
84 | + $config->setProxyDir(__DIR__.'/../Proxies'); |
|
85 | 85 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
86 | 86 | $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver()); |
87 | 87 | } |
@@ -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\Models\ECommerce; |
6 | 6 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function addProduct(ECommerceProduct $product) |
72 | 72 | { |
73 | - if (! $this->products->contains($product)) { |
|
73 | + if ( ! $this->products->contains($product)) { |
|
74 | 74 | $this->products[] = $product; |
75 | 75 | $product->addCategory($this); |
76 | 76 | } |
@@ -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\Models\ECommerce; |
6 | 6 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | public function addCategory(ECommerceCategory $category) |
135 | 135 | { |
136 | - if (! $this->categories->contains($category)) { |
|
136 | + if ( ! $this->categories->contains($category)) { |
|
137 | 137 | $this->categories[] = $category; |
138 | 138 | $category->addProduct($this); |
139 | 139 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | public function addRelated(ECommerceProduct $related) |
166 | 166 | { |
167 | - if (! $this->related->contains($related)) { |
|
167 | + if ( ! $this->related->contains($related)) { |
|
168 | 168 | $this->related[] = $related; |
169 | 169 | $related->addRelated($this); |
170 | 170 | } |
@@ -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\Models\CompositeKeyInheritance; |
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\Models\CompositeKeyInheritance; |
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\Models\CompositeKeyInheritance; |
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\Models\ManyToManyPersister; |
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\Models\CMS; |
6 | 6 | |
@@ -39,6 +39,6 @@ discard block |
||
39 | 39 | |
40 | 40 | public function __toString() |
41 | 41 | { |
42 | - return __CLASS__ . '[id=' . $this->id . ']'; |
|
42 | + return __CLASS__.'[id='.$this->id.']'; |
|
43 | 43 | } |
44 | 44 | } |
@@ -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\Query; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $this->addToAssertionCount(1); |
31 | 31 | } catch (QueryException $e) { |
32 | 32 | if ($debug) { |
33 | - echo $e->getTraceAsString() . PHP_EOL; |
|
33 | + echo $e->getTraceAsString().PHP_EOL; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | $this->fail($e->getMessage()); |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | $this->fail('No syntax errors were detected, when syntax errors were expected'); |
46 | 46 | } catch (QueryException $e) { |
47 | 47 | if ($debug) { |
48 | - echo $e->getMessage() . PHP_EOL; |
|
49 | - echo $e->getTraceAsString() . PHP_EOL; |
|
48 | + echo $e->getMessage().PHP_EOL; |
|
49 | + echo $e->getTraceAsString().PHP_EOL; |
|
50 | 50 | } |
51 | 51 | $this->addToAssertionCount(1); |
52 | 52 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | ['SELECT foo: FROM Doctrine\Tests\Models\CMS\CmsUser foo:'], |
109 | 109 | |
110 | 110 | /* Checks for invalid AbstractSchemaName */ |
111 | - ['SELECT u FROM UnknownClass u'], // unknown |
|
111 | + ['SELECT u FROM UnknownClass u'], // unknown |
|
112 | 112 | ['SELECT u FROM \Unknown\Class u'], // unknown, leading backslash |
113 | 113 | ['SELECT u FROM Unknown\\\\Class u'], // unknown, syntactically bogus (duplicate \\) |
114 | 114 | ['SELECT u FROM Unknown\Class\ u'], // unknown, syntactically bogus (trailing \) |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | */ |
575 | 575 | public function testDQLKeywordInJoinIsAllowed() |
576 | 576 | { |
577 | - self::assertValidDQL('SELECT u FROM ' . __NAMESPACE__ . '\DQLKeywordsModelUser u JOIN u.group g'); |
|
577 | + self::assertValidDQL('SELECT u FROM '.__NAMESPACE__.'\DQLKeywordsModelUser u JOIN u.group g'); |
|
578 | 578 | } |
579 | 579 | |
580 | 580 | /** |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | */ |
583 | 583 | public function testDQLKeywordInConditionIsAllowed() |
584 | 584 | { |
585 | - self::assertValidDQL('SELECT g FROM ' . __NAMESPACE__ . '\DQLKeywordsModelGroup g WHERE g.from=0'); |
|
585 | + self::assertValidDQL('SELECT g FROM '.__NAMESPACE__.'\DQLKeywordsModelGroup g WHERE g.from=0'); |
|
586 | 586 | } |
587 | 587 | |
588 | 588 | /* The exception is currently thrown in the SQLWalker, not earlier. |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | */ |
688 | 688 | public function testNewLiteralExpression() |
689 | 689 | { |
690 | - self::assertValidDQL('SELECT new ' . __NAMESPACE__ . "\\DummyStruct(u.id, 'foo', 1, true) FROM Doctrine\Tests\Models\CMS\CmsUser u"); |
|
690 | + self::assertValidDQL('SELECT new '.__NAMESPACE__."\\DummyStruct(u.id, 'foo', 1, true) FROM Doctrine\Tests\Models\CMS\CmsUser u"); |
|
691 | 691 | } |
692 | 692 | |
693 | 693 | /** |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | */ |
696 | 696 | public function testNewLiteralWithSubselectExpression() |
697 | 697 | { |
698 | - self::assertValidDQL('SELECT new ' . __NAMESPACE__ . "\\DummyStruct(u.id, 'foo', (SELECT 1 FROM Doctrine\Tests\Models\CMS\CmsUser su), true) FROM Doctrine\Tests\Models\CMS\CmsUser u"); |
|
698 | + self::assertValidDQL('SELECT new '.__NAMESPACE__."\\DummyStruct(u.id, 'foo', (SELECT 1 FROM Doctrine\Tests\Models\CMS\CmsUser su), true) FROM Doctrine\Tests\Models\CMS\CmsUser u"); |
|
699 | 699 | } |
700 | 700 | } |
701 | 701 |