Failed Conditions
Pull Request — 2.6 (#7235)
by Aleksey
10:51
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2224Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function testIssue()
21 21
     {
22
-        $dql = 'SELECT e FROM ' . __NAMESPACE__ . '\DDC2224Entity e WHERE e.field = :field';
22
+        $dql = 'SELECT e FROM '.__NAMESPACE__.'\DDC2224Entity e WHERE e.field = :field';
23 23
         $query = $this->_em->createQuery($dql);
24 24
         $query->setQueryCacheDriver(new ArrayCache());
25 25
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1757Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $dql = $q->getDQL();
22 22
 
23 23
         // Show difference between expected and actual queries on error
24
-        self::assertEquals("SELECT _a FROM " . __NAMESPACE__ . "\DDC1757A _a, " . __NAMESPACE__ . "\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
24
+        self::assertEquals("SELECT _a FROM ".__NAMESPACE__."\DDC1757A _a, ".__NAMESPACE__."\DDC1757B _b INNER JOIN _b.c _c INNER JOIN _c.d _d",
25 25
                 $dql,
26 26
                 "Wrong DQL query");
27 27
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1430Test.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -226,11 +226,11 @@  discard block
 block discarded – undo
226 226
 class DDC1430OrderProduct
227 227
 {
228 228
 
229
-     /**
230
-     * @Id
231
-     * @Column(type="integer")
232
-     * @GeneratedValue()
233
-     */
229
+        /**
230
+         * @Id
231
+         * @Column(type="integer")
232
+         * @GeneratedValue()
233
+         */
234 234
     protected $id;
235 235
 
236 236
     /**
@@ -254,9 +254,9 @@  discard block
 block discarded – undo
254 254
         $this->value = $value;
255 255
     }
256 256
 
257
-     /**
258
-     * @return int
259
-     */
257
+        /**
258
+         * @return int
259
+         */
260 260
     public function getId()
261 261
     {
262 262
         return $this->id;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC353Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
                 $this->_em->getClassMetadata(DDC353Picture::class),
17 17
                 ]
18 18
             );
19
-        } catch(\Exception $ignored) {}
19
+        } catch (\Exception $ignored) {}
20 20
     }
21 21
 
22 22
     public function testWorkingCase()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3192Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
         if (Type::hasType('ddc3192_currency_code')) {
20 20
             $this->fail(
21
-                'Type ddc3192_currency_code exists for testing DDC-3192 only, ' .
21
+                'Type ddc3192_currency_code exists for testing DDC-3192 only, '.
22 22
                 'but it has already been registered for some reason'
23 23
             );
24 24
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->_em->close();
56 56
 
57 57
         $query = $this->_em->createQuery();
58
-        $query->setDQL('SELECT t FROM ' . DDC3192Transaction::class . ' t WHERE t.id = ?1');
58
+        $query->setDQL('SELECT t FROM '.DDC3192Transaction::class.' t WHERE t.id = ?1');
59 59
         $query->setParameter(1, $transaction->id);
60 60
 
61 61
         $resultByQuery = $query->getSingleResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1300Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $this->_em->flush();
36 36
 
37 37
         $query = $this->_em->createQuery('SELECT f, fl FROM Doctrine\Tests\ORM\Functional\Ticket\DDC1300Foo f JOIN f._fooLocaleRefFoo fl');
38
-        $result =  $query->getResult();
38
+        $result = $query->getResult();
39 39
 
40 40
         $this->assertEquals(1, count($result));
41 41
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1400Test.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
         $user1 = $this->_em->getReference(DDC1400User::class, $user1->id);
55 55
 
56 56
         $this->_em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser')
57
-                  ->setParameter('activeUser', $user1)
58
-                  ->getResult();
57
+                    ->setParameter('activeUser', $user1)
58
+                    ->getResult();
59 59
 
60 60
         $queryCount = $this->getCurrentQueryCount();
61 61
 
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 {
110 110
 
111 111
     /**
112
-      * @Id
112
+     * @Id
113 113
      *  @ManyToOne(targetEntity="DDC1400Article", inversedBy="userStates")
114 114
      */
115 115
     public $article;
116 116
 
117 117
     /**
118
-      * @Id
118
+     * @Id
119 119
      *  @ManyToOne(targetEntity="DDC1400User", inversedBy="userStates")
120 120
      */
121 121
     public $user;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         $user1 = $this->_em->getReference(DDC1400User::class, $user1->id);
55 55
 
56
-        $this->_em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser')
56
+        $this->_em->createQuery('SELECT a, s FROM '.DDC1400Article::class.' a JOIN a.userStates s WITH s.user = :activeUser')
57 57
                   ->setParameter('activeUser', $user1)
58 58
                   ->getResult();
59 59
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3644Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         $this->addresses = $addresses;
164 164
 
165
-        $addresses->map(function ($address) use ($self) {
165
+        $addresses->map(function($address) use ($self) {
166 166
             $address->user = $self;
167 167
         });
168 168
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
         $this->pets = $pets;
175 175
 
176
-        $pets->map(function ($pet) use ($self) {
176
+        $pets->map(function($pet) use ($self) {
177 177
             $pet->owner = $self;
178 178
         });
179 179
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC881Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@
 block discarded – undo
80 80
         $this->_em->clear();
81 81
 
82 82
         // fetch-join that foreign-key/primary-key entity association
83
-        $dql = "SELECT c, p FROM " . DDC881PhoneCall::class . " c JOIN c.phonenumber p";
83
+        $dql = "SELECT c, p FROM ".DDC881PhoneCall::class." c JOIN c.phonenumber p";
84 84
         $calls = $this->_em->createQuery($dql)->getResult();
85 85
 
86 86
         $this->assertEquals(2, count($calls));
87 87
         $this->assertNotInstanceOf(Proxy::class, $calls[0]->getPhoneNumber());
88 88
         $this->assertNotInstanceOf(Proxy::class, $calls[1]->getPhoneNumber());
89 89
 
90
-        $dql = "SELECT p, c FROM " . DDC881PhoneNumber::class . " p JOIN p.calls c";
90
+        $dql = "SELECT p, c FROM ".DDC881PhoneNumber::class." p JOIN p.calls c";
91 91
         $numbers = $this->_em->createQuery($dql)->getResult();
92 92
 
93 93
         $this->assertEquals(2, count($numbers));
Please login to merge, or discard this patch.