Failed Conditions
Pull Request — develop (#6947)
by Filippo
10:01
created
tests/Doctrine/Tests/ORM/Functional/ManyToManyBasicAssociationTest.php 2 patches
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\Tests\ORM\Functional;
6 6
 
@@ -293,9 +293,9 @@  discard block
 block discarded – undo
293 293
         $user->username = 'gblanco';
294 294
         $user->status = 'developer';
295 295
 
296
-        for ($i=0; $i < $groupCount; ++$i) {
296
+        for ($i = 0; $i < $groupCount; ++$i) {
297 297
             $group = new CmsGroup;
298
-            $group->name = 'Developers_' . $i;
298
+            $group->name = 'Developers_'.$i;
299 299
             $user->addGroup($group);
300 300
         }
301 301
 
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
             $user
419 419
                 ->getGroups()
420 420
                 ->matching($criteria)
421
-                ->map(function (CmsGroup $group) {
421
+                ->map(function(CmsGroup $group) {
422 422
                     return $group->getName();
423 423
                 })
424 424
                 ->toArray()
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
             $user
463 463
                 ->getTags()
464 464
                 ->matching($criteria)
465
-                ->map(function (CmsTag $tag) {
465
+                ->map(function(CmsTag $tag) {
466 466
                     return $tag->getName();
467 467
                 })
468 468
                 ->toArray()
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,8 +268,8 @@
 block discarded – undo
268 268
         $this->em->clear();
269 269
 
270 270
         $newUser = $this->em->createQuery('SELECT u, g FROM Doctrine\Tests\Models\CMS\CmsUser u LEFT JOIN u.groups g WHERE u.id = ?1')
271
-                             ->setParameter(1, $user->getId())
272
-                             ->getSingleResult();
271
+                                ->setParameter(1, $user->getId())
272
+                                ->getSingleResult();
273 273
         self::assertCount(0, $newUser->groups);
274 274
         self::assertInstanceOf(ManyToManyAssociationMetadata::class, $newUser->groups->getMapping());
275 275
 
Please login to merge, or discard this patch.
Tests/ORM/Functional/ValueConversionType/ManyToManyExtraLazyTest.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\ValueConversionType;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CustomFunctionsTest.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 use Doctrine\Tests\Models\CMS\CmsUser;
14 14
 use Doctrine\Tests\OrmFunctionalTestCase;
15 15
 
16
-require_once __DIR__ . '/../../TestInit.php';
16
+require_once __DIR__.'/../../TestInit.php';
17 17
 
18 18
 class CustomFunctionsTest extends OrmFunctionalTestCase
19 19
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaValidatorTest.php 1 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;
6 6
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     private function registerType(string $className)
38 38
     {
39
-        $type = constant($className . '::NAME');
39
+        $type = constant($className.'::NAME');
40 40
 
41 41
         if (DBALType::hasType($type)) {
42 42
             DBALType::overrideType($type, $className);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         foreach ($classes as $class) {
73 73
             $ce = $validator->validateClass($class);
74 74
 
75
-            self::assertEmpty($ce, "Invalid Modelset: " . $modelSet . " class " . $class->getClassName() . ": ". implode("\n", $ce));
75
+            self::assertEmpty($ce, "Invalid Modelset: ".$modelSet." class ".$class->getClassName().": ".implode("\n", $ce));
76 76
         }
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/HydrationTestCase.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\Hydration;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/ResultSetMappingTest.php 1 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\Tests\ORM\Hydration;
6 6
 
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $rms = $this->rsm;
86 86
 
87
-        $this->rsm->addEntityResult(CmsUser::class,'u');
88
-        $this->rsm->addJoinedEntityResult(CmsPhonenumber::class,'p','u','phonenumbers');
87
+        $this->rsm->addEntityResult(CmsUser::class, 'u');
88
+        $this->rsm->addJoinedEntityResult(CmsPhonenumber::class, 'p', 'u', 'phonenumbers');
89 89
         $this->rsm->addFieldResult('u', 'id', 'id');
90 90
         $this->rsm->addFieldResult('u', 'name', 'name');
91 91
         $this->rsm->setDiscriminatorColumn('name', 'name');
@@ -278,8 +278,8 @@  discard block
 block discarded – undo
278 278
     {
279 279
         $this->rsm->addEntityResult(LegacyUser::class, 'u');
280 280
         $this->rsm->addJoinedEntityResult(LegacyUserReference::class, 'lu', 'u', '_references');
281
-        $this->rsm->addMetaResult('lu', '_source',  '_source', true, Type::getType('integer'));
282
-        $this->rsm->addMetaResult('lu', '_target',  '_target', true, Type::getType('integer'));
281
+        $this->rsm->addMetaResult('lu', '_source', '_source', true, Type::getType('integer'));
282
+        $this->rsm->addMetaResult('lu', '_target', '_target', true, Type::getType('integer'));
283 283
         $this->rsm->addIndexBy('lu', '_source');
284 284
 
285 285
         self::assertTrue($this->rsm->hasIndexBy('lu'));
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/SimpleObjectHydratorTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         $rsm->setDiscriminatorColumn('p', 'discr');
34 34
 
35 35
         $resultSet = [
36
-              [
37
-                  'u__id'   => '1',
38
-                  'u__name' => 'Fabio B. Silva'
39
-              ],
36
+                [
37
+                    'u__id'   => '1',
38
+                    'u__name' => 'Fabio B. Silva'
39
+                ],
40 40
         ];
41 41
 
42 42
         $stmt     = new HydratorMockStatement($resultSet);
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
         $rsm->setDiscriminatorColumn('p', 'discr');
90 90
 
91 91
         $resultSet = [
92
-              [
93
-                  'p__id'   => '1',
94
-                  'p__name' => 'Fabio B. Silva',
95
-                  'discr'   => 'subworker'
96
-              ],
92
+                [
93
+                    'p__id'   => '1',
94
+                    'p__name' => 'Fabio B. Silva',
95
+                    'discr'   => 'subworker'
96
+                ],
97 97
         ];
98 98
 
99 99
         $stmt     = new HydratorMockStatement($resultSet);
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\Hydration;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.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\Tools;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/MetadataFilterTest.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\Tools\Console;
6 6
 
Please login to merge, or discard this patch.