Passed
Pull Request — 2.6 (#7551)
by Michael
63:33
created
tests/Doctrine/Tests/ORM/Functional/CompositePrimaryKeyTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $this->putTripAroundEurope();
110 110
 
111 111
         $dql = 'SELECT t, p, c FROM Doctrine\Tests\Models\Navigation\NavTour t ' .
112
-               'INNER JOIN t.pois p INNER JOIN p.country c';
112
+                'INNER JOIN t.pois p INNER JOIN p.country c';
113 113
         $tours = $this->_em->createQuery($dql)->getResult();
114 114
 
115 115
         $this->assertEquals(1, count($tours));
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         $this->putTripAroundEurope();
129 129
 
130 130
         $dql = 'SELECT t FROM Doctrine\Tests\Models\Navigation\NavTour t, Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' .
131
-               'WHERE p MEMBER OF t.pois';
131
+                'WHERE p MEMBER OF t.pois';
132 132
         $tours = $this->_em->createQuery($dql)
133
-                           ->getResult();
133
+                            ->getResult();
134 134
 
135 135
         $this->assertEquals(1, count($tours));
136 136
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $this->putGermanysBrandenburderTor();
109 109
         $this->putTripAroundEurope();
110 110
 
111
-        $dql = 'SELECT t, p, c FROM Doctrine\Tests\Models\Navigation\NavTour t ' .
111
+        $dql = 'SELECT t, p, c FROM Doctrine\Tests\Models\Navigation\NavTour t '.
112 112
                'INNER JOIN t.pois p INNER JOIN p.country c';
113 113
         $tours = $this->_em->createQuery($dql)->getResult();
114 114
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $this->putGermanysBrandenburderTor();
128 128
         $this->putTripAroundEurope();
129 129
 
130
-        $dql = 'SELECT t FROM Doctrine\Tests\Models\Navigation\NavTour t, Doctrine\Tests\Models\Navigation\NavPointOfInterest p ' .
130
+        $dql = 'SELECT t FROM Doctrine\Tests\Models\Navigation\NavTour t, Doctrine\Tests\Models\Navigation\NavPointOfInterest p '.
131 131
                'WHERE p MEMBER OF t.pois';
132 132
         $tours = $this->_em->createQuery($dql)
133 133
                            ->getResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/QueryDqlFunctionTest.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function testAggregateSum()
24 24
     {
25 25
         $salarySum = $this->_em->createQuery('SELECT SUM(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
26
-                               ->getSingleResult();
26
+                                ->getSingleResult();
27 27
 
28 28
         $this->assertEquals(1500000, $salarySum['salary']);
29 29
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function testAggregateAvg()
32 32
     {
33 33
         $salaryAvg = $this->_em->createQuery('SELECT AVG(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
34
-                               ->getSingleResult();
34
+                                ->getSingleResult();
35 35
 
36 36
         $this->assertEquals(375000, round($salaryAvg['salary'], 0));
37 37
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function testAggregateMin()
40 40
     {
41 41
         $salary = $this->_em->createQuery('SELECT MIN(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
42
-                               ->getSingleResult();
42
+                                ->getSingleResult();
43 43
 
44 44
         $this->assertEquals(100000, $salary['salary']);
45 45
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function testAggregateMax()
48 48
     {
49 49
         $salary = $this->_em->createQuery('SELECT MAX(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
50
-                               ->getSingleResult();
50
+                                ->getSingleResult();
51 51
 
52 52
         $this->assertEquals(800000, $salary['salary']);
53 53
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function testAggregateCount()
56 56
     {
57 57
         $managerCount = $this->_em->createQuery('SELECT COUNT(m.id) AS managers FROM Doctrine\Tests\Models\Company\CompanyManager m')
58
-                               ->getSingleResult();
58
+                                ->getSingleResult();
59 59
 
60 60
         $this->assertEquals(4, $managerCount['managers']);
61 61
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function testFunctionAbs()
64 64
     {
65 65
         $result = $this->_em->createQuery('SELECT m, ABS(m.salary * -1) AS abs FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
66
-                         ->getResult();
66
+                            ->getResult();
67 67
 
68 68
         $this->assertEquals(4, count($result));
69 69
         $this->assertEquals(100000, $result[0]['abs']);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function testFunctionConcat()
76 76
     {
77 77
         $arg = $this->_em->createQuery('SELECT m, CONCAT(m.name, m.department) AS namedep FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
78
-                         ->getArrayResult();
78
+                            ->getArrayResult();
79 79
 
80 80
         $this->assertEquals(4, count($arg));
81 81
         $this->assertEquals('Roman B.IT', $arg[0]['namedep']);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function testFunctionLength()
88 88
     {
89 89
         $result = $this->_em->createQuery('SELECT m, LENGTH(CONCAT(m.name, m.department)) AS namedeplength FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
90
-                         ->getArrayResult();
90
+                            ->getArrayResult();
91 91
 
92 92
         $this->assertEquals(4, count($result));
93 93
         $this->assertEquals(10, $result[0]['namedeplength']);
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
     public function testFunctionLocate()
100 100
     {
101 101
         $dql = "SELECT m, LOCATE('e', LOWER(m.name)) AS loc, LOCATE('e', LOWER(m.name), 7) AS loc2 ".
102
-               "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
102
+                "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
103 103
 
104 104
         $result = $this->_em->createQuery($dql)
105
-                         ->getArrayResult();
105
+                            ->getArrayResult();
106 106
 
107 107
         $this->assertEquals(4, count($result));
108 108
         $this->assertEquals(0, $result[0]['loc']);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public function testFunctionLower()
119 119
     {
120 120
         $result = $this->_em->createQuery("SELECT m, LOWER(m.name) AS lowername FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
121
-                         ->getArrayResult();
121
+                            ->getArrayResult();
122 122
 
123 123
         $this->assertEquals(4, count($result));
124 124
         $this->assertEquals('roman b.', $result[0]['lowername']);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     public function testFunctionMod()
131 131
     {
132 132
         $result = $this->_em->createQuery("SELECT m, MOD(m.salary, 3500) AS amod FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
133
-                         ->getArrayResult();
133
+                            ->getArrayResult();
134 134
 
135 135
         $this->assertEquals(4, count($result));
136 136
         $this->assertEquals(2000, $result[0]['amod']);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     public function testFunctionSqrt()
143 143
     {
144 144
         $result = $this->_em->createQuery("SELECT m, SQRT(m.salary) AS sqrtsalary FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
145
-                         ->getArrayResult();
145
+                            ->getArrayResult();
146 146
 
147 147
         $this->assertEquals(4, count($result));
148 148
         $this->assertEquals(316, round($result[0]['sqrtsalary']));
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function testFunctionUpper()
155 155
     {
156 156
         $result = $this->_em->createQuery("SELECT m, UPPER(m.name) AS uppername FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
157
-                         ->getArrayResult();
157
+                            ->getArrayResult();
158 158
 
159 159
         $this->assertEquals(4, count($result));
160 160
         $this->assertEquals('ROMAN B.', $result[0]['uppername']);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.name";
170 170
 
171 171
         $result = $this->_em->createQuery($dql)
172
-                         ->getArrayResult();
172
+                            ->getArrayResult();
173 173
 
174 174
         $this->assertEquals(4, count($result));
175 175
         $this->assertEquals('Ben', $result[0]['str1']);
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
     public function testFunctionTrim()
187 187
     {
188 188
         $dql = "SELECT m, TRIM(TRAILING '.' FROM m.name) AS str1, ".
189
-               " TRIM(LEADING '.' FROM m.name) AS str2, TRIM(CONCAT(' ', CONCAT(m.name, ' '))) AS str3 ".
190
-               "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
189
+                " TRIM(LEADING '.' FROM m.name) AS str2, TRIM(CONCAT(' ', CONCAT(m.name, ' '))) AS str3 ".
190
+                "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
191 191
 
192 192
         $result = $this->_em->createQuery($dql)->getArrayResult();
193 193
 
@@ -359,8 +359,8 @@  discard block
 block discarded – undo
359 359
     }
360 360
 
361 361
     /**
362
-    * @group DDC-1213
363
-    */
362
+     * @group DDC-1213
363
+     */
364 364
     public function testBitAndComparison()
365 365
     {
366 366
         $dql    = 'SELECT m, ' .
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $this->assertEquals(4, count($result));
148 148
         $this->assertEquals(316, round($result[0]['sqrtsalary']));
149
-        $this->assertEquals(447,  round($result[1]['sqrtsalary']));
149
+        $this->assertEquals(447, round($result[1]['sqrtsalary']));
150 150
         $this->assertEquals(632, round($result[2]['sqrtsalary']));
151 151
         $this->assertEquals(894, round($result[3]['sqrtsalary']));
152 152
     }
@@ -339,12 +339,12 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public function testBitOrComparison()
341 341
     {
342
-        $dql    = 'SELECT m, ' .
343
-                    'BIT_OR(4, 2) AS bit_or,' .
344
-                    'BIT_OR( (m.salary/100000) , 2 ) AS salary_bit_or ' .
345
-                    'FROM Doctrine\Tests\Models\Company\CompanyManager m ' .
346
-                'ORDER BY ' .
347
-                    'm.id ' ;
342
+        $dql = 'SELECT m, '.
343
+                    'BIT_OR(4, 2) AS bit_or,'.
344
+                    'BIT_OR( (m.salary/100000) , 2 ) AS salary_bit_or '.
345
+                    'FROM Doctrine\Tests\Models\Company\CompanyManager m '.
346
+                'ORDER BY '.
347
+                    'm.id ';
348 348
         $result = $this->_em->createQuery($dql)->getArrayResult();
349 349
 
350 350
         $this->assertEquals(4 | 2, $result[0]['bit_or']);
@@ -352,10 +352,10 @@  discard block
 block discarded – undo
352 352
         $this->assertEquals(4 | 2, $result[2]['bit_or']);
353 353
         $this->assertEquals(4 | 2, $result[3]['bit_or']);
354 354
 
355
-        $this->assertEquals(($result[0][0]['salary']/100000) | 2, $result[0]['salary_bit_or']);
356
-        $this->assertEquals(($result[1][0]['salary']/100000) | 2, $result[1]['salary_bit_or']);
357
-        $this->assertEquals(($result[2][0]['salary']/100000) | 2, $result[2]['salary_bit_or']);
358
-        $this->assertEquals(($result[3][0]['salary']/100000) | 2, $result[3]['salary_bit_or']);
355
+        $this->assertEquals(($result[0][0]['salary'] / 100000) | 2, $result[0]['salary_bit_or']);
356
+        $this->assertEquals(($result[1][0]['salary'] / 100000) | 2, $result[1]['salary_bit_or']);
357
+        $this->assertEquals(($result[2][0]['salary'] / 100000) | 2, $result[2]['salary_bit_or']);
358
+        $this->assertEquals(($result[3][0]['salary'] / 100000) | 2, $result[3]['salary_bit_or']);
359 359
     }
360 360
 
361 361
     /**
@@ -363,12 +363,12 @@  discard block
 block discarded – undo
363 363
     */
364 364
     public function testBitAndComparison()
365 365
     {
366
-        $dql    = 'SELECT m, ' .
367
-                    'BIT_AND(4, 2) AS bit_and,' .
368
-                    'BIT_AND( (m.salary/100000) , 2 ) AS salary_bit_and ' .
369
-                    'FROM Doctrine\Tests\Models\Company\CompanyManager m ' .
370
-                'ORDER BY ' .
371
-                    'm.id ' ;
366
+        $dql = 'SELECT m, '.
367
+                    'BIT_AND(4, 2) AS bit_and,'.
368
+                    'BIT_AND( (m.salary/100000) , 2 ) AS salary_bit_and '.
369
+                    'FROM Doctrine\Tests\Models\Company\CompanyManager m '.
370
+                'ORDER BY '.
371
+                    'm.id ';
372 372
         $result = $this->_em->createQuery($dql)->getArrayResult();
373 373
 
374 374
         $this->assertEquals(4 & 2, $result[0]['bit_and']);
@@ -376,10 +376,10 @@  discard block
 block discarded – undo
376 376
         $this->assertEquals(4 & 2, $result[2]['bit_and']);
377 377
         $this->assertEquals(4 & 2, $result[3]['bit_and']);
378 378
 
379
-        $this->assertEquals(($result[0][0]['salary']/100000) & 2, $result[0]['salary_bit_and']);
380
-        $this->assertEquals(($result[1][0]['salary']/100000) & 2, $result[1]['salary_bit_and']);
381
-        $this->assertEquals(($result[2][0]['salary']/100000) & 2, $result[2]['salary_bit_and']);
382
-        $this->assertEquals(($result[3][0]['salary']/100000) & 2, $result[3]['salary_bit_and']);
379
+        $this->assertEquals(($result[0][0]['salary'] / 100000) & 2, $result[0]['salary_bit_and']);
380
+        $this->assertEquals(($result[1][0]['salary'] / 100000) & 2, $result[1]['salary_bit_and']);
381
+        $this->assertEquals(($result[2][0]['salary'] / 100000) & 2, $result[2]['salary_bit_and']);
382
+        $this->assertEquals(($result[3][0]['salary'] / 100000) & 2, $result[3]['salary_bit_and']);
383 383
     }
384 384
 
385 385
     protected function generateFixture()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/NativeQueryTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -207,13 +207,13 @@
 block discarded – undo
207 207
 
208 208
         $q = $this->_em->createNativeQuery('SELECT id, name, status, phonenumber FROM cms_users INNER JOIN cms_phonenumbers ON id = user_id WHERE username = ?', $rsm);
209 209
         $q2 = $q->setSQL('foo')
210
-          ->setResultSetMapping($rsm)
211
-          ->expireResultCache(true)
212
-          ->setHint('foo', 'bar')
213
-          ->setParameter(1, 'foo')
214
-          ->setParameters($parameters)
215
-          ->setResultCacheDriver(null)
216
-          ->setResultCacheLifetime(3500);
210
+            ->setResultSetMapping($rsm)
211
+            ->expireResultCache(true)
212
+            ->setHint('foo', 'bar')
213
+            ->setParameter(1, 'foo')
214
+            ->setParameters($parameters)
215
+            ->setResultCacheDriver(null)
216
+            ->setResultCacheLifetime(3500);
217 217
 
218 218
         $this->assertSame($q, $q2);
219 219
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -401,8 +401,8 @@  discard block
 block discarded – undo
401 401
 
402 402
         $this->assertCount(1, $result);
403 403
         $this->assertInstanceOf(CmsAddress::class, $result[0]);
404
-        $this->assertEquals($addr->id,  $result[0]->id);
405
-        $this->assertEquals($addr->city,  $result[0]->city);
404
+        $this->assertEquals($addr->id, $result[0]->id);
405
+        $this->assertEquals($addr->city, $result[0]->city);
406 406
         $this->assertEquals($addr->country, $result[0]->country);
407 407
     }
408 408
 
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
         $repository = $this->_em->getRepository(CmsUser::class);
566 566
 
567 567
         $result = $repository->createNativeNamedQuery('fetchUserPhonenumberCount')
568
-                        ->setParameter(1, ['test','FabioBatSilva'])->getResult();
568
+                        ->setParameter(1, ['test', 'FabioBatSilva'])->getResult();
569 569
 
570 570
         $this->assertEquals(2, count($result));
571 571
         $this->assertTrue(is_array($result[0]));
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
         $rsm = new ResultSetMappingBuilder($this->_em, ResultSetMappingBuilder::COLUMN_RENAMING_INCREMENT);
799 799
         $rsm->addRootEntityFromClassMetadata(CmsUser::class, 'u');
800 800
 
801
-        $this->assertSQLEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4', (string)$rsm);
801
+        $this->assertSQLEquals('u.id AS id0, u.status AS status1, u.username AS username2, u.name AS name3, u.email_id AS email_id4', (string) $rsm);
802 802
     }
803 803
 
804 804
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheOneToManyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -394,7 +394,7 @@
 block discarded – undo
394 394
 
395 395
         $l1 = new Login('session1');
396 396
         $l2 = new Login('session2');
397
-        $token  = new Token('token-hash');
397
+        $token = new Token('token-hash');
398 398
         $token->addLogin($l1);
399 399
         $token->addLogin($l2);
400 400
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -302,8 +302,8 @@
 block discarded – undo
302 302
     }
303 303
 
304 304
     /**
305
-    * @group DDC-1955
306
-    */
305
+     * @group DDC-1955
306
+     */
307 307
     public function testLifecycleCallbackEventArgs()
308 308
     {
309 309
         $e = new LifecycleCallbackEventArgEntity;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -350,13 +350,13 @@
 block discarded – undo
350 350
     private $value;
351 351
     /** @Column(type="string") */
352 352
     private $name;
353
-    public function getId() {return $this->id;}
354
-    public function getValue() {return $this->value;}
355
-    public function setValue($value) {$this->value = $value;}
356
-    public function getName() {return $this->name;}
357
-    public function setName($name) {$this->name = $name;}
353
+    public function getId() {return $this->id; }
354
+    public function getValue() {return $this->value; }
355
+    public function setValue($value) {$this->value = $value; }
356
+    public function getName() {return $this->name; }
357
+    public function setName($name) {$this->name = $name; }
358 358
     /** @PreUpdate */
359
-    public function testCallback() {$this->value = 'Hello World';}
359
+    public function testCallback() {$this->value = 'Hello World'; }
360 360
 }
361 361
 
362 362
 /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ReadOnlyTest.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
                 $this->_em->getClassMetadata(ReadOnlyEntity::class),
22 22
                 ]
23 23
             );
24
-        } catch(\Exception $e) {
24
+        } catch (\Exception $e) {
25 25
         }
26 26
     }
27 27
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OneToOneEagerLoadingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 $this->_em->getClassMetadata(TrainOrder::class),
26 26
                 ]
27 27
             );
28
-        } catch(\Exception $e) {}
28
+        } catch (\Exception $e) {}
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/TypeTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $this->assertSame('2009-10-02 20:10:52', $dateTimeDb->datetime->format('Y-m-d H:i:s'));
127 127
 
128 128
         $articles = $this->_em->getRepository(DateTimeModel::class)
129
-                              ->findBy(['datetime' => new \DateTime()]);
129
+                                ->findBy(['datetime' => new \DateTime()]);
130 130
 
131 131
         $this->assertEmpty($articles);
132 132
     }
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
         $this->_em->clear();
163 163
 
164 164
         $dateTimeDb = $this->_em->createQueryBuilder()
165
-                                 ->select('d')
166
-                                 ->from(DateTimeModel::class, 'd')
167
-                                 ->where('d.datetime = ?1')
168
-                                 ->setParameter(1, $date, DBALType::DATETIME)
169
-                                 ->getQuery()->getSingleResult();
165
+                                    ->select('d')
166
+                                    ->from(DateTimeModel::class, 'd')
167
+                                    ->where('d.datetime = ?1')
168
+                                    ->setParameter(1, $date, DBALType::DATETIME)
169
+                                    ->getQuery()->getSingleResult();
170 170
 
171 171
         $this->assertInstanceOf(\DateTime::class, $dateTimeDb->datetime);
172 172
         $this->assertSame('2009-10-02 20:10:52', $dateTimeDb->datetime->format('Y-m-d H:i:s'));
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $this->_em->flush();
30 30
         $this->_em->clear();
31 31
 
32
-        $dql = 'SELECT d FROM ' . DecimalModel::class . ' d';
32
+        $dql = 'SELECT d FROM '.DecimalModel::class.' d';
33 33
         $decimal = $this->_em->createQuery($dql)->getSingleResult();
34 34
 
35 35
         $this->assertSame('0.15', $decimal->decimal);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->_em->flush();
50 50
         $this->_em->clear();
51 51
 
52
-        $dql = 'SELECT b FROM ' . BooleanModel::class . ' b WHERE b.booleanField = true';
52
+        $dql = 'SELECT b FROM '.BooleanModel::class.' b WHERE b.booleanField = true';
53 53
         $bool = $this->_em->createQuery($dql)->getSingleResult();
54 54
 
55 55
         $this->assertTrue($bool->booleanField);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $this->_em->flush();
60 60
         $this->_em->clear();
61 61
 
62
-        $dql = 'SELECT b FROM ' . BooleanModel::class . ' b WHERE b.booleanField = false';
62
+        $dql = 'SELECT b FROM '.BooleanModel::class.' b WHERE b.booleanField = false';
63 63
         $bool = $this->_em->createQuery($dql)->getSingleResult();
64 64
 
65 65
         $this->assertFalse($bool->booleanField);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $this->_em->flush();
76 76
         $this->_em->clear();
77 77
 
78
-        $dql = 'SELECT s FROM ' . SerializationModel::class . ' s';
78
+        $dql = 'SELECT s FROM '.SerializationModel::class.' s';
79 79
         $serialize = $this->_em->createQuery($dql)->getSingleResult();
80 80
 
81 81
         $this->assertSame(["foo" => "bar", "bar" => "baz"], $serialize->array);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $this->_em->flush();
91 91
         $this->_em->clear();
92 92
 
93
-        $dql = 'SELECT s FROM ' . SerializationModel::class . ' s';
93
+        $dql = 'SELECT s FROM '.SerializationModel::class.' s';
94 94
         $serialize = $this->_em->createQuery($dql)->getSingleResult();
95 95
 
96 96
         $this->assertInstanceOf('stdClass', $serialize->object);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/TypeValueSqlTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->assertEquals('FOO', $this->_em->getConnection()->fetchColumn("select named_lower_case_string from customtype_uppercases where id=".$entity->id.""), 'Database holds uppercase string');
71 71
 
72 72
 
73
-        $entity->namedLowerCaseString   = 'bar';
73
+        $entity->namedLowerCaseString = 'bar';
74 74
 
75 75
         $this->_em->persist($entity);
76 76
         $this->_em->flush();
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
         $this->_em->clear();
130 130
 
131
-        $query = $this->_em->createQuery("SELECT p, p.customInteger, c from Doctrine\Tests\Models\CustomType\CustomTypeParent p JOIN p.child c where p.id = " . $parentId);
131
+        $query = $this->_em->createQuery("SELECT p, p.customInteger, c from Doctrine\Tests\Models\CustomType\CustomTypeParent p JOIN p.child c where p.id = ".$parentId);
132 132
 
133 133
         $result = $query->getResult();
134 134
 
Please login to merge, or discard this patch.