Passed
Pull Request — master (#7122)
by Michael
12:26
created
tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     public function testBulkUpdateIssueDDC368() : void
301 301
     {
302 302
         $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
303
-                  ->execute();
303
+                    ->execute();
304 304
 
305 305
         $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
306 306
                             ->getResult();
@@ -314,9 +314,9 @@  discard block
 block discarded – undo
314 314
     public function testBulkUpdateNonScalarParameterDDC1341() : void
315 315
     {
316 316
         $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
317
-                  ->setParameter(0, new \DateTime())
318
-                  ->setParameter(1, 'IT')
319
-                  ->execute();
317
+                    ->setParameter(0, new \DateTime())
318
+                    ->setParameter(1, 'IT')
319
+                    ->execute();
320 320
 
321 321
         self::addToAssertionCount(1);
322 322
     }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 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
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $this->em->clear();
51 51
 
52
-        $query = $this->em->createQuery('select p from ' . CompanyPerson::class . ' p order by p.name desc');
52
+        $query = $this->em->createQuery('select p from '.CompanyPerson::class.' p order by p.name desc');
53 53
 
54 54
         $entities = $query->getResult();
55 55
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $this->em->clear();
66 66
 
67
-        $query = $this->em->createQuery('select p from ' . CompanyEmployee::class . ' p');
67
+        $query = $this->em->createQuery('select p from '.CompanyEmployee::class.' p');
68 68
 
69 69
         $entities = $query->getResult();
70 70
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $this->em->clear();
85 85
 
86
-        $query = $this->em->createQuery('update ' . CompanyEmployee::class . " p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
86
+        $query = $this->em->createQuery('update '.CompanyEmployee::class." p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
87 87
 
88 88
         $query->setParameter(1, 'NewName', 'string');
89 89
         $query->setParameter(2, 'NewDepartment');
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         self::assertEquals(1, $numUpdated);
96 96
 
97
-        $query = $this->em->createQuery('delete from ' . CompanyPerson::class . ' p');
97
+        $query = $this->em->createQuery('delete from '.CompanyPerson::class.' p');
98 98
 
99 99
         $numDeleted = $query->execute();
100 100
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $this->em->flush();
170 170
         $this->em->clear();
171 171
 
172
-        $query = $this->em->createQuery('select p, s from ' . CompanyPerson::class . ' p join p.spouse s where p.name=\'Mary Smith\'');
172
+        $query = $this->em->createQuery('select p, s from '.CompanyPerson::class.' p join p.spouse s where p.name=\'Mary Smith\'');
173 173
 
174 174
         $result = $query->getResult();
175 175
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         $this->em->clear();
203 203
 
204
-        $query = $this->em->createQuery('select p, f from ' . CompanyPerson::class . ' p join p.friends f where p.name=?1');
204
+        $query = $this->em->createQuery('select p, f from '.CompanyPerson::class.' p join p.friends f where p.name=?1');
205 205
 
206 206
         $query->setParameter(1, 'Roman');
207 207
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         $this->em->flush();
268 268
         $this->em->clear();
269 269
 
270
-        $q = $this->em->createQuery('select a from ' . CompanyEvent::class . ' a where a.id = ?1');
270
+        $q = $this->em->createQuery('select a from '.CompanyEvent::class.' a where a.id = ?1');
271 271
 
272 272
         $q->setParameter(1, $event1->getId());
273 273
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
         $this->em->clear();
280 280
 
281
-        $q = $this->em->createQuery('select a from ' . CompanyOrganization::class . ' a where a.id = ?1');
281
+        $q = $this->em->createQuery('select a from '.CompanyOrganization::class.' a where a.id = ?1');
282 282
 
283 283
         $q->setParameter(1, $org->getId());
284 284
 
@@ -299,10 +299,10 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function testBulkUpdateIssueDDC368() : void
301 301
     {
302
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
302
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.salary = 1')
303 303
                   ->execute();
304 304
 
305
-        $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
305
+        $result = $this->em->createQuery('SELECT count(p.id) FROM '.CompanyEmployee::class.' p WHERE p.salary = 1')
306 306
                             ->getResult();
307 307
 
308 308
         self::assertGreaterThan(0, $result);
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      */
314 314
     public function testBulkUpdateNonScalarParameterDDC1341() : void
315 315
     {
316
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
316
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.startDate = ?0 WHERE p.department = ?1')
317 317
                   ->setParameter(0, new \DateTime())
318 318
                   ->setParameter(1, 'IT')
319 319
                   ->execute();
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         $this->em->flush();
372 372
         $this->em->clear();
373 373
 
374
-        $dqlManager = $this->em->createQuery('SELECT m FROM ' . CompanyManager::class . ' m WHERE m.spouse = ?1')
374
+        $dqlManager = $this->em->createQuery('SELECT m FROM '.CompanyManager::class.' m WHERE m.spouse = ?1')
375 375
                                 ->setParameter(1, $person->getId())
376 376
                                 ->getSingleResult();
377 377
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php 1 patch
Spacing   +5 added lines, -5 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\Locking;
6 6
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $article = new CmsArticle();
91 91
 
92 92
         $this->expectException(\InvalidArgumentException::class);
93
-        $this->expectExceptionMessage('Entity ' . CmsArticle::class);
93
+        $this->expectExceptionMessage('Entity '.CmsArticle::class);
94 94
 
95 95
         $this->em->lock($article, LockMode::OPTIMISTIC, $article->version + 1);
96 96
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $writeLockSql = $this->em->getConnection()->getDatabasePlatform()->getWriteLockSQL();
141 141
 
142
-        if (! $writeLockSql) {
142
+        if ( ! $writeLockSql) {
143 143
             $this->markTestSkipped('Database Driver has no Write Lock support.');
144 144
         }
145 145
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $readLockSql = $this->em->getConnection()->getDatabasePlatform()->getReadLockSQL();
176 176
 
177
-        if (! $readLockSql) {
177
+        if ( ! $readLockSql) {
178 178
             $this->markTestSkipped('Database Driver has no Write Lock support.');
179 179
         }
180 180
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function testLockOptimisticNonVersionedThrowsExceptionInDQL() : void
209 209
     {
210
-        $dql = 'SELECT u FROM ' . CmsUser::class . " u WHERE u.username = 'gblanco'";
210
+        $dql = 'SELECT u FROM '.CmsUser::class." u WHERE u.username = 'gblanco'";
211 211
 
212 212
         $this->expectException(OptimisticLockException::class);
213 213
         $this->expectExceptionMessage('The optimistic lock on an entity failed.');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php 1 patch
Spacing   +6 added lines, -6 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\Locking;
6 6
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     protected function setUp() : void
25 25
     {
26
-        if (! class_exists('GearmanClient', false)) {
26
+        if ( ! class_exists('GearmanClient', false)) {
27 27
             $this->markTestSkipped('pecl/gearman is required for this test to run.');
28 28
         }
29 29
 
@@ -140,13 +140,13 @@  discard block
 block discarded – undo
140 140
 
141 141
         self::assertTrue(
142 142
             $this->maxRunTime > $forTime,
143
-            'Because of locking this tests should have run at least ' . $forTime . ' seconds, ' .
144
-            'but only did for ' . $this->maxRunTime . ' seconds.'
143
+            'Because of locking this tests should have run at least '.$forTime.' seconds, '.
144
+            'but only did for '.$this->maxRunTime.' seconds.'
145 145
         );
146 146
         self::assertTrue(
147 147
             $this->maxRunTime < $notLongerThan,
148
-            'The longest task should not run longer than ' . $notLongerThan . ' seconds, ' .
149
-            'but did for ' . $this->maxRunTime . ' seconds.'
148
+            'The longest task should not run longer than '.$notLongerThan.' seconds, '.
149
+            'but did for '.$this->maxRunTime.' seconds.'
150 150
         );
151 151
     }
152 152
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php 1 patch
Spacing   +12 added lines, -12 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
 
@@ -344,8 +344,8 @@  discard block
 block discarded – undo
344 344
             'locale' => ['value' => 'en', 'type' => DBALType::STRING],
345 345
         ];
346 346
 
347
-        self::assertEquals(serialize($parameters), '' . $filter);
348
-        self::assertEquals('' . $filter, '' . $filter2);
347
+        self::assertEquals(serialize($parameters), ''.$filter);
348
+        self::assertEquals(''.$filter, ''.$filter2);
349 349
     }
350 350
 
351 351
     public function testQueryCacheDependsOnFilters() : void
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
             return '';
1117 1117
         }
1118 1118
 
1119
-        return $targetTableAlias . '.deleted = 0';
1119
+        return $targetTableAlias.'.deleted = 0';
1120 1120
     }
1121 1121
 }
1122 1122
 
@@ -1124,11 +1124,11 @@  discard block
 block discarded – undo
1124 1124
 {
1125 1125
     public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
1126 1126
     {
1127
-        if (! in_array('LocaleAware', $targetEntity->getReflectionClass()->getInterfaceNames(), true)) {
1127
+        if ( ! in_array('LocaleAware', $targetEntity->getReflectionClass()->getInterfaceNames(), true)) {
1128 1128
             return '';
1129 1129
         }
1130 1130
 
1131
-        return $targetTableAlias . '.locale = ' . $this->getParameter('locale'); // getParam uses connection to quote the value.
1131
+        return $targetTableAlias.'.locale = '.$this->getParameter('locale'); // getParam uses connection to quote the value.
1132 1132
     }
1133 1133
 }
1134 1134
 
@@ -1140,7 +1140,7 @@  discard block
 block discarded – undo
1140 1140
             return '';
1141 1141
         }
1142 1142
 
1143
-        return $targetTableAlias . '.country = ' . $this->getParameter('country'); // getParam uses connection to quote the value.
1143
+        return $targetTableAlias.'.country = '.$this->getParameter('country'); // getParam uses connection to quote the value.
1144 1144
     }
1145 1145
 }
1146 1146
 
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
             return '';
1153 1153
         }
1154 1154
 
1155
-        return $targetTableAlias . '.name LIKE ' . $this->getParameter('prefix'); // getParam uses connection to quote the value.
1155
+        return $targetTableAlias.'.name LIKE '.$this->getParameter('prefix'); // getParam uses connection to quote the value.
1156 1156
     }
1157 1157
 }
