Failed Conditions
Pull Request — develop (#6947)
by Filippo
10:01
created
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
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $related = $this
51 51
             ->em
52
-            ->createQuery('SELECT b FROM '.__NAMESPACE__ . '\DDC2214Bar b WHERE b.id IN(:ids)')
52
+            ->createQuery('SELECT b FROM '.__NAMESPACE__.'\DDC2214Bar b WHERE b.id IN(:ids)')
53 53
             ->setParameter('ids', [$bar])
54 54
             ->getResult();
55 55
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1757Test.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
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $dql = $q->getDQL();
25 25
 
26 26
         // Show difference between expected and actual queries on error
27
-        self::assertEquals("SELECT _a FROM " . __NAMESPACE__ . "\DDC1757A _a, " . __NAMESPACE__ . "\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
27
+        self::assertEquals("SELECT _a FROM ".__NAMESPACE__."\DDC1757A _a, ".__NAMESPACE__."\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
28 28
                 $dql,
29 29
                 "Wrong DQL query");
30 30
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2931Test.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
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             ->em
76 76
             ->createQuery(
77 77
                 'SELECT e, p, c FROM '
78
-                . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
78
+                . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
79 79
             )
80 80
             ->setParameter('id', $second)
81 81
             ->setHint(Query::HINT_REFRESH, true)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC211Test.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
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $this->em->persist($group);
39 39
             $this->em->flush();
40 40
 
41
-            if (!$user->getGroups()->contains($group)) {
41
+            if ( ! $user->getGroups()->contains($group)) {
42 42
                 $user->getGroups()->add($group);
43 43
                 $group->getUsers()->add($user);
44 44
                 $this->em->flush();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3634Test.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
 
@@ -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/DDC1884Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Doctrine\Tests\ORM\Functional\Ticket;
5 5
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         $qb = $this->em->createQueryBuilder();
145 145
 
146
-        $result =  $qb->select('r, d, c')
146
+        $result = $qb->select('r, d, c')
147 147
             ->from(PaidRide::class, 'r')
148 148
             ->leftJoin('r.driver', 'd')
149 149
             ->leftJoin('r.car', 'c')
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1526Test.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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $entity = new DDC1526Menu;
29 29
 
30 30
             if (isset ($parents[($i % 3)])) {
31
-                $entity->parent = $parents[($i%3)];
31
+                $entity->parent = $parents[($i % 3)];
32 32
             }
33 33
 
34 34
             $this->em->persist($entity);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 
41 41
         $dql = "SELECT m, c
42
-            FROM " . __NAMESPACE__ . "\DDC1526Menu m
42
+            FROM " . __NAMESPACE__."\DDC1526Menu m
43 43
             LEFT JOIN m.children c";
44 44
         $menus = $this->em->createQuery($dql)->getResult();
45 45
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2519Test.php 1 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\Ticket;
6 6
 
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function loadFixture()
60 60
     {
61
-        $user1              = new LegacyUser();
61
+        $user1 = new LegacyUser();
62 62
         $user1->username   = 'FabioBatSilva';
63 63
         $user1->name       = 'Fabio B. Silva';
64 64
         $user1->status     = 'active';
65 65
 
66
-        $user2              = new LegacyUser();
66
+        $user2 = new LegacyUser();
67 67
         $user2->username   = 'doctrinebot';
68 68
         $user2->name       = 'Doctrine Bot';
69 69
         $user2->status     = 'active';
70 70
 
71
-        $user3              = new LegacyUser();
71
+        $user3 = new LegacyUser();
72 72
         $user3->username   = 'test';
73 73
         $user3->name       = 'Tester';
74 74
         $user3->status     = 'active';
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1250Test.php 2 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->em->clear();
41 41
 
42 42
         $history = $this->em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1')
43
-                  ->setParameter(1, $c2->id)->getSingleResult();
43
+                    ->setParameter(1, $c2->id)->getSingleResult();
44 44
 
45 45
         self::assertInstanceOf(DDC1250ClientHistory::class, $history);
46 46
     }
@@ -92,6 +92,4 @@  discard block
 block discarded – undo
92 92
 mappedBy: declinedClientsHistory
93 93
 lifecycleCallbacks: { }
94 94
 repositoryClass: Entities\ClientsHistoryRepository
95
-
96
-
97 95
  */
Please login to merge, or discard this 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
 
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
         $c1->declinedClientsHistory = $c2;
32 32
         $c1->declinedBy = $c2;
33 33
         $c2->declinedBy = $c1;
34
-        $c2->declinedClientsHistory= $c1;
34
+        $c2->declinedClientsHistory = $c1;
35 35
 
36 36
         $this->em->persist($c1);
37 37
         $this->em->persist($c2);
38 38
         $this->em->flush();
39 39
         $this->em->clear();
40 40
 
41
-        $history = $this->em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1')
41
+        $history = $this->em->createQuery('SELECT h FROM '.__NAMESPACE__.'\\DDC1250ClientHistory h WHERE h.id = ?1')
42 42
                   ->setParameter(1, $c2->id)->getSingleResult();
43 43
 
44 44
         self::assertInstanceOf(DDC1250ClientHistory::class, $history);
Please login to merge, or discard this patch.