Completed
Pull Request — master (#7046)
by Gabriel
12:09
created
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/DDC633Test.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
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $this->em->flush();
66 66
         $this->em->clear();
67 67
 
68
-        $appointments = $this->em->createQuery('SELECT a FROM ' . __NAMESPACE__ . "\DDC633Appointment a")->getResult();
68
+        $appointments = $this->em->createQuery('SELECT a FROM '.__NAMESPACE__."\DDC633Appointment a")->getResult();
69 69
 
70 70
         foreach ($appointments as $eagerAppointment) {
71 71
             self::assertInstanceOf(GhostObjectInterface::class, $eagerAppointment->patient);
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/DDC2825Test.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
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $platform = $this->em->getConnection()->getDatabasePlatform();
27 27
 
28
-        if (! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) {
28
+        if ( ! $platform->supportsSchemas() && ! $platform->canEmulateSchemas()) {
29 29
             $this->markTestSkipped('This test is only useful for databases that support schemas or can emulate them.');
30 30
         }
31 31
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         // Checks sequence name validity
63 63
         self::assertEquals(
64
-            str_replace('"', '', $fullTableName) . '_' . $property->getColumnName() . '_seq',
64
+            str_replace('"', '', $fullTableName).'_'.$property->getColumnName().'_seq',
65 65
             $idSequenceName
66 66
         );
67 67
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3634Test.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
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
         $metadata = $this->em->getClassMetadata(DDC3634Entity::class);
24 24
 
25
-        if (! $metadata->getValueGenerationPlan()->containsDeferred()) {
25
+        if ( ! $metadata->getValueGenerationPlan()->containsDeferred()) {
26 26
             $this->markTestSkipped('Need a post-insert ID generator in order to make this test work correctly');
27 27
         }
28 28
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function testSavesVeryLargeIntegerAutoGeneratedValue()
41 41
     {
42
-        $veryLargeId = PHP_INT_MAX . PHP_INT_MAX;
42
+        $veryLargeId = PHP_INT_MAX.PHP_INT_MAX;
43 43
 
44 44
         $entityManager = EntityManager::create(
45 45
             new DDC3634LastInsertIdMockingConnection($veryLargeId, $this->em->getConnection()),
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC512Test.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
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $this->em->flush();
35 35
         $this->em->clear();
36 36
 
37
-        $q = $this->em->createQuery('select u,i from ' . __NAMESPACE__ . '\\DDC512Customer u left join u.item i');
37
+        $q = $this->em->createQuery('select u,i from '.__NAMESPACE__.'\\DDC512Customer u left join u.item i');
38 38
         $result = $q->getResult();
39 39
 
40 40
         self::assertCount(2, $result);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC881Test.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
 
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
         $this->em->clear();
82 82
 
83 83
         // fetch-join that foreign-key/primary-key entity association
84
-        $dql = 'SELECT c, p FROM ' . DDC881PhoneCall::class . ' c JOIN c.phonenumber p';
84
+        $dql = 'SELECT c, p FROM '.DDC881PhoneCall::class.' c JOIN c.phonenumber p';
85 85
         $calls = $this->em->createQuery($dql)->getResult();
86 86
 
87 87
         self::assertCount(2, $calls);
88 88
         self::assertNotInstanceOf(GhostObjectInterface::class, $calls[0]->getPhoneNumber());
89 89
         self::assertNotInstanceOf(GhostObjectInterface::class, $calls[1]->getPhoneNumber());
90 90
 
91
-        $dql = 'SELECT p, c FROM ' . DDC881PhoneNumber::class . ' p JOIN p.calls c';
91
+        $dql = 'SELECT p, c FROM '.DDC881PhoneNumber::class.' p JOIN p.calls c';
92 92
         $numbers = $this->em->createQuery($dql)->getResult();
93 93
 
94 94
         self::assertCount(2, $numbers);
Please login to merge, or discard this patch.