1158 1158
 
@@ -1164,7 +1164,7 @@  discard block
 block discarded – undo
1164 1164
             return '';
1165 1165
         }
1166 1166
 
1167
-        return $targetTableAlias . '.topic = ' . $this->getParameter('topic'); // getParam uses connection to quote the value.
1167
+        return $targetTableAlias.'.topic = '.$this->getParameter('topic'); // getParam uses connection to quote the value.
1168 1168
     }
1169 1169
 }
1170 1170
 
@@ -1176,7 +1176,7 @@  discard block
 block discarded – undo
1176 1176
             return '';
1177 1177
         }
1178 1178
 
1179
-        return $targetTableAlias . '.name LIKE ' . $this->getParameter('name');
1179
+        return $targetTableAlias.'.name LIKE '.$this->getParameter('name');
1180 1180
     }
1181 1181
 }
1182 1182
 
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
             return '';
1189 1189
         }
1190 1190
 
1191
-        return $targetTableAlias . '."completed" = ' . $this->getParameter('completed');
1191
+        return $targetTableAlias.'."completed" = '.$this->getParameter('completed');
1192 1192
     }
1193 1193
 }
1194 1194
 
@@ -1200,6 +1200,6 @@  discard block
 block discarded – undo
1200 1200
             return '';
1201 1201
         }
