Failed Conditions
Pull Request — master (#6959)
by Matthew
12:20
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1040Test.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -37,19 +37,19 @@  discard block
 block discarded – undo
37 37
 
38 38
         $dql = "SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.user = :author";
39 39
         $this->em->createQuery($dql)
40
-                  ->setParameter('author', $user)
41
-                  ->getResult();
40
+                    ->setParameter('author', $user)
41
+                    ->getResult();
42 42
 
43 43
         $dql = "SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.user = :author AND a.user = :author";
44 44
         $this->em->createQuery($dql)
45
-                  ->setParameter('author', $user)
46
-                  ->getResult();
45
+                    ->setParameter('author', $user)
46
+                    ->getResult();
47 47
 
48 48
         $dql = "SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.topic = :topic AND a.user = :author AND a.user = :author";
49 49
         $farticle = $this->em->createQuery($dql)
50
-                  ->setParameter('author', $user)
51
-                  ->setParameter('topic', 'This is John Galt speaking!')
52
-                  ->getSingleResult();
50
+                    ->setParameter('author', $user)
51
+                    ->setParameter('topic', 'This is John Galt speaking!')
52
+                    ->getSingleResult();
53 53
 
54 54
         self::assertSame($article, $farticle);
55 55
     }
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
 
73 73
         $dql = "SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.topic = ?1 AND a.user = ?2 AND a.user = ?3";
74 74
         $farticle = $this->em->createQuery($dql)
75
-                  ->setParameter(1, 'This is John Galt speaking!')
76
-                  ->setParameter(2, $user)
77
-                  ->setParameter(3, $user)
78
-                  ->getSingleResult();
75
+                    ->setParameter(1, 'This is John Galt speaking!')
76
+                    ->setParameter(2, $user)
77
+                    ->setParameter(3, $user)
78
+                    ->getSingleResult();
79 79
 
80 80
         self::assertSame($article, $farticle);
81 81
     }
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/DDC2984Test.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
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->em->persist($user);
46 46
         $this->em->flush();
47 47
 
48
-        $repository = $this->em->getRepository(__NAMESPACE__ . "\DDC2984User");
48
+        $repository = $this->em->getRepository(__NAMESPACE__."\DDC2984User");
49 49
 
50 50
         $sameUser = $repository->find(new DDC2984DomainUserId('unique_id_within_a_vo'));
51 51
 
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/DDC1595Test.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
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $sqlLogger  = $this->em->getConnection()->getConfiguration()->getSQLLogger();
40 40
         $repository = $this->em->getRepository(DDC1595InheritedEntity1::class);
41 41
 
42
-        $entity1  = $repository->find($e1->id);
42
+        $entity1 = $repository->find($e1->id);
43 43
 
44 44
         // DDC-1596
45 45
         self::assertSQLEquals(
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $this->em->clear();
58 58
 
59
-        $entity1  = $repository->find($e1->id);
59
+        $entity1 = $repository->find($e1->id);
60 60
 
61 61
         $entity1->getEntities()->count();
62 62
 
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/DDC1998Test.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
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
76 76
     {
77
-        return (string)$value;
77
+        return (string) $value;
78 78
     }
79 79
 
80 80
     public function convertToPhpValue($value, AbstractPlatform $platform)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC440Test.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
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         return $this->number;
118 118
     }
119 119
 
120
-    public function setClient(DDC440Client $value, $update_inverse=true)
120
+    public function setClient(DDC440Client $value, $update_inverse = true)
121 121
     {
122 122
         $this->client = $value;
123 123
         if ($update_inverse) {
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.