Failed Conditions
Pull Request — master (#6959)
by Matthew
12:20
created
Tests/ORM/Cache/Persister/Collection/AbstractCollectionPersisterTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
         $this->em                   = $this->getTestEntityManager();
91 91
         $this->region               = $this->createRegion();
92 92
         $this->collectionPersister  = $this->getMockBuilder(CollectionPersister::class)
93
-                                           ->setMethods($this->collectionPersisterMockMethods)
94
-                                           ->getMock();
93
+                                            ->setMethods($this->collectionPersisterMockMethods)
94
+                                            ->getMock();
95 95
     }
96 96
 
97 97
     /**
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\Cache\Persister\Collection;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/DefaultQueryCacheTest.php 1 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\Tests\ORM\Cache;
6 6
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         $uow->registerManaged($state, ['id' => $state->getId()], ['name' => $city->getName()]);
398 398
         $uow->registerManaged($city, ['id' => $city->getId()], ['name' => $city->getName(), 'state' => $state]);
399 399
 
400
-        $this->region->addReturn('put', true);  // put root entity
400
+        $this->region->addReturn('put', true); // put root entity
401 401
         $this->region->addReturn('put', false); // association fails
402 402
 
403 403
         self::assertFalse($this->queryCache->put($key, $rsm, $result));
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
         $uow->registerManaged($city2, ['id' => $city2->getId()], ['name' => $city2->getName(), 'state' => $state]);
431 431
         $uow->registerManaged($state, ['id' => $state->getId()], ['name' => $state->getName(), 'cities' => $state->getCities()]);
432 432
 
433
-        $this->region->addReturn('put', true);  // put root entity
433
+        $this->region->addReturn('put', true); // put root entity
434 434
         $this->region->addReturn('put', false); // collection association fails
435 435
 
436 436
         self::assertFalse($this->queryCache->put($key, $rsm, $result));
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
         $attractions = $reflection->invoke($this->queryCache, $rsm, 'a', $bavaria);
599 599
 
600 600
         self::assertCount(2, $cities);
601
-        self::assertCount(2,  $attractions);
601
+        self::assertCount(2, $attractions);
602 602
 
603 603
         self::assertInstanceOf(Collection::class, $cities);
604 604
         self::assertInstanceOf(Collection::class, $attractions[0]);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/DefaultEntityHydratorTest.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\Cache;
6 6
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $entity->setId(1);
84 84
         $uow->registerManaged($entity, $key->identifier, $data);
85 85
 
86
-        $cache  = $this->structure->buildCacheEntry($metadata, $key, $entity);
86
+        $cache = $this->structure->buildCacheEntry($metadata, $key, $entity);
87 87
 
88 88
         self::assertInstanceOf(CacheEntry::class, $cache);
89 89
         self::assertInstanceOf(EntityCacheEntry::class, $cache);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/EntityManagerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     public function testCreateQueryBuilderAliasValid()
106 106
     {
107 107
         $q = $this->em->createQueryBuilder()
108
-             ->select('u')->from(CmsUser::class, 'u');
108
+                ->select('u')->from(CmsUser::class, 'u');
109 109
         $q2 = clone $q;
110 110
 
111 111
         self::assertEquals('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u', $q->getQuery()->getDql());
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\Tests\ORM;
6 6
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     public function testThrowsExceptionOnNonObjectValues($methodName)
168 168
     {
169 169
         $this->expectException(ORMInvalidArgumentException::class);
170
-        $this->expectExceptionMessage('EntityManager#' . $methodName . '() expects parameter 1 to be an entity object, NULL given.');
170
+        $this->expectExceptionMessage('EntityManager#'.$methodName.'() expects parameter 1 to be an entity object, NULL given.');
171 171
 
172 172
         $this->em->{$methodName}(null);
173 173
     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         self::assertSame(
213 213
             $value,
214
-            $this->em->transactional(function ($em) use ($value) {
214
+            $this->em->transactional(function($em) use ($value) {
215 215
                 return $value;
216 216
             })
217 217
         );
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
     public function testTransactionalReThrowsThrowables()
245 245
     {
246 246
         try {
247
-            $this->em->transactional(function () {
248
-                (function (array $value) {
247
+            $this->em->transactional(function() {
248
+                (function(array $value) {
249 249
                     // this only serves as an IIFE that throws a `TypeError`
250 250
                 })(null);
251 251
             });
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3231/DDC3231User2NoNamespace.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
 use Doctrine\ORM\Annotation as ORM;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC3231/DDC3231EntityRepository.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\Models\DDC3231;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC6412/DDC6412File.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\Models\DDC6412;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Forum/ForumCategory.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\Models\Forum;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/DDC2372/DDC2372User.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\Models\DDC2372;
6 6
 
Please login to merge, or discard this patch.