1202 1202
 
1203
-        return $targetTableAlias . '.id = ' . $this->getParameter('id');
1203
+        return $targetTableAlias.'.id = '.$this->getParameter('id');
1204 1204
     }
1205 1205
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/QueryBuilderTest.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -272,12 +272,12 @@  discard block
 block discarded – undo
272 272
     {
273 273
         $qb = $this->em->createQueryBuilder();
274 274
         $qb->select('u')
275
-           ->from(CmsUser::class, 'u')
276
-           ->where('u.id = :uid')
277
-           ->orWhere('u.id = :uid2')
278
-           ->andWhere('u.id = :uid3')
279
-           ->orWhere('u.name = :name1', 'u.name = :name2')
280
-           ->andWhere('u.name <> :noname');
275
+            ->from(CmsUser::class, 'u')
276
+            ->where('u.id = :uid')
277
+            ->orWhere('u.id = :uid2')
278
+            ->andWhere('u.id = :uid3')
279
+            ->orWhere('u.name = :name1', 'u.name = :name2')
280
+            ->andWhere('u.name <> :noname');
281 281
 
282 282
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE (((u.id = :uid OR u.id = :uid2) AND u.id = :uid3) OR u.name = :name1 OR u.name = :name2) AND u.name <> :noname');
283 283
     }
@@ -286,9 +286,9 @@  discard block
 block discarded – undo
286 286
     {
287 287
         $qb = $this->em->createQueryBuilder();
288 288
         $qb->select('u')
289
-           ->from(CmsUser::class, 'u')
290
-           ->where('u.id = :uid')
291
-           ->andWhere($qb->expr()->in('u.id', [1, 2, 3]));
289
+            ->from(CmsUser::class, 'u')
290
+            ->where('u.id = :uid')
291
+            ->andWhere($qb->expr()->in('u.id', [1, 2, 3]));
292 292
 
293 293
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid AND u.id IN(1, 2, 3)');
294 294
     }
