Failed Conditions
Pull Request — master (#7046)
by Gabriel
13:07
created
tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest.php 1 patch
Spacing   +13 added lines, -13 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
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         $this->em->clear();
50 50
 
51
-        $query = $this->em->createQuery('select p from ' . CompanyPerson::class . ' p order by p.name desc');
51
+        $query = $this->em->createQuery('select p from '.CompanyPerson::class.' p order by p.name desc');
52 52
 
53 53
         $entities = $query->getResult();
54 54
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $this->em->clear();
65 65
 
66
-        $query = $this->em->createQuery('select p from ' . CompanyEmployee::class . ' p');
66
+        $query = $this->em->createQuery('select p from '.CompanyEmployee::class.' p');
67 67
 
68 68
         $entities = $query->getResult();
69 69
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         $this->em->clear();
84 84
 
85
-        $query = $this->em->createQuery('update ' . CompanyEmployee::class . " p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
85
+        $query = $this->em->createQuery('update '.CompanyEmployee::class." p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
86 86
 
87 87
         $query->setParameter(1, 'NewName', 'string');
88 88
         $query->setParameter(2, 'NewDepartment');
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         self::assertEquals(1, $numUpdated);
95 95
 
96
-        $query = $this->em->createQuery('delete from ' . CompanyPerson::class . ' p');
96
+        $query = $this->em->createQuery('delete from '.CompanyPerson::class.' p');
97 97
 
98 98
         $numDeleted = $query->execute();
99 99
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $this->em->flush();
169 169
         $this->em->clear();
170 170
 
171
-        $query = $this->em->createQuery('select p, s from ' . CompanyPerson::class . ' p join p.spouse s where p.name=\'Mary Smith\'');
171
+        $query = $this->em->createQuery('select p, s from '.CompanyPerson::class.' p join p.spouse s where p.name=\'Mary Smith\'');
172 172
 
173 173
         $result = $query->getResult();
174 174
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         $this->em->clear();
202 202
 
203
-        $query = $this->em->createQuery('select p, f from ' . CompanyPerson::class . ' p join p.friends f where p.name=?1');
203
+        $query = $this->em->createQuery('select p, f from '.CompanyPerson::class.' p join p.friends f where p.name=?1');
204 204
 
205 205
         $query->setParameter(1, 'Roman');
206 206
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $this->em->flush();
267 267
         $this->em->clear();
268 268
 
269
-        $q = $this->em->createQuery('select a from ' . CompanyEvent::class . ' a where a.id = ?1');
269
+        $q = $this->em->createQuery('select a from '.CompanyEvent::class.' a where a.id = ?1');
270 270
 
271 271
         $q->setParameter(1, $event1->getId());
272 272
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
         $this->em->clear();
279 279
 
280
-        $q = $this->em->createQuery('select a from ' . CompanyOrganization::class . ' a where a.id = ?1');
280
+        $q = $this->em->createQuery('select a from '.CompanyOrganization::class.' a where a.id = ?1');
281 281
 
282 282
         $q->setParameter(1, $org->getId());
283 283
 
@@ -298,10 +298,10 @@  discard block
 block discarded – undo
298 298
      */
299 299
     public function testBulkUpdateIssueDDC368()
300 300
     {
301
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
301
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.salary = 1')
302 302
                   ->execute();
303 303
 
304
-        $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
304
+        $result = $this->em->createQuery('SELECT count(p.id) FROM '.CompanyEmployee::class.' p WHERE p.salary = 1')
305 305
                             ->getResult();
306 306
 
307 307
         self::assertGreaterThan(0, $result);
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      */
313 313
     public function testBulkUpdateNonScalarParameterDDC1341()
314 314
     {
315
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
315
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.startDate = ?0 WHERE p.department = ?1')
316 316
                   ->setParameter(0, new \DateTime())
317 317
                   ->setParameter(1, 'IT')
318 318
                   ->execute();
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         $this->em->flush();
371 371
         $this->em->clear();
372 372
 
373
-        $dqlManager = $this->em->createQuery('SELECT m FROM ' . CompanyManager::class . ' m WHERE m.spouse = ?1')
373
+        $dqlManager = $this->em->createQuery('SELECT m FROM '.CompanyManager::class.' m WHERE m.spouse = ?1')
374 374
                                 ->setParameter(1, $person->getId())
375 375
                                 ->getSingleResult();
376 376
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1695Test.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
 
23 23
     public function testIssue()
24 24
     {
25
-        $dql = 'SELECT n.smallText, n.publishDate FROM ' . __NAMESPACE__ . '\\DDC1695News n';
25
+        $dql = 'SELECT n.smallText, n.publishDate FROM '.__NAMESPACE__.'\\DDC1695News n';
26 26
         $sql = $this->em->createQuery($dql)->getSQL();
27 27
 
28 28
         self::assertEquals(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC279Test.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->clear();
46 46
 
47 47
         $query = $this->em->createQuery(
48
-            'SELECT x, y, z FROM Doctrine\Tests\ORM\Functional\Ticket\DDC279EntityX x ' .
48
+            'SELECT x, y, z FROM Doctrine\Tests\ORM\Functional\Ticket\DDC279EntityX x '.
49 49
             'INNER JOIN x.y y INNER JOIN y.z z WHERE x.id = ?1'
50 50
         )->setParameter(1, $x->id);
51 51
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6217Test.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\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC425Test.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
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         //$this->em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
28 28
 
29
-        $num = $this->em->createQuery('DELETE ' . __NAMESPACE__ . '\DDC425Entity e WHERE e.someDatetimeField > ?1')
29
+        $num = $this->em->createQuery('DELETE '.__NAMESPACE__.'\DDC425Entity e WHERE e.someDatetimeField > ?1')
30 30
                 ->setParameter(1, new DateTime, Type::DATETIME)
31 31
                 ->getResult();
32 32
         self::assertEquals(0, $num);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC448Test.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
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function testIssue()
25 25
     {
26
-        $q = $this->em->createQuery('select b from ' . __NAMESPACE__ . '\\DDC448SubTable b where b.connectedClassId = ?1');
26
+        $q = $this->em->createQuery('select b from '.__NAMESPACE__.'\\DDC448SubTable b where b.connectedClassId = ?1');
27 27
 
28 28
         self::assertSQLEquals(
29 29
             'SELECT t0."id" AS c0, t0."discr" AS c1, t0."connectedClassId" AS c2 FROM "SubTable" t1 INNER JOIN "DDC448MainTable" t0 ON t1."id" = t0."id" WHERE t0."connectedClassId" = ?',
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2214Test.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
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         $related = $this
50 50
             ->em
51
-            ->createQuery('SELECT b FROM ' . __NAMESPACE__ . '\DDC2214Bar b WHERE b.id IN(:ids)')
51
+            ->createQuery('SELECT b FROM '.__NAMESPACE__.'\DDC2214Bar b WHERE b.id IN(:ids)')
52 52
             ->setParameter('ids', [$bar])
53 53
             ->getResult();
54 54
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6682Test.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\Test\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC493Test.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
 
23 23
     public function testIssue()
24 24
     {
25
-        $q = $this->em->createQuery('select u, c.data from ' . __NAMESPACE__ . '\\DDC493Distributor u JOIN u.contact c');
25
+        $q = $this->em->createQuery('select u, c.data from '.__NAMESPACE__.'\\DDC493Distributor u JOIN u.contact c');
26 26
 
27 27
         self::assertSQLEquals(
28 28
             'SELECT t0."id" AS c0, t1."data" AS c1, t0."discr" AS c2, t0."contact" AS c3 FROM "DDC493Distributor" t2 INNER JOIN "DDC493Customer" t0 ON t2."id" = t0."id" INNER JOIN "DDC493Contact" t1 ON t0."contact" = t1."id"',
Please login to merge, or discard this patch.