Completed
Pull Request — master (#7046)
by Gabriel
12:09
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2519Test.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\Functional\Ticket;
6 6
 
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function loadFixture()
60 60
     {
61
-        $user1              = new LegacyUser();
61
+        $user1 = new LegacyUser();
62 62
         $user1->username   = 'FabioBatSilva';
63 63
         $user1->name       = 'Fabio B. Silva';
64 64
         $user1->status     = 'active';
65 65
 
66
-        $user2              = new LegacyUser();
66
+        $user2 = new LegacyUser();
67 67
         $user2->username   = 'doctrinebot';
68 68
         $user2->name       = 'Doctrine Bot';
69 69
         $user2->status     = 'active';
70 70
 
71
-        $user3              = new LegacyUser();
71
+        $user3 = new LegacyUser();
72 72
         $user3->username   = 'test';
73 73
         $user3->name       = 'Tester';
74 74
         $user3->status     = 'active';
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6402Test.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\Ticket;
6 6
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $id = $this->createAddress();
39 39
 
40
-        $addresses = $this->em->createQuery('SELECT a FROM ' . Address::class . ' a WHERE a.id = :id')
40
+        $addresses = $this->em->createQuery('SELECT a FROM '.Address::class.' a WHERE a.id = :id')
41 41
             ->setParameter('id', $id)
42 42
             ->getResult();
43 43
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $id = $this->createFullAddress();
60 60
 
61
-        $addresses = $this->em->createQuery('SELECT a FROM ' . FullAddress::class . ' a WHERE a.id = :id')
61
+        $addresses = $this->em->createQuery('SELECT a FROM '.FullAddress::class.' a WHERE a.id = :id')
62 62
             ->setParameter('id', $id)
63 63
             ->getResult();
64 64
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheManyToManyTest.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
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $entity     = $this->em->find(Travel::class, $entitiId);
235 235
 
236 236
         self::assertEquals(0, $entity->getVisitedCities()->count());
237
-        self::assertEquals($queryCount+2, $this->getCurrentQueryCount());
237
+        self::assertEquals($queryCount + 2, $this->getCurrentQueryCount());
238 238
 
239 239
         $this->em->clear();
240 240
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheManyToOneTest.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
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         self::assertNull($this->cache->getEntityCacheRegion(ComplexAction::class));
217 217
         self::assertInstanceOf(Region::class, $this->cache->getEntityCacheRegion(Token::class));
218 218
 
219
-        $token  = new Token('token-hash');
219
+        $token = new Token('token-hash');
220 220
 
221 221
         $action1 = new Action('login');
222 222
         $action2 = new Action('logout');
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Functional/OneToManyBidirectionalAssociationTest.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
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $this->createFixture();
186 186
 
187
-        $product  = $this->em->find(ECommerceProduct::class, $this->product->getId());
187
+        $product = $this->em->find(ECommerceProduct::class, $this->product->getId());
188 188
 
189 189
         $thirdFeature = new ECommerceFeature();
190 190
         $thirdFeature->setDescription('Model writing tutorial');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CascadeRemoveOrderTest.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
 
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
      */
156 156
     private $ownerO;
157 157
 
158
-    public function __construct(CascadeRemoveOrderEntityO $eO, $position=1)
158
+    public function __construct(CascadeRemoveOrderEntityO $eO, $position = 1)
159 159
     {
160 160
         $this->position = $position;
161
-        $this->ownerO= $eO;
161
+        $this->ownerO = $eO;
162 162
         $this->ownerO->addOneToManyG($this);
163 163
     }
164 164
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheOneToManyTest.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
 
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 
397 397
         $l1 = new Login('session1');
398 398
         $l2 = new Login('session2');
399
-        $token  = new Token('token-hash');
399
+        $token = new Token('token-hash');
400 400
         $token->addLogin($l1);
401 401
         $token->addLogin($l2);
402 402
 
Please login to merge, or discard this patch.
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.