@@ -297,9 +297,9 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $qb = $this->em->createQueryBuilder();
299 299
         $qb->select('u')
300
-           ->from(CmsUser::class, 'u')
301
-           ->where('u.id = :uid')
302
-           ->orWhere($qb->expr()->in('u.id', [1, 2, 3]));
300
+            ->from(CmsUser::class, 'u')
301
+            ->where('u.id = :uid')
302
+            ->orWhere($qb->expr()->in('u.id', [1, 2, 3]));
303 303
 
304 304
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid OR u.id IN(1, 2, 3)');
305 305
     }
@@ -308,9 +308,9 @@  discard block
 block discarded – undo
308 308
     {
309 309
         $qb = $this->em->createQueryBuilder();
310 310
         $qb->select('u')
311
-           ->from(CmsUser::class, 'u')
312
-           ->where('u.id = :uid')
313
-           ->andWhere($qb->expr()->notIn('u.id', [1, 2, 3]));
311
+            ->from(CmsUser::class, 'u')
312
+            ->where('u.id = :uid')
313
+            ->andWhere($qb->expr()->notIn('u.id', [1, 2, 3]));
314 314
 
315 315
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid AND u.id NOT IN(1, 2, 3)');
316 316
     }
@@ -319,9 +319,9 @@  discard block
 block discarded – undo
319 319
     {
320 320
         $qb = $this->em->createQueryBuilder();
321 321
         $qb->select('u')
322
-           ->from(CmsUser::class, 'u')
323
-           ->where('u.id = :uid')
324
-           ->orWhere($qb->expr()->notIn('u.id', [1, 2, 3]));
322
+            ->from(CmsUser::class, 'u')
323
+            ->where('u.id = :uid')
324
+            ->orWhere($qb->expr()->notIn('u.id', [1, 2, 3]));
325 325
 
326 326
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid OR u.id NOT IN(1, 2, 3)');
327 327
     }
@@ -617,8 +617,8 @@  discard block
 block discarded – undo
617 617
     {
618 618
         $qb = $this->em->createQueryBuilder();
619 619
         $qb->select('u')
620
-           ->from(CmsUser::class, 'u')
621
-           ->where($qb->expr()->orX('u.username = :username', 'u.username = :username2'));
620
+            ->from(CmsUser::class, 'u')
621
+            ->where($qb->expr()->orX('u.username = :username', 'u.username = :username2'));
622 622
 
623 623
         $parameters = new ArrayCollection();
624 624
         $parameters->add(new Parameter('username', 'jwage'));
@@ -634,8 +634,8 @@  discard block
 block discarded – undo
634 634
     {
635 635
         $qb = $this->em->createQueryBuilder();
636 636
         $qb->select('u')
637
-           ->from(CmsUser::class, 'u')
638
-           ->where('u.id = :id');
637
+            ->from(CmsUser::class, 'u')
638
+            ->where('u.id = :id');
639 639
 
640 640
         $parameters = new ArrayCollection();
641 641
         $parameters->add(new Parameter('id', 1));
@@ -684,8 +684,8 @@  discard block
 block discarded – undo
684 684
     {
685 685
         $qb = $this->em->createQueryBuilder();
686 686
         $qb->select('u')
687
-           ->from(CmsUser::class, 'u')
688
-           ->orWhere('u.id = :uid', $qb->expr()->eq('u.id', ':uid2'));
687
+            ->from(CmsUser::class, 'u')
688
+            ->orWhere('u.id = :uid', $qb->expr()->eq('u.id', ':uid2'));
689 689
 
690 690
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid OR u.id = :uid2');
691 691
     }
@@ -698,8 +698,8 @@  discard block
 block discarded – undo
698 698
         $orExpr->add($qb->expr()->in('u.id', [1]));
699 699
 
700 700
         $qb->select('u')
701
-           ->from(CmsUser::class, 'u')
702
-           ->where($orExpr);
701
+            ->from(CmsUser::class, 'u')
702
+            ->where($orExpr);
703 703
 
704 704
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid3 OR u.id IN(1)');
705 705
     }
@@ -708,8 +708,8 @@  discard block
 block discarded – undo
708 708
     {
709 709
         $qb = $this->em->createQueryBuilder();
710 710
         $qb->select('u')
711
-           ->from(CmsUser::class, 'u')
712
-           ->where($qb->expr()->in('u.name', ['one', 'two', 'three']));
711
+            ->from(CmsUser::class, 'u')
712
+            ->where($qb->expr()->in('u.name', ['one', 'two', 'three']));
713 713
 
714 714
         self::assertValidQueryBuilder($qb, "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.name IN('one', 'two', 'three')");
715 715
 
@@ -723,8 +723,8 @@  discard block
 block discarded – undo
723 723
         $qb   = $this->em->createQueryBuilder();
724 724
         $expr = $this->em->getExpressionBuilder();
725 725
         $qb->select('u')
726
-           ->from(CmsUser::class, 'u')
727
-           ->where($expr->in('u.name', [$expr->literal('one'), $expr->literal('two'), $expr->literal('three')]));
726
+            ->from(CmsUser::class, 'u')
727
+            ->where($expr->in('u.name', [$expr->literal('one'), $expr->literal('two'), $expr->literal('three')]));
728 728
 
729 729
         self::assertValidQueryBuilder($qb, "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.name IN('one', 'two', 'three')");
730 730
 
@@ -742,8 +742,8 @@  discard block
 block discarded – undo
742 742
 
743 743
         $qb = $this->em->createQueryBuilder();
744 744
         $qb->select('u')
745
-           ->from(CmsUser::class, 'u')
746
-           ->where($orExpr);
745
+            ->from(CmsUser::class, 'u')
746
+            ->where($orExpr);
747 747
 
748 748
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = :uid3 OR NOT(u.id IN(1))');
749 749
     }
@@ -754,8 +754,8 @@  discard block
 block discarded – undo
754 754
         $expr = $this->em->getExpressionBuilder();
755 755
 
756 756
         $qb->select('u')
757
-           ->from(CmsUser::class, 'u')
758
-           ->where($expr->gt('u.id', $expr->all('select a.id from Doctrine\Tests\Models\CMS\CmsArticle a')));
757
+            ->from(CmsUser::class, 'u')
758
+            ->where($expr->gt('u.id', $expr->all('select a.id from Doctrine\Tests\Models\CMS\CmsArticle a')));
759 759
 
760 760
         self::assertValidQueryBuilder($qb, 'SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id > ALL(select a.id from Doctrine\Tests\Models\CMS\CmsArticle a)');
761 761
     }
