Failed Conditions
Pull Request — develop (#6599)
by Michael
131:05 queued 63:47
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2579Test.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
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
     public function __construct(DDC2579Id $id)
130 130
     {
131
-        $this->associationId  = $id;
131
+        $this->associationId = $id;
132 132
     }
133 133
 }
134 134
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
144 144
     {
145
-        return (string)$value;
145
+        return (string) $value;
146 146
     }
147 147
 
148 148
     public function convertToPhpValue($value, AbstractPlatform $platform)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC117Test.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
 
151 151
         $dql = "DELETE Doctrine\Tests\Models\DDC117\DDC117Reference r WHERE r.source = ?1 AND r.target = ?2";
152 152
         $this->em->createQuery($dql)
153
-                  ->setParameter(1, $this->article1->id())
154
-                  ->setParameter(2, $this->article2->id())
155
-                  ->execute();
153
+                    ->setParameter(1, $this->article1->id())
154
+                    ->setParameter(2, $this->article2->id())
155
+                    ->execute();
156 156
 
157 157
         self::assertNull($this->em->find(DDC117Reference::class, $idCriteria));
158 158
     }
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
 
203 203
         $dql = 'SELECT t, a FROM Doctrine\Tests\Models\DDC117\DDC117Translation t JOIN t.article a WHERE t.article = ?1 AND t.language = ?2';
204 204
         $dqlTrans = $this->em->createQuery($dql)
205
-                              ->setParameter(1, $this->article1->id())
206
-                              ->setParameter(2, 'en')
207
-                              ->getSingleResult();
205
+                                ->setParameter(1, $this->article1->id())
206
+                                ->setParameter(2, 'en')
207
+                                ->getSingleResult();
208 208
 
209 209
         self::assertInstanceOf(DDC117Translation::class, $this->translation);
210 210
     }
@@ -369,11 +369,11 @@  discard block
 block discarded – undo
369 369
         $this->em->clear();
370 370
 
371 371
         $dql = "SELECT t, e FROM Doctrine\Tests\Models\DDC117\DDC117Translation t ".
372
-               "JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2";
372
+                "JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2";
373 373
         $trans = $this->em->createQuery($dql)
374
-                           ->setParameter(1, $this->translation->getArticleId())
375
-                           ->setParameter(2, $this->translation->getLanguage())
376
-                           ->getSingleResult();
374
+                            ->setParameter(1, $this->translation->getArticleId())
375
+                            ->setParameter(2, $this->translation->getLanguage())
376
+                            ->getSingleResult();
377 377
 
378 378
         self::assertInstanceOf(DDC117Translation::class, $trans);
379 379
         self::assertContainsOnly(DDC117Editor::class, $trans->reviewedByEditors);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $this->em->clear();
68 68
 
69
-        $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE r.source = ?1';
69
+        $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE r.source = ?1';
70 70
         $dqlRef = $this->em->createQuery($dql)->setParameter(1, 1)->getSingleResult();
71 71
 
72 72
         self::assertInstanceOf(DDC117Reference::class, $mapRef);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         $this->em->clear();
78 78
 
79
-        $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE s.title = ?1';
79
+        $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE s.title = ?1';
80 80
         $dqlRef = $this->em->createQuery($dql)->setParameter(1, 'Foo')->getSingleResult();
81 81
 
82 82
         self::assertInstanceOf(DDC117Reference::class, $dqlRef);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         self::assertInstanceOf(DDC117Article::class, $dqlRef->source());
85 85
         self::assertSame($dqlRef, $this->em->find(DDC117Reference::class, $idCriteria));
86 86
 
87
-        $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE s.title = ?1';
87
+        $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE s.title = ?1';
88 88
         $dqlRef = $this->em->createQuery($dql)->setParameter(1, 'Foo')->getSingleResult();
89 89
 
90 90
         $this->em->contains($dqlRef);
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         try {
223 223
             // exception depending on the underlying Database Driver
224 224
             $this->em->flush();
225
-        } catch(\Exception $e) {
225
+        } catch (\Exception $e) {
226 226
             $exceptionThrown = true;
227 227
         }
228 228
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      */
269 269
     public function testOneToOneCascadePersist()
270 270
     {
271
-        if (! $this->em->getConnection()->getDatabasePlatform()->prefersSequences()) {
271
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->prefersSequences()) {
272 272
             $this->markTestSkipped('Test only works with databases that prefer sequences as ID strategy.');
273 273
         }
274 274
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1228Test.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
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                 $this->em->getClassMetadata(DDC1228Profile::class),
23 23
                 ]
24 24
             );
25
-        } catch(\Exception $e) {
25
+        } catch (\Exception $e) {
26 26
 
27 27
         }
28 28
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2660Test.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
 
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
                 $this->em->getClassMetadata(DDC2660CustomerOrder::class)
28 28
                 ]
29 29
             );
30
-        } catch(\Exception $e) {
30
+        } catch (\Exception $e) {
31 31
             return;
32 32
         }
33 33
 
