Passed
Pull Request — master (#7177)
by Jonathan
11:27
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC168Test.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\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3042Test.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\Ticket;
6 6
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             $this
32 32
                 ->em
33 33
                 ->createQuery(
34
-                    'SELECT f, b FROM ' . __NAMESPACE__ . '\DDC3042Foo f JOIN ' . __NAMESPACE__ . '\DDC3042Bar b WITH 1 = 1'
34
+                    'SELECT f, b FROM '.__NAMESPACE__.'\DDC3042Foo f JOIN '.__NAMESPACE__.'\DDC3042Bar b WITH 1 = 1'
35 35
                 )
36 36
                 ->getSQL()
37 37
         );
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1400Test.php 2 patches
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\Ticket;
6 6
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         $user1 = $this->em->getReference(DDC1400User::class, $user1->id);
55 55
 
56
-        $this->em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser')
56
+        $this->em->createQuery('SELECT a, s FROM '.DDC1400Article::class.' a JOIN a.userStates s WITH s.user = :activeUser')
57 57
                   ->setParameter('activeUser', $user1)
58 58
                   ->getResult();
59 59
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
         $user1 = $this->em->getReference(DDC1400User::class, $user1->id);
55 55
 
56 56
         $this->em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser')
57
-                  ->setParameter('activeUser', $user1)
58
-                  ->getResult();
57
+                    ->setParameter('activeUser', $user1)
58
+                    ->getResult();
59 59
 
60 60
         $queryCount = $this->getCurrentQueryCount();
61 61
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH2947Test.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
     private function createQuery()
52 52
     {
53 53
         return $this->em->createQueryBuilder()
54
-                         ->select('car')
55
-                         ->from(GH2947Car::class, 'car')
56
-                         ->getQuery()
57
-                         ->useResultCache(true, 3600, 'foo-cache-id');
54
+                            ->select('car')
55
+                            ->from(GH2947Car::class, 'car')
56
+                            ->getQuery()
57
+                            ->useResultCache(true, 3600, 'foo-cache-id');
58 58
     }
59 59
 
60 60
     private function createData()
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
     private function updateData()
68 68
     {
69 69
         $this->em->createQueryBuilder()
70
-                  ->update(GH2947Car::class, 'car')
71
-                  ->set('car.brand', ':newBrand')
72
-                  ->where('car.brand = :oldBrand')
73
-                  ->setParameter('newBrand', 'Dacia')
74
-                  ->setParameter('oldBrand', 'BMW')
75
-                  ->getQuery()
76
-                  ->execute();
70
+                    ->update(GH2947Car::class, 'car')
71
+                    ->set('car.brand', ':newBrand')
72
+                    ->where('car.brand = :oldBrand')
73
+                    ->setParameter('newBrand', 'Dacia')
74
+                    ->setParameter('oldBrand', 'BMW')
75
+                    ->getQuery()
76
+                    ->execute();
77 77
     }
78 78
 }
79 79
 
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\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3192Test.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         if (Type::hasType('ddc3192_currency_code')) {
22 22
             $this->fail(
23
-                'Type ddc3192_currency_code exists for testing DDC-3192 only, ' .
23
+                'Type ddc3192_currency_code exists for testing DDC-3192 only, '.
24 24
                 'but it has already been registered for some reason'
25 25
             );
26 26
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->em->close();
58 58
 
59 59
         $query = $this->em->createQuery();
60
-        $query->setDQL('SELECT t FROM ' . DDC3192Transaction::class . ' t WHERE t.id = ?1');
60
+        $query->setDQL('SELECT t FROM '.DDC3192Transaction::class.' t WHERE t.id = ?1');
61 61
         $query->setParameter(1, $transaction->id);
62 62
 
63 63
         $resultByQuery = $query->getSingleResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3644Test.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
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $this->addresses = $addresses;
166 166
 
167
-        $addresses->map(function ($address) use ($self) {
167
+        $addresses->map(function($address) use ($self) {
168 168
             $address->user = $self;
169 169
         });
170 170
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         $this->pets = $pets;
177 177
 
178
-        $pets->map(function ($pet) use ($self) {
178
+        $pets->map(function($pet) use ($self) {
179 179
             $pet->owner = $self;
180 180
         });
181 181
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3170Test.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@
 block discarded – undo
50 50
         $this->em->clear();
51 51
 
52 52
         $result = $this->em->createQueryBuilder()
53
-                  ->select('p')
54
-                  ->from(DDC3170ProductJoined::class, 'p')
55
-                  ->getQuery()
56
-                  ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
53
+                    ->select('p')
54
+                    ->from(DDC3170ProductJoined::class, 'p')
55
+                    ->getQuery()
56
+                    ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
57 57
 
58 58
         self::assertCount(1, $result);
59 59
         self::assertContainsOnly(DDC3170ProductJoined::class, $result);
60 60
 
61 61
         $result = $this->em->createQueryBuilder()
62
-                  ->select('p')
63
-                  ->from(DDC3170ProductSingleTable::class, 'p')
64
-                  ->getQuery()
65
-                  ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
62
+                    ->select('p')
63
+                    ->from(DDC3170ProductSingleTable::class, 'p')
64
+                    ->getQuery()
65
+                    ->getResult(AbstractQuery::HYDRATE_SIMPLEOBJECT);
66 66
 
67 67
         self::assertCount(1, $result);
68 68
         self::assertContainsOnly(DDC3170ProductSingleTable::class, $result);
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\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1436Test.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\Ticket;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         // step 1
44 44
         $page = $this->em
45
-                ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
45
+                ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id')
46 46
                 ->setParameter('id', $id)
47 47
                 ->getOneOrNullResult();
48 48
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1925Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $product->addBuyer($user);
36 36
 
37 37
         $this->em->getUnitOfWork()
38
-                  ->computeChangeSets();
38
+                    ->computeChangeSets();
39 39
 
40 40
         $this->em->persist($product);
41 41
         $this->em->flush();
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\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.