Passed
Pull Request — 2.6 (#7903)
by Gabriel
07:02
created
tests/Doctrine/Tests/ORM/Hydration/ResultSetMappingTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $rms = $this->_rsm;
82 82
 
83
-        $this->_rsm->addEntityResult(CmsUser::class,'u');
84
-        $this->_rsm->addJoinedEntityResult(CmsPhonenumber::class,'p','u','phonenumbers');
83
+        $this->_rsm->addEntityResult(CmsUser::class, 'u');
84
+        $this->_rsm->addJoinedEntityResult(CmsPhonenumber::class, 'p', 'u', 'phonenumbers');
85 85
         $this->_rsm->addFieldResult('u', 'id', 'id');
86 86
         $this->_rsm->addFieldResult('u', 'name', 'name');
87 87
         $this->_rsm->setDiscriminatorColumn('name', 'name');
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
     public function testIdentifierTypeForScalarExpression() : void
279 279
     {
280
-        $rsm = (new Parser($this->_em->createQuery('SELECT e.id4 FROM ' . AuxiliaryEntity::class . ' e')))
280
+        $rsm = (new Parser($this->_em->createQuery('SELECT e.id4 FROM '.AuxiliaryEntity::class.' e')))
281 281
             ->parse()
282 282
             ->getResultSetMapping();
283 283
 
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 
288 288
     public function testIdentifierTypeForRootEntityColumnThatHasAssociationAsIdentifier() : void
289 289
     {
290
-        $rsm = (new Parser($this->_em->createQuery('SELECT e FROM ' . OwningManyToOneIdForeignKeyEntity::class . ' e')))
290
+        $rsm = (new Parser($this->_em->createQuery('SELECT e FROM '.OwningManyToOneIdForeignKeyEntity::class.' e')))
291 291
             ->parse()
292 292
             ->getResultSetMapping();
293 293
 
@@ -302,8 +302,8 @@  discard block
 block discarded – undo
302 302
     {
303 303
         $this->_rsm->addEntityResult(LegacyUser::class, 'u');
304 304
         $this->_rsm->addJoinedEntityResult(LegacyUserReference::class, 'lu', 'u', '_references');
305
-        $this->_rsm->addMetaResult('lu', '_source',  '_source', true, 'integer');
306
-        $this->_rsm->addMetaResult('lu', '_target',  '_target', true, 'integer');
305
+        $this->_rsm->addMetaResult('lu', '_source', '_source', true, 'integer');
306
+        $this->_rsm->addMetaResult('lu', '_target', '_target', true, 'integer');
307 307
         $this->_rsm->addIndexBy('lu', '_source');
308 308
 
309 309
         $this->assertTrue($this->_rsm->hasIndexBy('lu'));
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
             $connection   = $em->getConnection();
165 165
             $idType       = $this->getIdentifiersQueryScalarResultType($subQuery, $em);
166 166
             $whereInQuery = $this->cloneQuery($this->query);
167
-            $ids          = array_map(static function (array $row) use ($idType, $connection) {
167
+            $ids          = array_map(static function(array $row) use ($idType, $connection) {
168 168
                 return $connection->convertToPHPValue(current($row), $idType);
169 169
             }, $foundIdRows);
170 170
 
Please login to merge, or discard this patch.