Completed
Push — develop ( cebe30...fee52d )
by Marco
14s
created
tests/Doctrine/Tests/ORM/Mapping/BasicInheritanceMappingTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
     {
131 131
         $this->expectException(MappingException::class);
132 132
         $this->expectExceptionMessage(
133
-              'Entity \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' has to be part of the discriminator map'
133
+                'Entity \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' has to be part of the discriminator map'
134 134
             . ' of \'Doctrine\Tests\ORM\Mapping\HierarchyBase\' to be properly mapped in the inheritance hierarchy.'
135 135
             . ' Alternatively you can make \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' an abstract class to'
136 136
             . ' avoid this exception from occurring.'
Please login to merge, or discard this 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\Mapping;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmPerformanceTestCase.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
 
26 26
         if ($this->maxRunningTime != 0 && $time > $this->maxRunningTime) {
27 27
             $this->fail(
28
-              sprintf(
28
+                sprintf(
29 29
                 'expected running time: <= %s but was: %s',
30 30
 
31 31
                 $this->maxRunningTime,
32 32
                 $time
33
-              )
33
+                )
34 34
             );
35 35
         }
36 36
     }
Please login to merge, or discard this 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;
6 6
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function setMaxRunningTime($maxRunningTime)
50 50
     {
51
-        if (! (is_int($maxRunningTime) && $maxRunningTime >= 0)) {
51
+        if ( ! (is_int($maxRunningTime) && $maxRunningTime >= 0)) {
52 52
             throw new \InvalidArgumentException;
53 53
         }
54 54
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestInit.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,28 +2,28 @@
 block discarded – undo
2 2
 /*
3 3
  * This file bootstraps the test environment.
4 4
  */
5
-declare(strict_types=1);
5
+declare(strict_types = 1);
6 6
 
7 7
 namespace Doctrine\Tests;
8 8
 
9 9
 error_reporting(E_ALL | E_STRICT);
10 10
 date_default_timezone_set('UTC');
11 11
 
12
-if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
12
+if (file_exists(__DIR__.'/../../../vendor/autoload.php')) {
13 13
     // dependencies were installed via composer - this is the main project
14
-    require __DIR__ . '/../../../vendor/autoload.php';
15
-} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
14
+    require __DIR__.'/../../../vendor/autoload.php';
15
+} elseif (file_exists(__DIR__.'/../../../../../autoload.php')) {
16 16
     // installed as a dependency in `vendor`
17
-    require __DIR__ . '/../../../../../autoload.php';
17
+    require __DIR__.'/../../../../../autoload.php';
18 18
 } else {
19 19
     throw new \Exception('Can\'t find autoload.php. Did you install dependencies via composer?');
20 20
 }
21 21
 
22
-if ( ! file_exists(__DIR__ . '/Proxies') && ! mkdir(__DIR__ . '/Proxies')) {
23
-    throw new \Exception("Could not create " . __DIR__."/Proxies Folder.");
22
+if ( ! file_exists(__DIR__.'/Proxies') && ! mkdir(__DIR__.'/Proxies')) {
23
+    throw new \Exception("Could not create ".__DIR__."/Proxies Folder.");
24 24
 }
25 25
 
26
-if ( ! file_exists(__DIR__ . '/ORM/Proxy/generated') &&  ! mkdir(__DIR__ . '/ORM/Proxy/generated')) {
27
-    throw new \Exception('Could not create ' . __DIR__ . '/ORM/Proxy/generated Folder.');
26
+if ( ! file_exists(__DIR__.'/ORM/Proxy/generated') && ! mkdir(__DIR__.'/ORM/Proxy/generated')) {
27
+    throw new \Exception('Could not create '.__DIR__.'/ORM/Proxy/generated Folder.');
28 28
 }
29 29
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTestCase.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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmFunctionalTestCase.php 2 patches
Braces   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -786,7 +786,11 @@
 block discarded – undo
786 786
             foreach ($last25queries as $i => $query) {
787 787
                 $params = array_map(
788 788
                     function($p) {
789
-                        if (is_object($p)) return get_class($p); else return var_export($p, true);
789
+                        if (is_object($p)) {
790
+                            return get_class($p);
791
+                        } else {
792
+                            return var_export($p, true);
793
+                        }
790 794
                     },
791 795
                     $query['params'] ?: []
792 796
                 );
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 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
 
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         }
412 412
 
413 413
         if (isset($this->usedModelSets['directorytree'])) {
414
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("file"));
414
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("file"));
415 415
             // MySQL doesn't know deferred deletions therefore only executing the second query gives errors.
416 416
             $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL');
417 417
             $conn->executeUpdate('DELETE FROM Directory');
@@ -504,12 +504,12 @@  discard block
 block discarded – undo
504 504
                 )
505 505
             );
506 506
 
507
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups'));
508
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-group"));
509
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-phone"));
510
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-user"));
511
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-address"));
512
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city'));
507
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups'));
508
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-group"));
509
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-phone"));
510
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-user"));
511
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-address"));
512
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city'));
513 513
         }
