Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,8 +213,8 @@
 block discarded – undo
213 213
         $this->metadataCache = [];
214 214
 
215 215
         $this->em
216
-             ->getEventManager()
217
-             ->removeEventListener([Events::onClear], $this);
216
+                ->getEventManager()
217
+                ->removeEventListener([Events::onClear], $this);
218 218
     }
219 219
 
220 220
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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\ORM\Internal\Hydration;
6 6
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $row = $this->stmt->fetch(PDO::FETCH_ASSOC);
147 147
 
148
-        if (! $row) {
148
+        if ( ! $row) {
149 149
             $this->cleanup();
150 150
 
151 151
             return false;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                         : $value;
287 287
 
288 288
                     if ($cacheKeyInfo['isIdentifier'] && $value !== null) {
289
-                        $id[$dqlAlias] .= '|' . $value;
289
+                        $id[$dqlAlias] .= '|'.$value;
290 290
                         $nonemptyComponents[$dqlAlias] = true;
291 291
                     }
292 292
                     break;
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             if ( ! isset($cacheKeyInfo['isScalar'])) {
325 325
                 $dqlAlias  = $cacheKeyInfo['dqlAlias'];
326 326
                 $type      = $cacheKeyInfo['type'];
327
-                $fieldName = $dqlAlias . '_' . $fieldName;
327
+                $fieldName = $dqlAlias.'_'.$fieldName;
328 328
                 $value     = $type
329 329
                     ? $type->convertToPHPValue($value, $this->platform)
330 330
                     : $value;
Please login to merge, or discard this patch.
Cache/Persister/Collection/NonStrictReadWriteCachedCollectionPersister.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         $ownerId   = $this->uow->getEntityIdentifier($collection->getOwner());
91 91
         $key       = new CollectionCacheKey($this->sourceEntity->getRootClassName(), $fieldName, $ownerId);
92 92
 
93
-       // Invalidate non initialized collections OR ordered collection
93
+        // Invalidate non initialized collections OR ordered collection
94 94
         if (($isDirty && ! $isInitialized) ||
95 95
             ($this->association instanceof ToManyAssociationMetadata && $this->association->getOrderBy())) {
96 96
             $this->persister->update($collection);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Collection;
7 7
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/UpdateSqlGenerationTest.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -25,6 +25,10 @@
 block discarded – undo
25 25
         $this->em = $this->getTestEntityManager();
26 26
     }
27 27
 
28
+    /**
29
+     * @param string $dqlToBeTested
30
+     * @param string $sqlToBeConfirmed
31
+     */
28 32
     public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed)
29 33
     {
30 34
         try {
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\Query;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/ConfigurationTest.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/ORM/Persisters/BasicEntityPersisterCompositeTypeParametersTest.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\Persisters;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Event/OnClassMetadataNotFoundEventArgsTest.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.
Doctrine/Tests/ORM/Functional/SecondLevelCacheJoinTableInheritanceTest.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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OneToOneOrphanRemovalTest.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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CustomIdObjectTypeTest.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;
6 6
 
Please login to merge, or discard this patch.