Failed Conditions
Pull Request — develop (#6596)
by
unknown
160:54 queued 95:39
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC501Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $userClone = $this->em->merge($userClone);
63 63
 
64 64
         // Back in managed world I would expect to have my phonenumbers back but they aren't!
65
-	// Remember I didn't touch (and probably didn't need) them at all while in detached mode.
65
+    // Remember I didn't touch (and probably didn't need) them at all while in detached mode.
66 66
         self::assertEquals(4, count($userClone->getPhonenumbers()), 'Phonenumbers are not available anymore');
67 67
 
68 68
         // This works fine as long as cmUser::groups doesn't cascade "merge"
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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
 
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
         $user->username = 'lukacho';
92 92
         $user->status = 'developer';
93 93
 
94
-        foreach([1111,2222,3333,4444] as $number) {
94
+        foreach ([1111, 2222, 3333, 4444] as $number) {
95 95
             $phone = new CmsPhonenumber;
96 96
             $phone->phonenumber = $number;
97 97
             $user->addPhonenumber($phone);
98 98
         }
99 99
 
100
-        foreach(['Moshers', 'Headbangers'] as $groupName) {
100
+        foreach (['Moshers', 'Headbangers'] as $groupName) {
101 101
             $group = new CmsGroup;
102 102
             $group->setName($groupName);
103 103
             $user->addGroup($group);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1300Test.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
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->em->flush();
41 41
 
42 42
         $query = $this->em->createQuery('SELECT f, fl FROM Doctrine\Tests\ORM\Functional\Ticket\DDC1300Foo f JOIN f.fooLocaleRefFoo fl');
43
-        $result =  $query->getResult();
43
+        $result = $query->getResult();
44 44
 
45 45
         self::assertEquals(1, count($result));
46 46
     }
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/DDC992Test.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
                 $this->em->getClassMetadata(DDC992Child::class),
24 24
                 ]
25 25
             );
26
-        } catch(\Exception $e) {
26
+        } catch (\Exception $e) {
27 27
 
28 28
         }
29 29
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC211Test.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
     protected $name;
71 71
 
72 72
     /**
73
-    * @ORM\ManyToMany(targetEntity="DDC211Group", inversedBy="users")
74
-    *   @ORM\JoinTable(name="user_groups",
75
-    *       joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
76
-    *       inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}
77
-    *   )
78
-    */
73
+     * @ORM\ManyToMany(targetEntity="DDC211Group", inversedBy="users")
74
+     *   @ORM\JoinTable(name="user_groups",
75
+     *       joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
76
+     *       inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")}
77
+     *   )
78
+     */
79 79
     protected $groups;
80 80
 
81 81
     public function __construct() {
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
     protected $name;
107 107
 
108 108
     /**
109
-    * @ORM\ManyToMany(targetEntity="DDC211User", mappedBy="groups")
110
-    */
109
+     * @ORM\ManyToMany(targetEntity="DDC211User", mappedBy="groups")
110
+     */
111 111
     protected $users;
112 112
 
113 113
     public function __construct() {
Please login to merge, or discard this 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/DDC512Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
 /**
76 76
  * @ORM\Entity
77
-  */
77
+ */
78 78
 class DDC512OfferItem extends DDC512Item
79 79
 {
80 80
 }
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/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.