Test Failed
Pull Request — develop (#6719)
by Marco
63:23
created
tests/Doctrine/Tests/ORM/Tools/Pagination/WhereInWalkerTest.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\Tools\Pagination;
6 6
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function testWhereInQueryWithArbitraryJoin_NoWhere()
139 139
     {
140
-        $whereInQuery  = $this->entityManager->createQuery(
140
+        $whereInQuery = $this->entityManager->createQuery(
141 141
             'SELECT p FROM Doctrine\Tests\ORM\Tools\Pagination\BlogPost p JOIN Doctrine\Tests\ORM\Tools\Pagination\Category c WITH p.category = c'
142 142
         );
143 143
         $whereInQuery->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [WhereInWalker::class]);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/DefaultCacheFactoryTest.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\Cache;
6 6
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $em         = $this->em;
180 180
         $metadata   = clone $em->getClassMetadata(State::class);
181
-        $association    = $metadata->getProperty('cities');
181
+        $association = $metadata->getProperty('cities');
182 182
         $persister  = new OneToManyPersister($em);
183 183
         $region     = new ConcurrentRegionMock(
184 184
             new DefaultRegion('regionName', $this->getSharedSecondLevelCacheDriverImpl())
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     {
306 306
         $factory = new DefaultCacheFactory($this->regionsConfig, $this->getSharedSecondLevelCacheDriverImpl());
307 307
 
308
-        $fooCache  = new CacheMetadata(CacheUsage::READ_WRITE, 'foo');
308
+        $fooCache = new CacheMetadata(CacheUsage::READ_WRITE, 'foo');
309 309
 
310 310
         $factory->getRegion($fooCache);
311 311
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/CacheLoggerChainTest.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\Cache;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Cache/Persister/Entity/ReadWriteCachedEntityPersisterTest.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\Cache\Persister\Entity;
6 6
 
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,8 +106,8 @@
 block discarded – undo
106 106
         $this->em               = $this->getTestEntityManager();
107 107
         $this->region           = $this->createRegion();
108 108
         $this->entityPersister  = $this->getMockBuilder(EntityPersister::class)
109
-                                       ->setMethods($this->entityPersisterMockMethods)
110
-                                       ->getMock();
109
+                                        ->setMethods($this->entityPersisterMockMethods)
110
+                                        ->getMock();
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this 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\Cache\Persister\Entity;
6 6
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
             ->with($this->equalTo($assoc), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2))
371 371
             ->will($this->returnValue([$entity]));
372 372
 
373
-        self::assertEquals([$entity], $persister->getManyToManyCollection($assoc, 'Foo', 1 ,2));
373
+        self::assertEquals([$entity], $persister->getManyToManyCollection($assoc, 'Foo', 1, 2));
374 374
     }
375 375
 
376 376
     public function testInvokeGetOneToManyCollection()
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             ->with($this->equalTo($assoc), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2))
385 385
             ->will($this->returnValue([$entity]));
386 386
 
387
-        self::assertEquals([$entity], $persister->getOneToManyCollection($assoc, 'Foo', 1 ,2));
387
+        self::assertEquals([$entity], $persister->getOneToManyCollection($assoc, 'Foo', 1, 2));
388 388
     }
389 389
 
390 390
     public function testInvokeLoadManyToManyCollection()
Please login to merge, or discard this patch.
ORM/Cache/Persister/Collection/ReadOnlyCachedCollectionPersisterTest.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\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/FileLockRegionTest.php 1 patch
Spacing   +9 added lines, -9 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
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     protected function createRegion()
56 56
     {
57
-        $this->directory = sys_get_temp_dir() . '/doctrine_lock_'. uniqid();
57
+        $this->directory = sys_get_temp_dir().'/doctrine_lock_'.uniqid();
58 58
 
59 59
         $region = new DefaultRegion('concurren_region_test', $this->cache);
60 60
 
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
 
103 103
         file_put_contents($file, 'foo');
104 104
         self::assertFileExists($file);
105
-        self::assertEquals('foo' , file_get_contents($file));
105
+        self::assertEquals('foo', file_get_contents($file));
106 106
 
107 107
         self::assertNull($this->region->lock($key));
108
-        self::assertEquals('foo' , file_get_contents($file));
108
+        self::assertEquals('foo', file_get_contents($file));
109 109
         self::assertFileExists($file);
110 110
 
111 111
         // should be not available
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
         // change the lock
131 131
         file_put_contents($file, 'foo');
132 132
         self::assertFileExists($file);
133
-        self::assertEquals('foo' , file_get_contents($file));
133
+        self::assertEquals('foo', file_get_contents($file));
134 134
 
135 135
         //try to unlock
136 136
         self::assertFalse($this->region->unlock($key, $lock));
137
-        self::assertEquals('foo' , file_get_contents($file));
137
+        self::assertEquals('foo', file_get_contents($file));
138 138
         self::assertFileExists($file);
139 139
 
140 140
         // should be not available
@@ -155,14 +155,14 @@  discard block
 block discarded – undo
155 155
         // create lock
156 156
         file_put_contents($file, 'foo');
157 157
         self::assertFileExists($file);
158
-        self::assertEquals('foo' , file_get_contents($file));
158
+        self::assertEquals('foo', file_get_contents($file));
159 159
 
160 160
         self::assertFalse($this->region->contains($key));
161 161
         self::assertFalse($this->region->put($key, $entry));
162 162
         self::assertFalse($this->region->contains($key));
163 163
 
164 164
         self::assertFileExists($file);
165
-        self::assertEquals('foo' , file_get_contents($file));
165
+        self::assertEquals('foo', file_get_contents($file));
166 166
     }
167 167
 
168 168
     public function testLockedEvict()
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $reflectionDirectory->setAccessible(true);
258 258
         $reflectionDirectory->setValue($region, str_repeat('a', 10000));
259 259
 
260
-        set_error_handler(function () {}, E_WARNING);
260
+        set_error_handler(function() {}, E_WARNING);
261 261
         self::assertTrue($region->evictAll());
262 262
         restore_error_handler();
263 263
     }
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.