@@ -1120,9 +1120,9 @@  discard block
 block discarded – undo
1120 1120
     public function testRebuildsFromParts() : void
1121 1121
     {
1122 1122
         $qb = $this->em->createQueryBuilder()
1123
-          ->select('u')
1124
-          ->from(CmsUser::class, 'u')
1125
-          ->join('u.article', 'a');
1123
+            ->select('u')
1124
+            ->from(CmsUser::class, 'u')
1125
+            ->join('u.article', 'a');
1126 1126
 
1127 1127
         $dqlParts = $qb->getDQLParts();
1128 1128
         $dql      = $qb->getDQL();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/EntityManagerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     public function testCreateQueryBuilderAliasValid() : void
93 93
     {
94 94
         $q  = $this->em->createQueryBuilder()
95
-             ->select('u')->from(CmsUser::class, 'u');
95
+                ->select('u')->from(CmsUser::class, 'u');
96 96
         $q2 = clone $q;
97 97
 
98 98
         self::assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $q->getQuery()->getDql());
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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;
6 6
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     public function testThrowsExceptionOnNonObjectValues($methodName) : void
139 139
     {
140 140
         $this->expectException(ORMInvalidArgumentException::class);
141
-        $this->expectExceptionMessage('EntityManager#' . $methodName . '() expects parameter 1 to be an entity object, NULL given.');
141
+        $this->expectExceptionMessage('EntityManager#'.$methodName.'() expects parameter 1 to be an entity object, NULL given.');
142 142
 
143 143
         $this->em->{$methodName}(null);
144 144
     }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         self::assertSame(
184 184
             $value,
185
-            $this->em->transactional(function ($em) use ($value) {
185
+            $this->em->transactional(function($em) use ($value) {
186 186
                 return $value;
187 187
             })
188 188
         );
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
     public function testTransactionalReThrowsThrowables() : void
216 216
     {
217 217
         try {
218
-            $this->em->transactional(function () {
219
-                (function (array $value) {
218
+            $this->em->transactional(function() {
219
+                (function(array $value) {
220 220
                     // this only serves as an IIFE that throws a `TypeError`
221 221
                 })(null);
222 222
             });
Please login to merge, or discard this patch.