Completed
Pull Request — master (#7046)
by Gabriel
12:09
created
tests/Doctrine/Tests/OrmFunctionalTestCase.php 1 patch
Spacing   +20 added lines, -20 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;
6 6
 
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         $conn = static::$sharedConn;
337 337
 
338 338
         // In case test is skipped, tearDown is called, but no setup may have run
339
-        if (! $conn) {
339
+        if ( ! $conn) {
340 340
             return;
341 341
         }
342 342
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         }
411 411
 
412 412
         if (isset($this->usedModelSets['directorytree'])) {
413
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('file'));
413
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('file'));
414 414
             // MySQL doesn't know deferred deletions therefore only executing the second query gives errors.
415 415
             $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL');
416 416
             $conn->executeUpdate('DELETE FROM Directory');
@@ -503,12 +503,12 @@  discard block
 block discarded – undo
503 503
                 )
504 504
             );
505 505
 
506
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups'));
507
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-group'));
508
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-phone'));
509
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-user'));
510
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-address'));
511
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city'));
506
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups'));
507
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-group'));
508
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-phone'));
509
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-user'));
510
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-address'));
511
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city'));
512 512
         }
513 513
 
514 514
         if (isset($this->usedModelSets['vct_onetoone'])) {
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
         $classes = [];
623 623
 
624 624
         foreach ($classNames as $className) {
625
-            if (! isset(static::$entityTablesCreated[$className])) {
625
+            if ( ! isset(static::$entityTablesCreated[$className])) {
626 626
                 static::$entityTablesCreated[$className] = true;
627 627
                 $classes[] = $this->em->getClassMetadata($className);
628 628
             }
@@ -643,25 +643,25 @@  discard block
 block discarded – undo
643 643
     {
644 644
         $this->setUpDBALTypes();
645 645
 
646
-        if (! isset(static::$sharedConn)) {
646
+        if ( ! isset(static::$sharedConn)) {
647 647
             static::$sharedConn = TestUtil::getConnection();
648 648
         }
649 649
 
650 650
         if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {
651 651
             if (in_array(static::$sharedConn->getDatabasePlatform()->getName(), ['mysql', 'postgresql'], true)) {
652
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/');
652
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/');
653 653
             } elseif (static::$sharedConn->getDatabasePlatform()->getName() === 'oracle') {
654
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual');
654
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual');
655 655
             }
656 656
         }
657 657
 
658
-        if (! $this->em) {
658
+        if ( ! $this->em) {
659 659
             $this->em = $this->getEntityManager();
660 660
             $this->schemaTool = new SchemaTool($this->em);
661 661
         }
662 662
 
663 663
         foreach ($this->usedModelSets as $setName => $bool) {
664
-            if (! isset(static::$tablesCreated[$setName])) {
664
+            if ( ! isset(static::$tablesCreated[$setName])) {
665 665
                 $this->setUpEntitySchema(static::$modelSets[$setName]);
666 666
 
667 667
                 static::$tablesCreated[$setName] = true;
@@ -736,8 +736,8 @@  discard block
 block discarded – undo
736 736
 
737 737
         $config->setMetadataDriverImpl(
738 738
             $mappingDriver ?? $config->newDefaultAnnotationDriver([
739
-                realpath(__DIR__ . '/Models/Cache'),
740
-                realpath(__DIR__ . '/Models/GeoNames'),
739
+                realpath(__DIR__.'/Models/Cache'),
740
+                realpath(__DIR__.'/Models/GeoNames'),
741 741
             ])
742 742
         );
743 743
 
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
                     $query['params'] ?: []
796 796
                 );
797 797
 
798
-                $queries .= $i . ". SQL: '" . $query['sql'] . "' Params: " . implode(', ', $params) . PHP_EOL;
798
+                $queries .= $i.". SQL: '".$query['sql']."' Params: ".implode(', ', $params).PHP_EOL;
799 799
             }
800 800
 
801 801
             $trace = $e->getTrace();
@@ -808,11 +808,11 @@  discard block
 block discarded – undo
808 808
                         break;
809 809
                     }
810 810
 
811
-                    $traceMsg .= $part['file'] . ':' . $part['line'] . PHP_EOL;
811
+                    $traceMsg .= $part['file'].':'.$part['line'].PHP_EOL;
812 812
                 }
813 813
             }
814 814
 
815
-            $message = '[' . get_class($e) . '] ' . $e->getMessage() . PHP_EOL . PHP_EOL . 'With queries:' . PHP_EOL . $queries . PHP_EOL . 'Trace:' . PHP_EOL . $traceMsg;
815
+            $message = '['.get_class($e).'] '.$e->getMessage().PHP_EOL.PHP_EOL.'With queries:'.PHP_EOL.$queries.PHP_EOL.'Trace:'.PHP_EOL.$traceMsg;
816 816
 
817 817
             throw new \Exception($message, (int) $e->getCode(), $e);
818 818
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2579Test.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
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     public function __construct(DDC2579Id $id)
129 129
     {
130
-        $this->associationId  = $id;
130
+        $this->associationId = $id;
131 131
     }
132 132
 }
133 133
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/NativeQueryTest.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;
6 6
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 
453 453
         $email = new CmsEmail();
454 454
 
455
-        $email->email   = '[email protected]';
455
+        $email->email = '[email protected]';
456 456
 
457 457
         $user->setEmail($email);
458 458
 
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
         $repository = $this->em->getRepository(CmsUser::class);
604 604
         $result     = $repository
605 605
             ->createNativeNamedQuery('fetchUserPhonenumberCount')
606
-            ->setParameter(1, ['test','FabioBatSilva'])->getResult();
606
+            ->setParameter(1, ['test', 'FabioBatSilva'])->getResult();
607 607
 
608 608
         self::assertCount(2, $result);
609 609
         self::assertInternalType('array', $result[0]);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/QueryBuilderTest.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;
6 6
 
@@ -1040,7 +1040,7 @@  discard block
 block discarded – undo
1040 1040
     {
1041 1041
         $qb = $this->em->createQueryBuilder()
1042 1042
             ->add('select', 'u')
1043
-            ->add('from', CmsUser::class . ' u');
1043
+            ->add('from', CmsUser::class.' u');
1044 1044
 
1045 1045
         self::assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $qb->getDQL());
1046 1046
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Sequencing/SequenceGeneratorTest.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\Sequencing;
6 6
 
Please login to merge, or discard this patch.