514 514
 
515 515
         if (isset($this->usedModelSets['vct_onetoone'])) {
@@ -644,15 +644,15 @@  discard block
 block discarded – undo
644 644
     {
645 645
         $this->setUpDBALTypes();
646 646
 
647
-        if (! isset(static::$sharedConn)) {
647
+        if ( ! isset(static::$sharedConn)) {
648 648
             static::$sharedConn = TestUtil::getConnection();
649 649
         }
650 650
 
651 651
         if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {
652 652
             if (in_array(static::$sharedConn->getDatabasePlatform()->getName(), ["mysql", "postgresql"])) {
653
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/');
653
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/');
654 654
             } elseif (static::$sharedConn->getDatabasePlatform()->getName() === "oracle") {
655
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual');
655
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual');
656 656
             }
657 657
         }
658 658
 
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
         }
663 663
 
664 664
         foreach ($this->usedModelSets as $setName => $bool) {
665
-            if (! isset(static::$tablesCreated[$setName])) {
665
+            if ( ! isset(static::$tablesCreated[$setName])) {
666 666
                 $this->setUpEntitySchema(static::$modelSets[$setName]);
667 667
 
668 668
                 static::$tablesCreated[$setName] = true;
@@ -737,8 +737,8 @@  discard block
 block discarded – undo
737 737
 
738 738
         $config->setMetadataDriverImpl(
739 739
             $mappingDriver ?? $config->newDefaultAnnotationDriver([
740
-                realpath(__DIR__ . '/Models/Cache'),
741
-                realpath(__DIR__ . '/Models/GeoNames')
740
+                realpath(__DIR__.'/Models/Cache'),
741
+                realpath(__DIR__.'/Models/GeoNames')
742 742
             ])
743 743
         );
744 744
 
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
 
816 816
             $message = "[".get_class($e)."] ".$e->getMessage().PHP_EOL.PHP_EOL."With queries:".PHP_EOL.$queries.PHP_EOL."Trace:".PHP_EOL.$traceMsg;
817 817
 
818
-            throw new \Exception($message, (int)$e->getCode(), $e);
818
+            throw new \Exception($message, (int) $e->getCode(), $e);
819 819
         }
820 820
 
821 821
         throw $e;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/EntityNotFoundExceptionTest.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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Utility/IdentifierFlattenerTest.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\Utility;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/NamingStrategyTest.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\Mapping;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/EntityListenerResolverTest.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\Mapping;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     protected function setUp()
22 22
     {
23 23
         parent::setUp();
24
-        $this->resolver  = new DefaultEntityListenerResolver();
24
+        $this->resolver = new DefaultEntityListenerResolver();
25 25
     }
26 26
 
27 27
     public function testResolve()
Please login to merge, or discard this patch.