34 34
         for ($i = 0; $i < 5; $i++) {
35 35
             $product = new DDC2660Product();
36 36
             $customer = new DDC2660Customer();
37
-            $order = new DDC2660CustomerOrder($product, $customer, 'name' . $i);
37
+            $order = new DDC2660CustomerOrder($product, $customer, 'name'.$i);
38 38
 
39 39
             $this->em->persist($product);
40 40
             $this->em->persist($customer);
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/AdvancedDqlQueryTest.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     public function testAggregateWithHavingClause()
29 29
     {
30 30
         $dql = 'SELECT p.department, AVG(p.salary) AS avgSalary '.
31
-               'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
32
-               'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
31
+                'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
32
+                'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
33 33
 
34 34
         $result = $this->em->createQuery($dql)->getScalarResult();
35 35
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public function testUnnamedScalarResultsAreOneBased()
44 44
     {
45 45
         $dql = 'SELECT p.department, AVG(p.salary) '.
46
-               'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
47
-               'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
46
+                'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
47
+                'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
48 48
 
49 49
         $result = $this->em->createQuery($dql)->getScalarResult();
50 50
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
     public function testOrderByResultVariableCollectionSize()
57 57
     {
58 58
         $dql = 'SELECT p.name, size(p.friends) AS friends ' .
59
-               'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
60
-               'WHERE p.friends IS NOT EMPTY ' .
61
-               'ORDER BY friends DESC, p.name DESC';
59
+                'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
60
+                'WHERE p.friends IS NOT EMPTY ' .
61
+                'ORDER BY friends DESC, p.name DESC';
62 62
 
63 63
         $result = $this->em->createQuery($dql)->getScalarResult();
64 64
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function testIsNullAssociation()
81 81
     {
82 82
         $dql = 'SELECT p FROM Doctrine\Tests\Models\Company\CompanyPerson p '.
83
-               'WHERE p.spouse IS NULL';
83
+                'WHERE p.spouse IS NULL';
84 84
         $result = $this->em->createQuery($dql)->getResult();
85 85
 
86 86
         self::assertEquals(2, count($result));
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function testSelectSubselect()
95 95
     {
96 96
         $dql = 'SELECT p, (SELECT c.brand FROM Doctrine\Tests\Models\Company\CompanyCar c WHERE p.car = c) brandName '.
97
-               'FROM Doctrine\Tests\Models\Company\CompanyManager p';
97
+                'FROM Doctrine\Tests\Models\Company\CompanyManager p';
98 98
         $result = $this->em->createQuery($dql)->getArrayResult();
99 99
 
100 100
         self::assertEquals(1, count($result));
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function testInSubselect()
105 105
     {
106 106
         $dql = "SELECT p.name FROM Doctrine\Tests\Models\Company\CompanyPerson p ".
107
-               "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')";
107
+                "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')";
108 108
         $result = $this->em->createQuery($dql)->getScalarResult();
109 109
 
110 110
         self::assertEquals(1, count($result));
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function testGroupByMultipleFields()
115 115
     {
116 116
         $dql = 'SELECT p.department, p.name, count(p.id) FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
117
-               'GROUP BY p.department, p.name';
117
+                'GROUP BY p.department, p.name';
118 118
         $result = $this->em->createQuery($dql)->getResult();
119 119
 
120 120
         self::assertEquals(4, count($result));
Please login to merge, or discard this 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;
6 6
 
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function testOrderByResultVariableCollectionSize()
57 57
     {
58
-        $dql = 'SELECT p.name, size(p.friends) AS friends ' .
59
-               'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
60
-               'WHERE p.friends IS NOT EMPTY ' .
58
+        $dql = 'SELECT p.name, size(p.friends) AS friends '.
59
+               'FROM Doctrine\Tests\Models\Company\CompanyPerson p '.
60
+               'WHERE p.friends IS NOT EMPTY '.
61 61
                'ORDER BY friends DESC, p.name DESC';
62 62
 
63 63
         $result = $this->em->createQuery($dql)->getScalarResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OrderedCollectionTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@
 block discarded – undo
104 104
         $routeId = $this->createPersistedRouteWithLegs();
105 105
 
106 106
         $route = $this->em->createQuery("SELECT r, l FROM Doctrine\Tests\Models\Routing\RoutingRoute r JOIN r.legs l WHERE r.id = ?1")
107
-                           ->setParameter(1, $routeId)
108
-                           ->getSingleResult();
107
+                            ->setParameter(1, $routeId)
108
+                            ->getSingleResult();
109 109
 
110 110
         self::assertEquals(2, count($route->legs));
111 111
         self::assertEquals("Berlin", $route->legs[0]->fromLocation->getName());
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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest2.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
  * @ORM\DiscriminatorMap({"parent" = "CTIParent", "child" = "CTIChild"})
87 87
  */
88 88
 class CTIParent {
89
-   /**
89
+    /**
90 90
      * @ORM\Id @ORM\Column(type="integer")
91 91
      * @ORM\GeneratedValue(strategy="AUTO")
92 92
      */
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
  * @ORM\Entity @ORM\Table(name="cti_children")
114 114
  */
115 115
 class CTIChild extends CTIParent {
116
-   /**
116
+    /**
117 117
      * @ORM\Column(type="string")
118 118
      */
119 119
     private $data;
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;
6 6
 use Doctrine\Common\Collections\ArrayCollection;
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.