Completed
Push — develop ( 7cdf30...333bf8 )
by Andreas
23s
created
tests/Doctrine/Tests/ORM/Functional/NativeQueryTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -224,13 +224,13 @@
 block discarded – undo
224 224
 
225 225
         $q = $this->em->createNativeQuery('SELECT id, name, status, phonenumber FROM cms_users INNER JOIN cms_phonenumbers ON id = user_id WHERE username = ?', $rsm);
226 226
         $q2 = $q->setSQL('foo')
227
-          ->setResultSetMapping($rsm)
228
-          ->expireResultCache(true)
229
-          ->setHint('foo', 'bar')
230
-          ->setParameter(1, 'foo')
231
-          ->setParameters($parameters)
232
-          ->setResultCacheDriver(null)
233
-          ->setResultCacheLifetime(3500);
227
+            ->setResultSetMapping($rsm)
228
+            ->expireResultCache(true)
229
+            ->setHint('foo', 'bar')
230
+            ->setParameter(1, 'foo')
231
+            ->setParameters($parameters)
232
+            ->setResultCacheDriver(null)
233
+            ->setResultCacheLifetime(3500);
234 234
 
235 235
         self::assertSame($q, $q2);
236 236
     }
Please login to merge, or discard this 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;
6 6
 
@@ -436,8 +436,8 @@  discard block
 block discarded – undo
436 436
 
437 437
         self::assertCount(1, $result);
438 438
         self::assertInstanceOf(CmsAddress::class, $result[0]);
439
-        self::assertEquals($addr->id,  $result[0]->id);
440
-        self::assertEquals($addr->city,  $result[0]->city);
439
+        self::assertEquals($addr->id, $result[0]->id);
440
+        self::assertEquals($addr->city, $result[0]->city);
441 441
         self::assertEquals($addr->country, $result[0]->country);
442 442
     }
443 443
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
         $email = new CmsEmail();
456 456
 
457
-        $email->email   = '[email protected]';
457
+        $email->email = '[email protected]';
458 458
 
459 459
         $user->setEmail($email);
460 460
 
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
         $repository = $this->em->getRepository(CmsUser::class);
606 606
         $result     = $repository
607 607
             ->createNativeNamedQuery('fetchUserPhonenumberCount')
608
-            ->setParameter(1, ['test','FabioBatSilva'])->getResult();
608
+            ->setParameter(1, ['test', 'FabioBatSilva'])->getResult();
609 609
 
610 610
         self::assertEquals(2, count($result));
611 611
         self::assertTrue(is_array($result[0]));
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
 
833 833
         $rsm->addRootEntityFromClassMetadata(CmsUser::class, 'u');
834 834
 
835
-        self::assertSQLEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4', (string)$rsm);
835
+        self::assertSQLEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4', (string) $rsm);
836 836
     }
837 837
 
