Completed
Push — master ( f4c848...d31188 )
by Jonathan
24s queued 17s
created
tests/Doctrine/Tests/ORM/Utility/NormalizeIdentifierTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         self::assertSame(array_keys($expectedId), array_keys($id));
62 62
 
63 63
         foreach ($expectedId as $field => $value) {
64
-            if (! is_object($value)) {
64
+            if ( ! is_object($value)) {
65 65
                 self::assertSame($id[$field], $value);
66 66
 
67 67
                 continue;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Utility/StaticClassNameConverterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $className      = array_pop($namespaceParts);
46 46
         $namespace      = implode('\\', $namespaceParts);
47 47
 
48
-        eval('namespace ' . $namespace . ' { class ' . $className . ' {} }');
48
+        eval('namespace '.$namespace.' { class '.$className.' {} }');
49 49
 
50 50
         self::assertSame($expectedClassName, StaticClassNameConverter::getClass(new $givenClassName()));
51 51
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmFunctionalTestCase.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         $conn = static::$sharedConn;
346 346
 
347 347
         // In case test is skipped, tearDown is called, but no setup may have run
348
-        if (! $conn) {
348
+        if ( ! $conn) {
349 349
             return;
350 350
         }
351 351
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
         }
420 420
 
421 421
         if (isset($this->usedModelSets['directorytree'])) {
422
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('file'));
422
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('file'));
423 423
             // MySQL doesn't know deferred deletions therefore only executing the second query gives errors.
424 424
             $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL');
425 425
             $conn->executeUpdate('DELETE FROM Directory');
@@ -512,12 +512,12 @@  discard block
 block discarded – undo
512 512
                 )
513 513
             );
514 514
 
515
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups'));
516
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-group'));
517
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-phone'));
518
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-user'));
519
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-address'));
520
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city'));
515
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups'));
516
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-group'));
517
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-phone'));
518
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-user'));
519
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-address'));
520
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city'));
521 521
         }
522 522
 
