Completed
Pull Request — master (#7046)
by Gabriel
13:08
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC371Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $this->em->flush();
44 44
         $this->em->clear();
45 45
 
46
-        $children = $this->em->createQuery('select c,p from ' . __NAMESPACE__ . '\DDC371Child c '
46
+        $children = $this->em->createQuery('select c,p from '.__NAMESPACE__.'\DDC371Child c '
47 47
                 . 'left join c.parent p where c.id = 1 and p.id = 1')
48 48
                 ->setHint(Query::HINT_REFRESH, true)
49 49
                 ->getResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC211Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
37 37
             $this->em->persist($group);
38 38
             $this->em->flush();
39 39
 
40
-            if (! $user->getGroups()->contains($group)) {
40
+            if ( ! $user->getGroups()->contains($group)) {
41 41
                 $user->getGroups()->add($group);
42 42
                 $group->getUsers()->add($user);
43 43
                 $this->em->flush();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
80 80
     {
81
-        if (! $value instanceof GH6141People) {
81
+        if ( ! $value instanceof GH6141People) {
82 82
             $value = GH6141People::get($value);
83 83
         }
84 84
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public static function get($value)
123 123
     {
124
-        if (! self::isValid($value)) {
124
+        if ( ! self::isValid($value)) {
125 125
             throw new \InvalidArgumentException();
126 126
         }
127 127
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1452Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->em->flush();
50 50
         $this->em->clear();
51 51
 
52
-        $dql = 'SELECT a, b, ba FROM ' . __NAMESPACE__ . "\DDC1452EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba";
52
+        $dql = 'SELECT a, b, ba FROM '.__NAMESPACE__."\DDC1452EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba";
53 53
         $results = $this->em->createQuery($dql)->setMaxResults(1)->getResult();
54 54
 
55 55
         self::assertSame($results[0], $results[0]->entitiesB[0]->entityAFrom);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1526Test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $entity = new DDC1526Menu;
29 29
 
30 30
             if (isset ($parents[($i % 3)])) {
31
-                $entity->parent = $parents[($i%3)];
31
+                $entity->parent = $parents[($i % 3)];
32 32
             }
33 33
 
34 34
             $this->em->persist($entity);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $this->em->clear();
39 39
 
40 40
         $dql = 'SELECT m, c
41
-            FROM ' . __NAMESPACE__ . "\DDC1526Menu m
41
+            FROM ' . __NAMESPACE__."\DDC1526Menu m
42 42
             LEFT JOIN m.children c";
43 43
         $menus = $this->em->createQuery($dql)->getResult();
44 44
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1335Test.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function testDql()
30 30
     {
31
-        $dql      = 'SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.id';
31
+        $dql      = 'SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.id';
32 32
         $query    = $this->em->createQuery($dql);
33 33
         $result   = $query->getResult();
34 34
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         self::assertArrayHasKey(2, $result);
38 38
         self::assertArrayHasKey(3, $result);
39 39
 
40
-        $dql      = 'SELECT u, p FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id';
40
+        $dql      = 'SELECT u, p FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id';
41 41
         $query    = $this->em->createQuery($dql);
42 42
         $result   = $query->getResult();
43 43
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         self::assertArrayHasKey(1, $result);
80 80
         self::assertArrayHasKey(2, $result);
81 81
         self::assertArrayHasKey(3, $result);
82
-        self::assertEquals('SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.id', $dql);
82
+        self::assertEquals('SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.id', $dql);
83 83
     }
84 84
 
85 85
     public function testIndexByUnique()
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         self::assertArrayHasKey('[email protected]', $result);
95 95
         self::assertArrayHasKey('[email protected]', $result);
96 96
         self::assertArrayHasKey('[email protected]', $result);
97
-        self::assertEquals('SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email', $dql);
97
+        self::assertEquals('SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email', $dql);
98 98
     }
99 99
 
100 100
     public function testIndexWithJoin()
@@ -128,14 +128,14 @@  discard block
 block discarded – undo
128 128
         self::assertArrayHasKey(8, $result['[email protected]']->phones->toArray());
129 129
         self::assertArrayHasKey(9, $result['[email protected]']->phones->toArray());
130 130
 
131
-        self::assertEquals('SELECT u, p FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id', $dql);
131
+        self::assertEquals('SELECT u, p FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id', $dql);
132 132
     }
133 133
 
134 134
     private function loadFixture()
135 135
     {
136
-        $p1 = ['11 xxxx-xxxx','11 yyyy-yyyy','11 zzzz-zzzz'];
137
-        $p2 = ['22 xxxx-xxxx','22 yyyy-yyyy','22 zzzz-zzzz'];
138
-        $p3 = ['33 xxxx-xxxx','33 yyyy-yyyy','33 zzzz-zzzz'];
136
+        $p1 = ['11 xxxx-xxxx', '11 yyyy-yyyy', '11 zzzz-zzzz'];
137
+        $p2 = ['22 xxxx-xxxx', '22 yyyy-yyyy', '22 zzzz-zzzz'];
138
+        $p3 = ['33 xxxx-xxxx', '33 yyyy-yyyy', '33 zzzz-zzzz'];
139 139
 
140 140
         $u1 = new DDC1335User('[email protected]', 'Foo', $p1);
141 141
         $u2 = new DDC1335User('[email protected]', 'Bar', $p2);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     public function __construct($user, $number)
214 214
     {
215
-        $this->user     = $user;
216
-        $this->numericalValue   = $number;
215
+        $this->user = $user;
216
+        $this->numericalValue = $number;
217 217
     }
218 218
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1757Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OrderedCollectionTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@
 block discarded – undo
104 104
         $routeId = $this->createPersistedRouteWithLegs();
105 105
 
106 106
         $route = $this->em->createQuery("SELECT r, l FROM Doctrine\Tests\Models\Routing\RoutingRoute r JOIN r.legs l WHERE r.id = ?1")
107
-                           ->setParameter(1, $routeId)
108
-                           ->getSingleResult();
107
+                            ->setParameter(1, $routeId)
108
+                            ->getSingleResult();
109 109
 
110 110
         self::assertCount(2, $route->legs);
111 111
         self::assertEquals('Berlin', $route->legs[0]->fromLocation->getName());
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function testIssue2059()
32 32
     {
33
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
33
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
34 34
             $this->markTestSkipped('Platform does not support foreign keys.');
35 35
         }
36 36
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function testLoadMetadataFromDatabase()
54 54
     {
55
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
55
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
56 56
             $this->markTestSkipped('Platform does not support foreign keys.');
57 57
         }
58 58
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
     public function testLoadMetadataWithForeignKeyFromDatabase()
92 92
     {
93
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
93
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
94 94
             $this->markTestSkipped('Platform does not support foreign keys.');
95 95
         }
96 96
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
     public function testDetectManyToManyTables()
125 125
     {
126
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
126
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
127 127
             $this->markTestSkipped('Platform does not support foreign keys.');
128 128
         }
129 129
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
     public function testLoadMetadataFromDatabaseDetail()
165 165
     {
166
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
166
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
167 167
             $this->markTestSkipped('Platform does not support foreign keys.');
168 168
         }
169 169
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
         $table->addColumn('column_index1', 'string');
180 180
         $table->addColumn('column_index2', 'string');
181
-        $table->addIndex(['column_index1','column_index2'], 'index1');
181
+        $table->addIndex(['column_index1', 'column_index2'], 'index1');
182 182
 
183 183
         $table->addColumn('column_unique_index1', 'string');
184 184
         $table->addColumn('column_unique_index2', 'string');
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         // FIXME: Condition here is fugly.
204 204
         // NOTE: PostgreSQL and SQL SERVER do not support UNSIGNED integer
205
-        if (! $this->em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform and
205
+        if ( ! $this->em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform and
206 206
              ! $this->em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) {
207 207
             self::assertNotNull($metadata->getProperty('columnUnsigned'));
208 208
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
         self::assertNotEmpty($indexes['index1']['columns']);
246 246
         self::assertEquals(
247
-            ['column_index1','column_index2'],
247
+            ['column_index1', 'column_index2'],
248 248
             $indexes['index1']['columns']
249 249
         );
250 250
 
Please login to merge, or discard this patch.