Completed
Push — master ( f53b03...53ace8 )
by Marco
194:25 queued 99:05
created
lib/Doctrine/ORM/Query/AST/Functions/SizeFunction.php 2 patches
Braces   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,11 @@  discard block
 block discarded – undo
73 73
             $first             = true;
74 74
 
75 75
             foreach ($owningAssociation->getJoinColumns() as $joinColumn) {
76
-                if ($first) $first = false; else $sql .= ' AND ';
76
+                if ($first) {
77
+                    $first = false;
78
+                } else {
79
+                    $sql .= ' AND ';
80
+                }
77 81
 
78 82
                 $sql .= sprintf('%s.%s = %s.%s',
79 83
                     $targetTableAlias,
@@ -106,7 +110,11 @@  discard block
 block discarded – undo
106 110
             $first = true;
107 111
 
108 112
             foreach ($joinColumns as $joinColumn) {
109
-                if ($first) $first = false; else $sql .= ' AND ';
113
+                if ($first) {
114
+                    $first = false;
115
+                } else {
116
+                    $sql .= ' AND ';
117
+                }
110 118
 
111 119
                 $sql .= sprintf('%s.%s = %s.%s',
112 120
                     $joinTableAlias,
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\Query\AST\Functions;
6 6
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             $targetTableAlias   = $sqlWalker->getSQLTableAlias($targetClass->getTableName());
51 51
             $sourceTableAlias   = $sqlWalker->getSQLTableAlias($class->getTableName(), $dqlAlias);
52 52
 
53
-            $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE ';
53
+            $sql .= $targetTableName.' '.$targetTableAlias.' WHERE ';
54 54
 
55 55
             $owningAssociation = $targetClass->getProperty($association->getMappedBy());
56 56
             $first             = true;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             }
80 80
 
81 81
             // join to target table
82
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' WHERE ';
82
+            $sql .= $joinTableName.' '.$joinTableAlias.' WHERE ';
83 83
 
84 84
             $joinColumns = $association->isOwningSide()
85 85
                 ? $joinTable->getJoinColumns()
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             }
101 101
         }
102 102
 
103
-        return '(' . $sql . ')';
103
+        return '('.$sql.')';
104 104
     }
105 105
 
106 106
     /**
Please login to merge, or discard this patch.
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   +5 added lines, -5 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
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $row = $this->stmt->fetch(PDO::FETCH_ASSOC);
149 149
 
150
-        if (! $row) {
150
+        if ( ! $row) {
151 151
             $this->cleanup();
152 152
 
153 153
             return false;
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
                     // If there are field name collisions in the child class, then we need
280 280
                     // to only hydrate if we are looking at the correct discriminator value
281 281
                     if (
282
-                        isset($cacheKeyInfo['discriminatorColumn'],$data[$cacheKeyInfo['discriminatorColumn']]) &&
282
+                        isset($cacheKeyInfo['discriminatorColumn'], $data[$cacheKeyInfo['discriminatorColumn']]) &&
283 283
                         // Note: loose comparison required. See https://github.com/doctrine/doctrine2/pull/6304#issuecomment-323294442
284 284
                         $data[$cacheKeyInfo['discriminatorColumn']] != $cacheKeyInfo['discriminatorValue']
285 285
                     ) {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                         : $value;
299 299
 
300 300
                     if ($cacheKeyInfo['isIdentifier'] && $value !== null) {
301
-                        $id[$dqlAlias] .= '|' . $value;
301
+                        $id[$dqlAlias] .= '|'.$value;
302 302
                         $nonemptyComponents[$dqlAlias] = true;
303 303
                     }
304 304
                     break;
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
             if ( ! isset($cacheKeyInfo['isScalar'])) {
337 337
                 $dqlAlias  = $cacheKeyInfo['dqlAlias'];
338 338
                 $type      = $cacheKeyInfo['type'];
339
-                $fieldName = $dqlAlias . '_' . $fieldName;
339
+                $fieldName = $dqlAlias.'_'.$fieldName;
340 340
                 $value     = $type
341 341
                     ? $type->convertToPHPValue($value, $this->platform)
342 342
                     : $value;
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.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheRepositoryTest.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.