838 838
     /**
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Functional/OneToManyUnidirectionalAssociationTest.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;
6 6
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -363,9 +363,9 @@  discard block
 block discarded – undo
363 363
         self::assertEquals(2, count($user->phonenumbers));
364 364
         $dql = "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1";
365 365
         $user = $this->em->createQuery($dql)
366
-                          ->setParameter(1, $user->id)
367
-                          ->setHint(Query::HINT_REFRESH, true)
368
-                          ->getSingleResult();
366
+                            ->setParameter(1, $user->id)
367
+                            ->setHint(Query::HINT_REFRESH, true)
368
+                            ->getSingleResult();
369 369
 
370 370
         self::assertEquals(1, count($user->phonenumbers));
371 371
     }
@@ -400,8 +400,8 @@  discard block
 block discarded – undo
400 400
 
401 401
         $dql = "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id = ?1";
402 402
         $user = $this->em->createQuery($dql)
403
-                          ->setParameter(1, $userId)
404
-                          ->getSingleResult();
403
+                            ->setParameter(1, $userId)
404
+                            ->getSingleResult();
405 405
 
406 406
         self::assertEquals(1, count($user->phonenumbers));
407 407
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         $user->username = 'gblanco';
186 186
         $user->status = 'developer';
187 187
 
188
-        for ($i=0; $i<3; ++$i) {
188
+        for ($i = 0; $i < 3; ++$i) {
189 189
             $phone = new CmsPhonenumber;
190 190
             $phone->phonenumber = 100 + $i;
191 191
             $user->addPhonenumber($phone);
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
         $user->username = 'gblanco';
414 414
         $user->status = 'developer';
415 415
 
416
-        for ($i=0; $i<3; ++$i) {
416
+        for ($i = 0; $i < 3; ++$i) {
417 417
             $phone = new CmsPhonenumber;
418 418
             $phone->phonenumber = 100 + $i;
419 419
             $user->addPhonenumber($phone);
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
         $user->username = 'gblanco';
454 454
         $user->status = 'developer';
455 455
 
456
-        for ($i=0; $i<3; ++$i) {
456
+        for ($i = 0; $i < 3; ++$i) {
457 457
             $phone = new CmsPhonenumber;
458 458
             $phone->phonenumber = 100 + $i;
459 459
             $user->addPhonenumber($phone);
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
         $user->username = 'gblanco';
534 534
         $user->status = 'developer';
535 535
 
536
-        for ($i=0; $i<3; ++$i) {
536
+        for ($i = 0; $i < 3; ++$i) {
537 537
             $phone = new CmsPhonenumber;
538 538
             $phone->phonenumber = 100 + $i;
539 539
             $user->addPhonenumber($phone);
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
 
1004 1004
         self::assertInstanceOf(Proxy::class, $article->user, "It IS a proxy, ...");
1005 1005
         self::assertTrue($article->user->__isInitialized(), "...but its initialized!");
1006
-        self::assertEquals($qc+2, $this->getCurrentQueryCount());
1006
+        self::assertEquals($qc + 2, $this->getCurrentQueryCount());
1007 1007
     }
1008 1008
 
1009 1009
     /**
@@ -1064,7 +1064,7 @@  discard block
 block discarded – undo
1064 1064
 
1065 1065
         $this->expectException(ORMInvalidArgumentException::class);
1066 1066
         $this->expectExceptionMessage(
1067
-            'Expected value of type "Doctrine\Tests\Models\CMS\CmsAddress" for association field ' .
1067
+            'Expected value of type "Doctrine\Tests\Models\CMS\CmsAddress" for association field '.
1068 1068
             '"Doctrine\Tests\Models\CMS\CmsUser#$address", got "Doctrine\Tests\Models\CMS\CmsUser" instead.'
1069 1069
         );
1070 1070
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
7 7
 use Doctrine\DBAL\Logging\DebugStack;
8
-use Doctrine\ORM\EntityNotFoundException;
9
-use Doctrine\ORM\Mapping\ClassMetadata;
10 8
 use Doctrine\ORM\Mapping\FetchMode;
11 9
 use Doctrine\ORM\ORMInvalidArgumentException;
12 10
 use Doctrine\ORM\PersistentCollection;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.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;
6 6
 
@@ -333,19 +333,19 @@  discard block
 block discarded – undo
333 333
 
334 334
         $repos = $this->em->getRepository(CompanyContract::class);
335 335
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
336
-        self::assertEquals(3, count($contracts), "There should be 3 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyContract'");
336
+        self::assertEquals(3, count($contracts), "There should be 3 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyContract'");
337 337
 
338 338
         $repos = $this->em->getRepository(CompanyFixContract::class);
339 339
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
340
-        self::assertEquals(1, count($contracts), "There should be 1 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFixContract'");
340
+        self::assertEquals(1, count($contracts), "There should be 1 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFixContract'");
341 341
 
342 342
         $repos = $this->em->getRepository(CompanyFlexContract::class);
343 343
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
344
-        self::assertEquals(2, count($contracts), "There should be 2 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFlexContract'");
344
+        self::assertEquals(2, count($contracts), "There should be 2 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFlexContract'");
345 345
 
346 346
         $repos = $this->em->getRepository(CompanyFlexUltraContract::class);
347 347
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
348
-        self::assertEquals(1, count($contracts), "There should be 1 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFlexUltraContract'");
348
+        self::assertEquals(1, count($contracts), "There should be 1 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFlexUltraContract'");
349 349
     }
350 350
 
351 351
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC168Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC381Test.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
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3042Test.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
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2759Test.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
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1695Test.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
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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(
Please login to merge, or discard this patch.