523 523
         if (isset($this->usedModelSets['vct_onetoone'])) {
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
         $classes = [];
631 631
 
632 632
         foreach ($classNames as $className) {
633
-            if (! isset(static::$entityTablesCreated[$className])) {
633
+            if ( ! isset(static::$entityTablesCreated[$className])) {
634 634
                 static::$entityTablesCreated[$className] = true;
635 635
                 $classes[]                               = $this->em->getClassMetadata($className);
636 636
             }
@@ -650,25 +650,25 @@  discard block
 block discarded – undo
650 650
     {
651 651
         $this->setUpDBALTypes();
652 652
 
653
-        if (! isset(static::$sharedConn)) {
653
+        if ( ! isset(static::$sharedConn)) {
654 654
             static::$sharedConn = TestUtil::getConnection();
655 655
         }
656 656
 
657 657
         if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {
658 658
             if (in_array(static::$sharedConn->getDatabasePlatform()->getName(), ['mysql', 'postgresql'], true)) {
659
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/');
659
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/');
660 660
             } elseif (static::$sharedConn->getDatabasePlatform()->getName() === 'oracle') {
661
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual');
661
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual');
662 662
             }
663 663
         }
664 664
 
665
-        if (! $this->em) {
665
+        if ( ! $this->em) {
666 666
             $this->em         = $this->getEntityManager();
667 667
             $this->schemaTool = new SchemaTool($this->em);
668 668
         }
669 669
 
670 670
         foreach ($this->usedModelSets as $setName => $bool) {
671
-            if (! isset(static::$tablesCreated[$setName])) {
671
+            if ( ! isset(static::$tablesCreated[$setName])) {
672 672
                 $this->setUpEntitySchema(static::$modelSets[$setName]);
673 673
 
674 674
                 static::$tablesCreated[$setName] = true;
@@ -743,8 +743,8 @@  discard block
 block discarded – undo
743 743
 
744 744
         $config->setMetadataDriverImpl(
745 745
             $mappingDriver ?? $config->newDefaultAnnotationDriver([
746
-                realpath(__DIR__ . '/Models/Cache'),
747
-                realpath(__DIR__ . '/Models/GeoNames'),
746
+                realpath(__DIR__.'/Models/Cache'),
747
+                realpath(__DIR__.'/Models/GeoNames'),
748 748
             ])
749 749
         );
750 750
 
@@ -794,13 +794,13 @@  discard block
 block discarded – undo
794 794
 
795 795
             foreach ($last25queries as $i => $query) {
796 796
                 $params = array_map(
797
-                    function ($p) {
797
+                    function($p) {
798 798
                         return is_object($p) ? get_class($p) : var_export($p, true);
799 799
                     },
800 800
                     $query['params'] ?: []
801 801
                 );
802 802
 
803
-                $queries .= $i . ". SQL: '" . $query['sql'] . "' Params: " . implode(', ', $params) . PHP_EOL;
803
+                $queries .= $i.". SQL: '".$query['sql']."' Params: ".implode(', ', $params).PHP_EOL;
804 804
             }
805 805
 
806 806
             $trace    = $e->getTrace();
@@ -813,11 +813,11 @@  discard block
 block discarded – undo
813 813
                         break;
814 814
                     }
815 815
 
816
-                    $traceMsg .= $part['file'] . ':' . $part['line'] . PHP_EOL;
816
+                    $traceMsg .= $part['file'].':'.$part['line'].PHP_EOL;
817 817
                 }
818 818
             }
819 819
 
820
-            $message = '[' . get_class($e) . '] ' . $e->getMessage() . PHP_EOL . PHP_EOL . 'With queries:' . PHP_EOL . $queries . PHP_EOL . 'Trace:' . PHP_EOL . $traceMsg;
820
+            $message = '['.get_class($e).'] '.$e->getMessage().PHP_EOL.PHP_EOL.'With queries:'.PHP_EOL.$queries.PHP_EOL.'Trace:'.PHP_EOL.$traceMsg;
821 821
 
822 822
             throw new \Exception($message, (int) $e->getCode(), $e);
823 823
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Cache/Attraction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
     public function addInfo(AttractionInfo $info)
89 89
     {
90
-        if (! $this->infos->contains($info)) {
90
+        if ( ! $this->infos->contains($info)) {
91 91
             $this->infos->add($info);
92 92
         }
93 93
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Cache/Traveler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
     public function addTravel(Travel $item)
90 90
     {
91
-        if (! $this->travels->contains($item)) {
91
+        if ( ! $this->travels->contains($item)) {
92 92
             $this->travels->add($item);
93 93
         }
94 94
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/CMS/CmsComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
 
36 36
     public function __toString()
37 37
     {
38
-        return __CLASS__ . '[id=' . $this->id . ']';
38
+        return __CLASS__.'[id='.$this->id.']';
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Company/CompanyPerson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
     public function addFriend(CompanyPerson $friend)
86 86
     {
87
-        if (! $this->friends->contains($friend)) {
87
+        if ( ! $this->friends->contains($friend)) {
88 88
             $this->friends->add($friend);
89 89
             $friend->addFriend($this);
90 90
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/ECommerce/ECommerceCategory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
     public function addProduct(ECommerceProduct $product)
68 68
     {
69
-        if (! $this->products->contains($product)) {
69
+        if ( ! $this->products->contains($product)) {
70 70
             $this->products[] = $product;
71 71
             $product->addCategory($this);
72 72
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/ECommerce/ECommerceProduct.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     public function addCategory(ECommerceCategory $category)
133 133
     {
134
-        if (! $this->categories->contains($category)) {
134
+        if ( ! $this->categories->contains($category)) {
135 135
             $this->categories[] = $category;
136 136
             $category->addProduct($this);
137 137
         }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
     public function addRelated(ECommerceProduct $related)
164 164
     {
165
-        if (! $this->related->contains($related)) {
165
+        if ( ! $this->related->contains($related)) {
166 166
             $this->related[] = $related;
167 167
             $related->addRelated($this);
168 168
         }
Please login to merge, or discard this patch.