Test Failed
Push — develop ( 10da16...c19264 )
by Luís
63:31
created
lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php 4 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
  */
42 42
 abstract class AbstractEntityPersister implements CachedEntityPersister
43 43
 {
44
-     /**
45
-     * @var \Doctrine\ORM\UnitOfWork
46
-     */
44
+        /**
45
+         * @var \Doctrine\ORM\UnitOfWork
46
+         */
47 47
     protected $uow;
48 48
 
49 49
     /**
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected $class;
63 63
 
64
-     /**
65
-     * @var array
66
-     */
64
+        /**
65
+         * @var array
66
+         */
67 67
     protected $queuedCache = [];
68 68
 
69 69
     /**
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     /**
286 286
      * Generates a string of currently query
287 287
      *
288
-     * @param array   $query
288
+     * @param string   $query
289 289
      * @param string  $criteria
290 290
      * @param array   $orderBy
291 291
      * @param integer $limit
@@ -352,6 +352,7 @@  discard block
 block discarded – undo
352 352
 
353 353
     /**
354 354
      * {@inheritdoc}
355
+     * @param string $fieldName
355 356
      */
356 357
     public function getOwningTable($fieldName)
357 358
     {
@@ -376,6 +377,7 @@  discard block
 block discarded – undo
376 377
 
377 378
     /**
378 379
      * {@inheritdoc}
380
+     * @param \Doctrine\Tests\Models\Cache\Country $entity
379 381
      */
380 382
     public function insert($entity)
381 383
     {
@@ -676,7 +678,7 @@  discard block
 block discarded – undo
676 678
     }
677 679
 
678 680
     /**
679
-     * @param array $association
681
+     * @param AssociationMetadata $association
680 682
      * @param array $ownerId
681 683
      *
682 684
      * @return CollectionCacheKey
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -34,12 +34,10 @@
 block discarded – undo
34 34
 use Doctrine\ORM\Mapping\FetchMode;
35 35
 use Doctrine\ORM\Mapping\ManyToManyAssociationMetadata;
36 36
 use Doctrine\ORM\Mapping\OneToManyAssociationMetadata;
37
-use Doctrine\ORM\Mapping\OneToOneAssociationMetadata;
38 37
 use Doctrine\ORM\Mapping\ToOneAssociationMetadata;
39 38
 use Doctrine\ORM\PersistentCollection;
40 39
 use Doctrine\ORM\EntityManagerInterface;
41 40
 use Doctrine\ORM\Persisters\Entity\EntityPersister;
42
-
43 41
 use Doctrine\Common\Util\ClassUtils;
44 42
 use Doctrine\Common\Collections\Criteria;
45 43
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Cache\Persister\Entity;
24 24
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             ? $this->persister->expandCriteriaParameters($criteria)
300 300
             : $this->persister->expandParameters($criteria);
301 301
 
302
-        return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset);
302
+        return sha1($query.serialize($params).serialize($orderBy).$limit.$offset);
303 303
     }
304 304
 
305 305
     /**
Please login to merge, or discard this patch.
ORM/Cache/Persister/Collection/ReadOnlyCachedCollectionPersister.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
  */
31 31
 class ReadOnlyCachedCollectionPersister extends NonStrictReadWriteCachedCollectionPersister
32 32
 {
33
-     /**
34
-     * {@inheritdoc}
35
-     */
33
+        /**
34
+         * {@inheritdoc}
35
+         */
36 36
     public function update(PersistentCollection $collection)
37 37
     {
38 38
         if ($collection->isDirty() && $collection->getSnapshot()) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Cache\Persister\Collection;
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
  */
38 38
 abstract class AbstractCollectionPersister implements CachedCollectionPersister
39 39
 {
40
-     /**
41
-     * @var \Doctrine\ORM\UnitOfWork
42
-     */
40
+        /**
41
+         * @var \Doctrine\ORM\UnitOfWork
42
+         */
43 43
     protected $uow;
44 44
 
45 45
     /**
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected $association;
69 69
 
70
-     /**
71
-     * @var array
72
-     */
70
+        /**
71
+         * @var array
72
+         */
73 73
     protected $queuedCache = [];
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Cache\Persister\Collection;
24 24
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         $targetHydrator  = $targetPersister->getEntityHydrator();
181 181
 
182 182
         // Only preserve ordering if association configured it
183
-        if (! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
183
+        if ( ! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
184 184
             // Elements may be an array or a Collection
185 185
             $elements = array_values(is_array($elements) ? $elements : $elements->getValues());
186 186
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CacheConfiguration.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function getCacheLogger()
75 75
     {
76
-         return $this->cacheLogger;
76
+            return $this->cacheLogger;
77 77
     }
78 78
 
79 79
     /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             );
116 116
         }
117 117
 
118
-         return $this->queryValidator;
118
+            return $this->queryValidator;
119 119
     }
120 120
 
121 121
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Cache;
24 24
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6402Test.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use Doctrine\Tests\Models\Quote\Address;
6 6
 use Doctrine\Tests\Models\Quote\City;
7 7
 use Doctrine\Tests\Models\Quote\FullAddress;
8
-use Doctrine\Tests\Models\Quote\Group;
9
-use Doctrine\Tests\Models\Quote\Phone;
10 8
 use Doctrine\Tests\Models\Quote\User;
11 9
 use Doctrine\Tests\OrmFunctionalTestCase;
12 10
 
Please login to merge, or discard this 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\Ticket;
6 6
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $id = $this->createAddress();
39 39
 
40
-        $addresses = $this->em->createQuery('SELECT a FROM ' . Address::class . ' a WHERE a.id = :id')
40
+        $addresses = $this->em->createQuery('SELECT a FROM '.Address::class.' a WHERE a.id = :id')
41 41
             ->setParameter('id', $id)
42 42
             ->getResult();
43 43
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $id = $this->createFullAddress();
60 60
 
61
-        $addresses = $this->em->createQuery('SELECT a FROM ' . FullAddress::class . ' a WHERE a.id = :id')
61
+        $addresses = $this->em->createQuery('SELECT a FROM '.FullAddress::class.' a WHERE a.id = :id')
62 62
             ->setParameter('id', $id)
63 63
             ->getResult();
64 64
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryTest.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Common\Cache\ArrayCache;
6 6
 use Doctrine\Common\Collections\ArrayCollection;
7
-
8 7
 use Doctrine\ORM\EntityManager;
9 8
 use Doctrine\ORM\Internal\Hydration\IterableResult;
10 9
 use Doctrine\ORM\Query\Parameter;
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -88,18 +88,18 @@
 block discarded – undo
88 88
     {
89 89
         $q = $this->em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a");
90 90
         $q2 = $q->expireQueryCache(true)
91
-          ->setQueryCacheLifetime(3600)
92
-          ->setQueryCacheDriver(null)
93
-          ->expireResultCache(true)
94
-          ->setHint('foo', 'bar')
95
-          ->setHint('bar', 'baz')
96
-          ->setParameter(1, 'bar')
97
-          ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
98
-          ->setResultCacheDriver(null)
99
-          ->setResultCacheId('foo')
100
-          ->setDQL('foo')
101
-          ->setFirstResult(10)
102
-          ->setMaxResults(10);
91
+            ->setQueryCacheLifetime(3600)
92
+            ->setQueryCacheDriver(null)
93
+            ->expireResultCache(true)
94
+            ->setHint('foo', 'bar')
95
+            ->setHint('bar', 'baz')
96
+            ->setParameter(1, 'bar')
97
+            ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
98
+            ->setResultCacheDriver(null)
99
+            ->setResultCacheId('foo')
100
+            ->setDQL('foo')
101
+            ->setFirstResult(10)
102
+            ->setMaxResults(10);
103 103
 
104 104
         self::assertSame($q2, $q);
105 105
     }
Please login to merge, or discard this 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\Query;
6 6
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             9 => "St Julien"
167 167
         ];
168 168
 
169
-        $query  = $this->em
169
+        $query = $this->em
170 170
                 ->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)")
171 171
                 ->setParameter('cities', $cities);
172 172
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function testProcessParameterValueClassMetadata()
184 184
     {
185
-        $query  = $this->em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
185
+        $query = $this->em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
186 186
         self::assertEquals(
187 187
             CmsAddress::class,
188 188
             $query->processParameterValue($this->em->getClassMetadata(CmsAddress::class))
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Parser.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      * declarations (from ... x join ... y join ... z ...) appear in the query
414 414
      * as the hydration process relies on that order for proper operation.
415 415
      *
416
-     * @param AST\SelectStatement|AST\DeleteStatement|AST\UpdateStatement $AST
416
+     * @param AST\SelectStatement $AST
417 417
      *
418 418
      * @return void
419 419
      */
@@ -1617,7 +1617,7 @@  discard block
 block discarded – undo
1617 1617
      * accessible is "FROM", prohibiting an easy implementation without larger
1618 1618
      * changes.}
1619 1619
      *
1620
-     * @return \Doctrine\ORM\Query\AST\SubselectIdentificationVariableDeclaration |
1620
+     * @return AST\IdentificationVariableDeclaration |
1621 1621
      *         \Doctrine\ORM\Query\AST\IdentificationVariableDeclaration
1622 1622
      */
1623 1623
     public function SubselectIdentificationVariableDeclaration()
@@ -1755,7 +1755,7 @@  discard block
 block discarded – undo
1755 1755
     /**
1756 1756
      * JoinAssociationDeclaration ::= JoinAssociationPathExpression ["AS"] AliasIdentificationVariable [IndexBy]
1757 1757
      *
1758
-     * @return \Doctrine\ORM\Query\AST\JoinAssociationPathExpression
1758
+     * @return AST\JoinAssociationDeclaration
1759 1759
      */
1760 1760
     public function JoinAssociationDeclaration()
1761 1761
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
 namespace Doctrine\ORM\Query;
23 23
 
24 24
 use Doctrine\ORM\Mapping\AssociationMetadata;
25
-use Doctrine\ORM\Mapping\ClassMetadata;
26 25
 use Doctrine\ORM\Mapping\FieldMetadata;
27 26
 use Doctrine\ORM\Mapping\ToOneAssociationMetadata;
28 27
 use Doctrine\ORM\Query;
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM\Query;
23 23
 
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
         $tokenStr = substr($dql, (int) $token['position'], $length);
488 488
 
489 489
         // Building informative message
490
-        $message = 'line 0, col ' . $tokenPos . " near '" . $tokenStr . "': Error: " . $message;
490
+        $message = 'line 0, col '.$tokenPos." near '".$tokenStr."': Error: ".$message;
491 491
 
492 492
         throw QueryException::semanticalError($message, QueryException::dqlError($this->query->getDQL()));
493 493
     }
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
             // If the namespace is not given then assumes the first FROM entity namespace
635 635
             if (strpos($className, '\\') === false && ! class_exists($className) && strpos($fromClassName, '\\') !== false) {
636 636
                 $namespace  = substr($fromClassName, 0, strrpos($fromClassName, '\\'));
637
-                $fqcn       = $namespace . '\\' . $className;
637
+                $fqcn       = $namespace.'\\'.$className;
638 638
 
639 639
                 if (class_exists($fqcn)) {
640 640
                     $expression->className  = $fqcn;
@@ -683,13 +683,13 @@  discard block
 block discarded – undo
683 683
                 }
684 684
 
685 685
                 $this->semanticalError(
686
-                    "There is no mapped field named '$field' on class " . $class->getClassName() . ".", $deferredItem['token']
686
+                    "There is no mapped field named '$field' on class ".$class->getClassName().".", $deferredItem['token']
687 687
                 );
688 688
             }
689 689
 
690 690
             if (array_intersect($class->identifier, $expr->partialFieldSet) != $class->identifier) {
691 691
                 $this->semanticalError(
692
-                    "The partial field selection of class " . $class->getClassName() . " must contain the identifier.",
692
+                    "The partial field selection of class ".$class->getClassName()." must contain the identifier.",
693 693
                     $deferredItem['token']
694 694
                 );
695 695
             }
@@ -758,9 +758,9 @@  discard block
 block discarded – undo
758 758
             $property = $class->getProperty($field);
759 759
 
760 760
             // Check if field or association exists
761
-            if (! $property) {
761
+            if ( ! $property) {
762 762
                 $this->semanticalError(
763
-                    'Class ' . $class->getClassName() . ' has no field or association named ' . $field,
763
+                    'Class '.$class->getClassName().' has no field or association named '.$field,
764 764
                     $deferredItem['token']
765 765
                 );
766 766
             }
@@ -799,8 +799,8 @@  discard block
 block discarded – undo
799 799
                 // Build the error message
800 800
                 $semanticalError  = 'Invalid PathExpression. ';
801 801
                 $semanticalError .= (count($expectedStringTypes) == 1)
802
-                    ? 'Must be a ' . $expectedStringTypes[0] . '.'
803
-                    : implode(' or ', $expectedStringTypes) . ' expected.';
802
+                    ? 'Must be a '.$expectedStringTypes[0].'.'
803
+                    : implode(' or ', $expectedStringTypes).' expected.';
804 804
 
805 805
                 $this->semanticalError($semanticalError, $deferredItem['token']);
806 806
             }
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 
970 970
             list($namespaceAlias, $simpleClassName) = explode(':', $this->lexer->token['value']);
971 971
 
972
-            $schemaName = $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
972
+            $schemaName = $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName;
973 973
         }
974 974
 
975 975
         return $schemaName;
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
      */
985 985
     private function validateAbstractSchemaName($schemaName)
986 986
     {
987
-        if (! (class_exists($schemaName, true) || interface_exists($schemaName, true))) {
987
+        if ( ! (class_exists($schemaName, true) || interface_exists($schemaName, true))) {
988 988
             $this->semanticalError("Class '$schemaName' is not defined.", $this->lexer->token);
989 989
         }
990 990
     }
@@ -1040,7 +1040,7 @@  discard block
 block discarded – undo
1040 1040
 
1041 1041
         if ( ! isset($this->queryComponents[$identVariable])) {
1042 1042
             $this->semanticalError(
1043
-                'Identification Variable ' . $identVariable .' used in join path expression but was not defined before.'
1043
+                'Identification Variable '.$identVariable.' used in join path expression but was not defined before.'
1044 1044
             );
1045 1045
         }
1046 1046
 
@@ -1053,8 +1053,8 @@  discard block
 block discarded – undo
1053 1053
         $qComp = $this->queryComponents[$identVariable];
1054 1054
         $class = $qComp['metadata'];
1055 1055
 
1056
-        if (! (($property = $class->getProperty($field)) !== null && $property instanceof AssociationMetadata)) {
1057
-            $this->semanticalError('Class ' . $class->getClassName() . ' has no association named ' . $field);
1056
+        if ( ! (($property = $class->getProperty($field)) !== null && $property instanceof AssociationMetadata)) {
1057
+            $this->semanticalError('Class '.$class->getClassName().' has no association named '.$field);
1058 1058
         }
1059 1059
 
1060 1060
         return new AST\JoinAssociationPathExpression($identVariable, $field);
@@ -2476,7 +2476,7 @@  discard block
 block discarded – undo
2476 2476
         // Peek beyond the matching closing parenthesis ')'
2477 2477
         $peek = $this->peekBeyondClosingParenthesis();
2478 2478
 
2479
-        if (in_array($peek['value'], ["=",  "<", "<=", "<>", ">", ">=", "!="]) ||
2479
+        if (in_array($peek['value'], ["=", "<", "<=", "<>", ">", ">=", "!="]) ||
2480 2480
             in_array($peek['type'], [Lexer::T_NOT, Lexer::T_BETWEEN, Lexer::T_LIKE, Lexer::T_IN, Lexer::T_IS, Lexer::T_EXISTS]) ||
2481 2481
             $this->isMathOperator($peek)) {
2482 2482
             $condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression();
@@ -2581,7 +2581,7 @@  discard block
 block discarded – undo
2581 2581
             return $this->NullComparisonExpression();
2582 2582
         }
2583 2583
 
2584
-        if ($token['type'] === Lexer::T_IS  && $lookahead['type'] === Lexer::T_EMPTY) {
2584
+        if ($token['type'] === Lexer::T_IS && $lookahead['type'] === Lexer::T_EMPTY) {
2585 2585
             return $this->EmptyCollectionComparisonExpression();
2586 2586
         }
2587 2587
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmFunctionalTestCase.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Common\Cache\ArrayCache;
6 6
 use Doctrine\DBAL\Driver\Connection;
7
-use Doctrine\DBAL\Driver\PDOSqlite\Driver as SqliteDriver;
8 7
 use Doctrine\DBAL\Logging\DebugStack;
9 8
 use Doctrine\DBAL\Types\Type;
10 9
 use Doctrine\ORM\Cache\CacheConfiguration;
Please login to merge, or discard this 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
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
             $conn->executeUpdate('DELETE FROM RoutingLocation');
402 402
         }
403 403
 
404
-        if(isset($this->usedModelSets['navigation'])) {
404
+        if (isset($this->usedModelSets['navigation'])) {
405 405
             $conn->executeUpdate('DELETE FROM navigation_tour_pois');
406 406
             $conn->executeUpdate('DELETE FROM navigation_photos');
407 407
             $conn->executeUpdate('DELETE FROM navigation_pois');
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
             $conn->executeUpdate('DELETE FROM navigation_countries');
410 410
         }
411 411
         if (isset($this->usedModelSets['directorytree'])) {
412
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("file"));
412
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("file"));
413 413
             // MySQL doesn't know deferred deletions therefore only executing the second query gives errors.
414 414
             $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL');
415 415
             $conn->executeUpdate('DELETE FROM Directory');
@@ -499,12 +499,12 @@  discard block
 block discarded – undo
499 499
                 )
500 500
             );
501 501
 
502
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups'));
503
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-group"));
504
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-phone"));
505
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-user"));
506
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-address"));
507
-            $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city'));
502
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups'));
503
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-group"));
504
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-phone"));
505
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-user"));
506
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-address"));
507
+            $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city'));
508 508
         }
509 509
 
510 510
         if (isset($this->usedModelSets['vct_onetoone'])) {
@@ -639,15 +639,15 @@  discard block
 block discarded – undo
639 639
     {
640 640
         $this->setUpDBALTypes();
641 641
 
642
-        if (! isset(static::$sharedConn)) {
642
+        if ( ! isset(static::$sharedConn)) {
643 643
             static::$sharedConn = TestUtil::getConnection();
644 644
         }
645 645
 
646 646
         if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {
647 647
             if (in_array(static::$sharedConn->getDatabasePlatform()->getName(), ["mysql", "postgresql"])) {
648
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/');
648
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/');
649 649
             } else if (static::$sharedConn->getDatabasePlatform()->getName() === "oracle") {
650
-                static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual');
650
+                static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual');
651 651
             }
652 652
         }
653 653
 
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
         }
658 658
 
659 659
         foreach ($this->usedModelSets as $setName => $bool) {
660
-            if (! isset(static::$tablesCreated[$setName])) {
660
+            if ( ! isset(static::$tablesCreated[$setName])) {
661 661
                 $this->setUpEntitySchema(static::$modelSets[$setName]);
662 662
 
663 663
                 static::$tablesCreated[$setName] = true;
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
 
701 701
         $config->setMetadataCacheImpl(self::$metadataCacheImpl);
702 702
         $config->setQueryCacheImpl(self::$queryCacheImpl);
703
-        $config->setProxyDir(__DIR__ . '/Proxies');
703
+        $config->setProxyDir(__DIR__.'/Proxies');
704 704
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
705 705
 
706 706
         if (null !== $this->resultCacheImpl) {
@@ -732,8 +732,8 @@  discard block
 block discarded – undo
732 732
 
733 733
         $config->setMetadataDriverImpl(
734 734
             $config->newDefaultAnnotationDriver([
735
-                realpath(__DIR__ . '/Models/Cache'),
736
-                realpath(__DIR__ . '/Models/GeoNames')
735
+                realpath(__DIR__.'/Models/Cache'),
736
+                realpath(__DIR__.'/Models/GeoNames')
737 737
             ])
738 738
         );
739 739
 
@@ -797,9 +797,9 @@  discard block
 block discarded – undo
797 797
             $trace = $e->getTrace();
798 798
             $traceMsg = "";
799 799
 
800
-            foreach($trace AS $part) {
801
-                if(isset($part['file'])) {
802
-                    if(strpos($part['file'], "PHPUnit/") !== false) {
800
+            foreach ($trace AS $part) {
801
+                if (isset($part['file'])) {
802
+                    if (strpos($part['file'], "PHPUnit/") !== false) {
803 803
                         // Beginning with PHPUnit files we don't print the trace anymore.
804 804
                         break;
805 805
                     }
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 
811 811
             $message = "[".get_class($e)."] ".$e->getMessage().PHP_EOL.PHP_EOL."With queries:".PHP_EOL.$queries.PHP_EOL."Trace:".PHP_EOL.$traceMsg;
812 812
 
813
-            throw new \Exception($message, (int)$e->getCode(), $e);
813
+            throw new \Exception($message, (int) $e->getCode(), $e);
814 814
         }
815 815
 
816 816
         throw $e;
Please login to merge, or discard this patch.
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.
Doctrine/Tests/ORM/Functional/OneToOneSelfReferentialAssociationTest.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -161,8 +161,16 @@
 block discarded – undo
161 161
     private $other2;
162 162
 
163 163
     public function getId() {return $this->id;}
164
+
165
+    /**
166
+     * @param MultiSelfReference $other1
167
+     */
164 168
     public function setOther1($other1) {$this->other1 = $other1;}
165 169
     public function getOther1() {return $this->other1;}
170
+
171
+    /**
172
+     * @param MultiSelfReference $other2
173
+     */
166 174
     public function setOther2($other2) {$this->other2 = $other2;}
167 175
     public function getOther2() {return $this->other2;}
168 176
 }
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
 
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
      */
162 162
     private $other2;
163 163
 
164
-    public function getId() {return $this->id;}
165
-    public function setOther1($other1) {$this->other1 = $other1;}
166
-    public function getOther1() {return $this->other1;}
167
-    public function setOther2($other2) {$this->other2 = $other2;}
168
-    public function getOther2() {return $this->other2;}
164
+    public function getId() {return $this->id; }
165
+    public function setOther1($other1) {$this->other1 = $other1; }
166
+    public function getOther1() {return $this->other1; }
167
+    public function setOther2($other2) {$this->other2 = $other2; }
168
+    public function getOther2() {return $this->other2; }
169 169
 }
Please login to merge, or discard this patch.