Test Failed
Pull Request — develop (#6719)
by Marco
63:23
created
tests/Doctrine/Tests/ORM/Functional/QueryTest.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         $this->expectExceptionMessage('Too few parameters: the query defines 1 parameters but you only bound 0');
153 153
 
154 154
         $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1')
155
-                  ->getSingleResult();
155
+                    ->getSingleResult();
156 156
     }
157 157
 
158 158
     public function testInvalidInputParameterThrowsException()
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
         $this->expectException(QueryException::class);
161 161
 
162 162
         $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?')
163
-                  ->setParameter(1, 'jwage')
164
-                  ->getSingleResult();
163
+                    ->setParameter(1, 'jwage')
164
+                    ->getSingleResult();
165 165
     }
166 166
 
167 167
     public function testSetParameters()
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
         $parameters->add(new Parameter(2, 'active'));
172 172
 
173 173
         $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1 AND u.status = ?2')
174
-                  ->setParameters($parameters)
175
-                  ->getResult();
174
+                    ->setParameters($parameters)
175
+                    ->getResult();
176 176
 
177 177
         $extractValue = function (Parameter $parameter) {
178 178
             return $parameter->getValue();
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
         $parameters = [1 => 'jwage', 2 => 'active'];
190 190
 
191 191
         $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1 AND u.status = ?2')
192
-                  ->setParameters($parameters)
193
-                  ->getResult();
192
+                    ->setParameters($parameters)
193
+                    ->getResult();
194 194
 
195 195
         self::assertSame(
196 196
             array_values($parameters),
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     public function testGetSingleResultThrowsExceptionOnNoResult()
335 335
     {
336 336
         $this->em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a")
337
-             ->getSingleResult();
337
+                ->getSingleResult();
338 338
     }
339 339
 
340 340
     /**
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     public function testGetSingleScalarResultThrowsExceptionOnNoResult()
344 344
     {
345 345
         $this->em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a")
346
-             ->getSingleScalarResult();
346
+                ->getSingleScalarResult();
347 347
     }
348 348
 
349 349
     /**
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
         $this->em->clear();
375 375
 
376 376
         $this->em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a")
377
-             ->getSingleScalarResult();
377
+                ->getSingleScalarResult();
378 378
     }
379 379
 
380 380
     public function testModifiedLimitQuery()
@@ -391,27 +391,27 @@  discard block
 block discarded – undo
391 391
         $this->em->clear();
392 392
 
393 393
         $data = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u')
394
-                  ->setFirstResult(1)
395
-                  ->setMaxResults(2)
396
-                  ->getResult();
394
+                    ->setFirstResult(1)
395
+                    ->setMaxResults(2)
396
+                    ->getResult();
397 397
 
398 398
         self::assertEquals(2, count($data));
399 399
         self::assertEquals('gblanco1', $data[0]->username);
400 400
         self::assertEquals('gblanco2', $data[1]->username);
401 401
 
402 402
         $data = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u')
403
-                  ->setFirstResult(3)
404
-                  ->setMaxResults(2)
405
-                  ->getResult();
403
+                    ->setFirstResult(3)
404
+                    ->setMaxResults(2)
405
+                    ->getResult();
406 406
 
407 407
         self::assertEquals(2, count($data));
408 408
         self::assertEquals('gblanco3', $data[0]->username);
409 409
         self::assertEquals('gblanco4', $data[1]->username);
410 410
 
411 411
         $data = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u')
412
-                  ->setFirstResult(3)
413
-                  ->setMaxResults(2)
414
-                  ->getScalarResult();
412
+                    ->setFirstResult(3)
413
+                    ->setMaxResults(2)
414
+                    ->getScalarResult();
415 415
     }
416 416
 
417 417
     public function testSupportsQueriesWithEntityNamespaces()
@@ -633,9 +633,9 @@  discard block
 block discarded – undo
633 633
     {
634 634
         $qb = $this->em->createQueryBuilder();
635 635
         $qb->select('u')
636
-           ->from(CmsUser::class, 'u')
637
-           ->innerJoin('u.articles', 'a')
638
-           ->where('(u.id = 0) OR (u.id IS NULL)');
636
+            ->from(CmsUser::class, 'u')
637
+            ->innerJoin('u.articles', 'a')
638
+            ->where('(u.id = 0) OR (u.id IS NULL)');
639 639
 
640 640
         $query = $qb->getQuery();
641 641
         $users = $query->execute();
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 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;
6 6
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $this->em->flush();
98 98
         $this->em->clear();
99 99
 
100
-        $query = $this->em->createQuery('select u, a from ' . CmsUser::class . ' u join u.articles a ORDER BY a.topic');
100
+        $query = $this->em->createQuery('select u, a from '.CmsUser::class.' u join u.articles a ORDER BY a.topic');
101 101
         $users = $query->getResult();
102 102
 
103 103
         self::assertEquals(1, count($users));
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $this->em->flush();
118 118
         $this->em->clear();
119 119
 
120
-        $q = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.username = ?0');
120
+        $q = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.username = ?0');
121 121
         $q->setParameter(0, 'jwage');
122 122
         $user = $q->getSingleResult();
123 123
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $this->expectException(QueryException::class);
130 130
         $this->expectExceptionMessage('Invalid parameter: token 2 is not defined in the query.');
131 131
 
132
-        $q = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1');
132
+        $q = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.name = ?1');
133 133
         $q->setParameter(2, 'jwage');
134 134
         $user = $q->getSingleResult();
135 135
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $this->expectException(QueryException::class);
140 140
         $this->expectExceptionMessage('Too many parameters: the query defines 1 parameters and you bound 2');
141 141
 
142
-        $q = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1');
142
+        $q = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.name = ?1');
143 143
         $q->setParameter(1, 'jwage');
144 144
         $q->setParameter(2, 'jwage');
145 145
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $this->expectException(QueryException::class);
152 152
         $this->expectExceptionMessage('Too few parameters: the query defines 1 parameters but you only bound 0');
153 153
 
154
-        $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1')
154
+        $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.name = ?1')
155 155
                   ->getSingleResult();
156 156
     }
157 157
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $this->expectException(QueryException::class);
161 161
 
162
-        $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?')
162
+        $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.name = ?')
163 163
                   ->setParameter(1, 'jwage')
164 164
                   ->getSingleResult();
165 165
     }
@@ -170,11 +170,11 @@  discard block
 block discarded – undo
170 170
         $parameters->add(new Parameter(1, 'jwage'));
171 171
         $parameters->add(new Parameter(2, 'active'));
172 172
 
173
-        $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1 AND u.status = ?2')
173
+        $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.name = ?1 AND u.status = ?2')
174 174
                   ->setParameters($parameters)
175 175
                   ->getResult();
176 176
 
177
-        $extractValue = function (Parameter $parameter) {
177
+        $extractValue = function(Parameter $parameter) {
178 178
             return $parameter->getValue();
179 179
         };
180 180
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     {
189 189
         $parameters = [1 => 'jwage', 2 => 'active'];
190 190
 
191
-        $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u WHERE u.name = ?1 AND u.status = ?2')
191
+        $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u WHERE u.name = ?1 AND u.status = ?2')
192 192
                   ->setParameters($parameters)
193 193
                   ->getResult();
194 194
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $this->em->clear();
219 219
         $articleId = $article1->id;
220 220
 
221
-        $query = $this->em->createQuery('select a from ' . CmsArticle::class . ' a WHERE a.topic = ?1');
221
+        $query = $this->em->createQuery('select a from '.CmsArticle::class.' a WHERE a.topic = ?1');
222 222
         $articles = $query->iterate(new ArrayCollection([new Parameter(1, 'Doctrine 2')]), Query::HYDRATE_ARRAY);
223 223
 
224 224
         $found = [];
@@ -259,19 +259,19 @@  discard block
 block discarded – undo
259 259
         $this->em->flush();
260 260
         $this->em->clear();
261 261
 
262
-        $query = $this->em->createQuery('select a from ' . CmsArticle::class . ' a');
262
+        $query = $this->em->createQuery('select a from '.CmsArticle::class.' a');
263 263
         $articles = $query->iterate();
264 264
 
265 265
         $iteratedCount = 0;
266 266
         $topics = [];
267 267
 
268
-        foreach($articles AS $row) {
268
+        foreach ($articles AS $row) {
269 269
             $article = $row[0];
270 270
             $topics[] = $article->topic;
271 271
 
272 272
             $identityMap = $this->em->getUnitOfWork()->getIdentityMap();
273 273
             $identityMapCount = count($identityMap[CmsArticle::class]);
274
-            self::assertTrue($identityMapCount>$iteratedCount);
274
+            self::assertTrue($identityMapCount > $iteratedCount);
275 275
 
276 276
             $iteratedCount++;
277 277
         }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 
305 305
         $iteratedCount = 0;
306 306
         $topics = [];
307
-        foreach($articles AS $row) {
307
+        foreach ($articles AS $row) {
308 308
             $article  = $row[0];
309 309
             $topics[] = $article->topic;
310 310
 
@@ -381,8 +381,8 @@  discard block
 block discarded – undo
381 381
     {
382 382
         for ($i = 0; $i < 5; $i++) {
383 383
             $user = new CmsUser;
384
-            $user->name = 'Guilherme' . $i;
385
-            $user->username = 'gblanco' . $i;
384
+            $user->name = 'Guilherme'.$i;
385
+            $user->username = 'gblanco'.$i;
386 386
             $user->status = 'developer';
387 387
             $this->em->persist($user);
388 388
         }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         $this->em->flush();
391 391
         $this->em->clear();
392 392
 
393
-        $data = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u')
393
+        $data = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u')
394 394
                   ->setFirstResult(1)
395 395
                   ->setMaxResults(2)
396 396
                   ->getResult();
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         self::assertEquals('gblanco1', $data[0]->username);
400 400
         self::assertEquals('gblanco2', $data[1]->username);
401 401
 
402
-        $data = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u')
402
+        $data = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u')
403 403
                   ->setFirstResult(3)
404 404
                   ->setMaxResults(2)
405 405
                   ->getResult();
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
         self::assertEquals('gblanco3', $data[0]->username);
409 409
         self::assertEquals('gblanco4', $data[1]->username);
410 410
 
411
-        $data = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u')
411
+        $data = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u')
412 412
                   ->setFirstResult(3)
413 413
                   ->setMaxResults(2)
414 414
                   ->getScalarResult();
@@ -511,13 +511,13 @@  discard block
 block discarded – undo
511 511
         $this->em->flush();
512 512
         $this->em->clear();
513 513
 
514
-        $query = $this->em->createQuery("select u from " . CmsUser::class . " u where u.username = 'gblanco'");
514
+        $query = $this->em->createQuery("select u from ".CmsUser::class." u where u.username = 'gblanco'");
515 515
         $fetchedUser = $query->getOneOrNullResult();
516 516
 
517 517
         self::assertInstanceOf(CmsUser::class, $fetchedUser);
518 518
         self::assertEquals('gblanco', $fetchedUser->username);
519 519
 
520
-        $query = $this->em->createQuery("select u.username from " . CmsUser::class . " u where u.username = 'gblanco'");
520
+        $query = $this->em->createQuery("select u.username from ".CmsUser::class." u where u.username = 'gblanco'");
521 521
         $fetchedUsername = $query->getOneOrNullResult(Query::HYDRATE_SINGLE_SCALAR);
522 522
 
523 523
         self::assertEquals('gblanco', $fetchedUsername);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
     public function testMultiLevelUpdateAndFind()
105 105
     {
106
-    	$manager = new CompanyManager;
106
+        $manager = new CompanyManager;
107 107
         $manager->setName('Roman S. Borschel');
108 108
         $manager->setSalary(100000);
109 109
         $manager->setDepartment('IT');
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
     public function testSelfReferencingOneToOne()
153 153
     {
154
-    	$manager = new CompanyManager;
154
+        $manager = new CompanyManager;
155 155
         $manager->setName('John Smith');
156 156
         $manager->setSalary(100000);
157 157
         $manager->setDepartment('IT');
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     public function testBulkUpdateIssueDDC368()
301 301
     {
302 302
         $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
303
-                  ->execute();
303
+                    ->execute();
304 304
 
305 305
         $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
306 306
                             ->getResult();
@@ -314,9 +314,9 @@  discard block
 block discarded – undo
314 314
     public function testBulkUpdateNonScalarParameterDDC1341()
315 315
     {
316 316
         $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
317
-                  ->setParameter(0, new \DateTime())
318
-                  ->setParameter(1, 'IT')
319
-                  ->execute();
317
+                    ->setParameter(0, new \DateTime())
318
+                    ->setParameter(1, 'IT')
319
+                    ->execute();
320 320
 
321 321
         self::addToAssertionCount(1);
322 322
     }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 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;
6 6
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $this->em->clear();
51 51
 
52
-        $query = $this->em->createQuery('select p from ' . CompanyPerson::class . ' p order by p.name desc');
52
+        $query = $this->em->createQuery('select p from '.CompanyPerson::class.' p order by p.name desc');
53 53
 
54 54
         $entities = $query->getResult();
55 55
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $this->em->clear();
66 66
 
67
-        $query = $this->em->createQuery('select p from ' . CompanyEmployee::class . ' p');
67
+        $query = $this->em->createQuery('select p from '.CompanyEmployee::class.' p');
68 68
 
69 69
         $entities = $query->getResult();
70 70
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $this->em->clear();
85 85
 
86
-        $query = $this->em->createQuery("update " . CompanyEmployee::class . " p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
86
+        $query = $this->em->createQuery("update ".CompanyEmployee::class." p set p.name = ?1, p.department = ?2 where p.name='Guilherme Blanco' and p.salary = ?3");
87 87
 
88 88
         $query->setParameter(1, 'NewName', 'string');
89 89
         $query->setParameter(2, 'NewDepartment');
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         self::assertEquals(1, $numUpdated);
96 96
 
97
-        $query = $this->em->createQuery('delete from ' . CompanyPerson::class . ' p');
97
+        $query = $this->em->createQuery('delete from '.CompanyPerson::class.' p');
98 98
 
99 99
         $numDeleted = $query->execute();
100 100
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $this->em->flush();
170 170
         $this->em->clear();
171 171
 
172
-        $query = $this->em->createQuery('select p, s from ' . CompanyPerson::class . ' p join p.spouse s where p.name=\'Mary Smith\'');
172
+        $query = $this->em->createQuery('select p, s from '.CompanyPerson::class.' p join p.spouse s where p.name=\'Mary Smith\'');
173 173
 
174 174
         $result = $query->getResult();
175 175
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         $this->em->clear();
203 203
 
204
-        $query = $this->em->createQuery('select p, f from ' . CompanyPerson::class . ' p join p.friends f where p.name=?1');
204
+        $query = $this->em->createQuery('select p, f from '.CompanyPerson::class.' p join p.friends f where p.name=?1');
205 205
 
206 206
         $query->setParameter(1, 'Roman');
207 207
 
@@ -267,18 +267,18 @@  discard block
 block discarded – undo
267 267
         $this->em->flush();
268 268
         $this->em->clear();
269 269
 
270
-        $q = $this->em->createQuery('select a from ' . CompanyEvent::class . ' a where a.id = ?1');
270
+        $q = $this->em->createQuery('select a from '.CompanyEvent::class.' a where a.id = ?1');
271 271
 
272 272
         $q->setParameter(1, $event1->getId());
273 273
 
274 274
         $result = $q->getResult();
275 275
 
276 276
         self::assertCount(1, $result);
277
-        self::assertInstanceOf(CompanyAuction::class, $result[0], sprintf("Is of class %s",get_class($result[0])));
277
+        self::assertInstanceOf(CompanyAuction::class, $result[0], sprintf("Is of class %s", get_class($result[0])));
278 278
 
279 279
         $this->em->clear();
280 280
 
281
-        $q = $this->em->createQuery('select a from ' . CompanyOrganization::class . ' a where a.id = ?1');
281
+        $q = $this->em->createQuery('select a from '.CompanyOrganization::class.' a where a.id = ?1');
282 282
 
283 283
         $q->setParameter(1, $org->getId());
284 284
 
@@ -299,10 +299,10 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function testBulkUpdateIssueDDC368()
301 301
     {
302
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.salary = 1')
302
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.salary = 1')
303 303
                   ->execute();
304 304
 
305
-        $result = $this->em->createQuery('SELECT count(p.id) FROM ' . CompanyEmployee::class . ' p WHERE p.salary = 1')
305
+        $result = $this->em->createQuery('SELECT count(p.id) FROM '.CompanyEmployee::class.' p WHERE p.salary = 1')
306 306
                             ->getResult();
307 307
 
308 308
         self::assertGreaterThan(0, count($result));
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      */
314 314
     public function testBulkUpdateNonScalarParameterDDC1341()
315 315
     {
316
-        $this->em->createQuery('UPDATE ' . CompanyEmployee::class . ' AS p SET p.startDate = ?0 WHERE p.department = ?1')
316
+        $this->em->createQuery('UPDATE '.CompanyEmployee::class.' AS p SET p.startDate = ?0 WHERE p.department = ?1')
317 317
                   ->setParameter(0, new \DateTime())
318 318
                   ->setParameter(1, 'IT')
319 319
                   ->execute();
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         $this->em->flush();
372 372
         $this->em->clear();
373 373
 
374
-        $dqlManager = $this->em->createQuery('SELECT m FROM ' . CompanyManager::class . ' m WHERE m.spouse = ?1')
374
+        $dqlManager = $this->em->createQuery('SELECT m FROM '.CompanyManager::class.' m WHERE m.spouse = ?1')
375 375
                                 ->setParameter(1, $person->getId())
376 376
                                 ->getSingleResult();
377 377
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SequenceGeneratorTest.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;
6 6
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
         parent::setUp();
20 20
 
21
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsSequences()) {
21
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsSequences()) {
22 22
             $this->markTestSkipped('Only working for Databases that support sequences.');
23 23
         }
24 24
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                     $this->em->getClassMetadata(SequenceEntity::class),
29 29
                 ]
30 30
             );
31
-        } catch(\Exception $e) {
31
+        } catch (\Exception $e) {
32 32
         }
33 33
     }
34 34
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php 1 patch
Spacing   +5 added lines, -5 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;
6 6
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $listener = new ListenerSecondLevelCacheTest(
201 201
             [
202
-                Events::postFlush => function(){
202
+                Events::postFlush => function() {
203 203
             throw new \RuntimeException('post flush failure');
204 204
         }
205 205
             ]
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         $listener = new ListenerSecondLevelCacheTest(
235 235
             [
236
-                Events::postUpdate => function(){
236
+                Events::postUpdate => function() {
237 237
             throw new \RuntimeException('post update failure');
238 238
         }
239 239
             ]
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         self::assertInstanceOf(State::class, $state);
253 253
         self::assertEquals($stateName, $state->getName());
254 254
 
255
-        $state->setName($stateName . uniqid());
255
+        $state->setName($stateName.uniqid());
256 256
 
257 257
         $this->em->persist($state);
258 258
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
         $listener = new ListenerSecondLevelCacheTest(
283 283
             [
284
-                Events::postRemove => function(){
284
+                Events::postRemove => function() {
285 285
             throw new \RuntimeException('post remove failure');
286 286
         }
287 287
             ]
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php 2 patches
Spacing   +13 added lines, -13 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;
6 6
 
@@ -569,11 +569,11 @@  discard block
 block discarded – undo
569 569
         $user = $this->em->find(CmsUser::class, $this->userId);
570 570
 
571 571
         self::assertFalse($user->articles->isInitialized());
572
-        self::assertEquals(2, count($user->articles->slice(0,10)));
572
+        self::assertEquals(2, count($user->articles->slice(0, 10)));
573 573
 
574 574
         $this->useCMSArticleTopicFilter();
575 575
 
576
-        self::assertEquals(1, count($user->articles->slice(0,10)));
576
+        self::assertEquals(1, count($user->articles->slice(0, 10)));
577 577
     }
578 578
 
579 579
     private function useCMSGroupPrefixFilter()
@@ -617,11 +617,11 @@  discard block
 block discarded – undo
617 617
         $user = $this->em->find(CmsUser::class, $this->userId2);
618 618
 
619 619
         self::assertFalse($user->groups->isInitialized());
620
-        self::assertEquals(2, count($user->groups->slice(0,10)));
620
+        self::assertEquals(2, count($user->groups->slice(0, 10)));
621 621
 
622 622
         $this->useCMSGroupPrefixFilter();
623 623
 
624
-        self::assertEquals(1, count($user->groups->slice(0,10)));
624
+        self::assertEquals(1, count($user->groups->slice(0, 10)));
625 625
     }
626 626
 
627 627
     private function loadFixtureData()
@@ -1111,11 +1111,11 @@  discard block
 block discarded – undo
1111 1111
 {
1112 1112
     public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias)
1113 1113
     {
1114
-        if (!in_array("LocaleAware", $targetEntity->getReflectionClass()->getInterfaceNames())) {
1114
+        if ( ! in_array("LocaleAware", $targetEntity->getReflectionClass()->getInterfaceNames())) {
1115 1115
             return "";
1116 1116
         }
1117 1117
 
1118
-        return $targetTableAlias.'.locale = ' . $this->getParameter('locale'); // getParam uses connection to quote the value.
1118
+        return $targetTableAlias.'.locale = '.$this->getParameter('locale'); // getParam uses connection to quote the value.
1119 1119
     }
1120 1120
 }
1121 1121
 
@@ -1127,7 +1127,7 @@  discard block
 block discarded – undo
1127 1127
             return "";
1128 1128
         }
1129 1129
 
1130
-        return $targetTableAlias.'.country = ' . $this->getParameter('country'); // getParam uses connection to quote the value.
1130
+        return $targetTableAlias.'.country = '.$this->getParameter('country'); // getParam uses connection to quote the value.
1131 1131
     }
1132 1132
 }
1133 1133
 
@@ -1139,7 +1139,7 @@  discard block
 block discarded – undo
1139 1139
             return "";
1140 1140
         }
1141 1141
 
1142
-        return $targetTableAlias.'.name LIKE ' . $this->getParameter('prefix'); // getParam uses connection to quote the value.
1142
+        return $targetTableAlias.'.name LIKE '.$this->getParameter('prefix'); // getParam uses connection to quote the value.
1143 1143
     }
1144 1144
 }
1145 1145
 
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
             return "";
1152 1152
         }
1153 1153
 
1154
-        return $targetTableAlias.'.topic = ' . $this->getParameter('topic'); // getParam uses connection to quote the value.
1154
+        return $targetTableAlias.'.topic = '.$this->getParameter('topic'); // getParam uses connection to quote the value.
1155 1155
     }
1156 1156
 }
1157 1157
 
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
             return "";
1164 1164
         }
1165 1165
 
1166
-        return $targetTableAlias.'.name LIKE ' . $this->getParameter('name');
1166
+        return $targetTableAlias.'.name LIKE '.$this->getParameter('name');
1167 1167
     }
1168 1168
 }
1169 1169
 
@@ -1175,7 +1175,7 @@  discard block
 block discarded – undo
1175 1175
             return "";
1176 1176
         }
1177 1177
 
1178
-        return $targetTableAlias.'."completed" = ' . $this->getParameter('completed');
1178
+        return $targetTableAlias.'."completed" = '.$this->getParameter('completed');
1179 1179
     }
1180 1180
 }
1181 1181
 
@@ -1187,6 +1187,6 @@  discard block
 block discarded – undo
1187 1187
             return "";
1188 1188
         }
1189 1189
 
1190
-        return $targetTableAlias.'.id = ' . $this->getParameter('id');
1190
+        return $targetTableAlias.'.id = '.$this->getParameter('id');
1191 1191
     }
1192 1192
 }
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@  discard block
 block discarded – undo
180 180
         self::assertFalse($em->getFilters()->isEnabled("foo_filter"));
181 181
     }
182 182
 
183
+    /**
184
+     * @param EntityManagerInterface $em
185
+     */
183 186
     protected function configureFilters($em)
184 187
     {
185 188
         // Add filters to the configuration of the EM
@@ -894,6 +897,9 @@  discard block
 block discarded – undo
894 897
         self::assertEquals(2, count($manager->managedContracts->slice(0, 10)));
895 898
     }
896 899
 
900
+    /**
901
+     * @param string $name
902
+     */
897 903
     private function usePersonNameFilter($name)
898 904
     {
899 905
         // Enable the filter
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function testAggregateSum()
26 26
     {
27 27
         $salarySum = $this->em->createQuery('SELECT SUM(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
28
-                               ->getSingleResult();
28
+                                ->getSingleResult();
29 29
 
30 30
         self::assertEquals(1500000, $salarySum['salary']);
31 31
     }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function testAggregateAvg()
34 34
     {
35 35
         $salaryAvg = $this->em->createQuery('SELECT AVG(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
36
-                               ->getSingleResult();
36
+                                ->getSingleResult();
37 37
 
38 38
         self::assertEquals(375000, round($salaryAvg['salary'], 0));
39 39
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public function testAggregateMin()
42 42
     {
43 43
         $salary = $this->em->createQuery('SELECT MIN(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
44
-                               ->getSingleResult();
44
+                                ->getSingleResult();
45 45
 
46 46
         self::assertEquals(100000, $salary['salary']);
47 47
     }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function testAggregateMax()
50 50
     {
51 51
         $salary = $this->em->createQuery('SELECT MAX(m.salary) AS salary FROM Doctrine\Tests\Models\Company\CompanyManager m')
52
-                               ->getSingleResult();
52
+                                ->getSingleResult();
53 53
 
54 54
         self::assertEquals(800000, $salary['salary']);
55 55
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public function testAggregateCount()
58 58
     {
59 59
         $managerCount = $this->em->createQuery('SELECT COUNT(m.id) AS managers FROM Doctrine\Tests\Models\Company\CompanyManager m')
60
-                               ->getSingleResult();
60
+                                ->getSingleResult();
61 61
 
62 62
         self::assertEquals(4, $managerCount['managers']);
63 63
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function testFunctionAbs()
66 66
     {
67 67
         $result = $this->em->createQuery('SELECT m, ABS(m.salary * -1) AS abs FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC')
68
-                         ->getResult();
68
+                            ->getResult();
69 69
 
70 70
         self::assertEquals(4, count($result));
71 71
         self::assertEquals(100000, $result[0]['abs']);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function testFunctionConcat()
78 78
     {
79 79
         $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')
80
-                         ->getArrayResult();
80
+                            ->getArrayResult();
81 81
 
82 82
         self::assertEquals(4, count($arg));
83 83
         self::assertEquals('Roman B.IT', $arg[0]['namedep']);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public function testFunctionLength()
90 90
     {
91 91
         $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')
92
-                         ->getArrayResult();
92
+                            ->getArrayResult();
93 93
 
94 94
         self::assertEquals(4, count($result));
95 95
         self::assertEquals(10, $result[0]['namedeplength']);
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
     public function testFunctionLocate()
102 102
     {
103 103
         $dql = "SELECT m, LOCATE('e', LOWER(m.name)) AS loc, LOCATE('e', LOWER(m.name), 7) AS loc2 ".
104
-               "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
104
+                "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
105 105
 
106 106
         $result = $this->em->createQuery($dql)
107
-                         ->getArrayResult();
107
+                            ->getArrayResult();
108 108
 
109 109
         self::assertEquals(4, count($result));
110 110
         self::assertEquals(0, $result[0]['loc']);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     public function testFunctionLower()
121 121
     {
122 122
         $result = $this->em->createQuery("SELECT m, LOWER(m.name) AS lowername FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
123
-                         ->getArrayResult();
123
+                            ->getArrayResult();
124 124
 
125 125
         self::assertEquals(4, count($result));
126 126
         self::assertEquals('roman b.', $result[0]['lowername']);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     public function testFunctionMod()
133 133
     {
134 134
         $result = $this->em->createQuery("SELECT m, MOD(m.salary, 3500) AS amod FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
135
-                         ->getArrayResult();
135
+                            ->getArrayResult();
136 136
 
137 137
         self::assertEquals(4, count($result));
138 138
         self::assertEquals(2000, $result[0]['amod']);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     public function testFunctionSqrt()
145 145
     {
146 146
         $result = $this->em->createQuery("SELECT m, SQRT(m.salary) AS sqrtsalary FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
147
-                         ->getArrayResult();
147
+                            ->getArrayResult();
148 148
 
149 149
         self::assertEquals(4, count($result));
150 150
         self::assertEquals(316, round($result[0]['sqrtsalary']));
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     public function testFunctionUpper()
157 157
     {
158 158
         $result = $this->em->createQuery("SELECT m, UPPER(m.name) AS uppername FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC")
159
-                         ->getArrayResult();
159
+                            ->getArrayResult();
160 160
 
161 161
         self::assertEquals(4, count($result));
162 162
         self::assertEquals('ROMAN B.', $result[0]['uppername']);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.name";
172 172
 
173 173
         $result = $this->em->createQuery($dql)
174
-                         ->getArrayResult();
174
+                            ->getArrayResult();
175 175
 
176 176
         self::assertEquals(4, count($result));
177 177
         self::assertEquals('Ben', $result[0]['str1']);
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
     public function testFunctionTrim()
189 189
     {
190 190
         $dql = "SELECT m, TRIM(TRAILING '.' FROM m.name) AS str1, ".
191
-               " TRIM(LEADING '.' FROM m.name) AS str2, TRIM(CONCAT(' ', CONCAT(m.name, ' '))) AS str3 ".
192
-               "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
191
+                " TRIM(LEADING '.' FROM m.name) AS str2, TRIM(CONCAT(' ', CONCAT(m.name, ' '))) AS str3 ".
192
+                "FROM Doctrine\Tests\Models\Company\CompanyManager m ORDER BY m.salary ASC";
193 193
 
194 194
         $result = $this->em->createQuery($dql)->getArrayResult();
195 195
 
@@ -361,8 +361,8 @@  discard block
 block discarded – undo
361 361
     }
362 362
 
363 363
     /**
364
-    * @group DDC-1213
365
-    */
364
+     * @group DDC-1213
365
+     */
366 366
     public function testBitAndComparison()
367 367
     {
368 368
         $dql    = 'SELECT m, ' .
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 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;
6 6
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
         self::assertEquals(4, count($result));
150 150
         self::assertEquals(316, round($result[0]['sqrtsalary']));
151
-        self::assertEquals(447,  round($result[1]['sqrtsalary']));
151
+        self::assertEquals(447, round($result[1]['sqrtsalary']));
152 152
         self::assertEquals(632, round($result[2]['sqrtsalary']));
153 153
         self::assertEquals(894, round($result[3]['sqrtsalary']));
154 154
     }
@@ -341,12 +341,12 @@  discard block
 block discarded – undo
341 341
      */
342 342
     public function testBitOrComparison()
343 343
     {
344
-        $dql    = 'SELECT m, ' .
345
-                    'BIT_OR(4, 2) AS bit_or,' .
346
-                    'BIT_OR( (m.salary/100000) , 2 ) AS salary_bit_or ' .
347
-                    'FROM Doctrine\Tests\Models\Company\CompanyManager m ' .
348
-                'ORDER BY ' .
349
-                    'm.id ' ;
344
+        $dql = 'SELECT m, '.
345
+                    'BIT_OR(4, 2) AS bit_or,'.
346
+                    'BIT_OR( (m.salary/100000) , 2 ) AS salary_bit_or '.
347
+                    'FROM Doctrine\Tests\Models\Company\CompanyManager m '.
348
+                'ORDER BY '.
349
+                    'm.id ';
350 350
         $result = $this->em->createQuery($dql)->getArrayResult();
351 351
 
352 352
         self::assertEquals(4 | 2, $result[0]['bit_or']);
@@ -354,10 +354,10 @@  discard block
 block discarded – undo
354 354
         self::assertEquals(4 | 2, $result[2]['bit_or']);
355 355
         self::assertEquals(4 | 2, $result[3]['bit_or']);
356 356
 
357
-        self::assertEquals(($result[0][0]['salary']/100000) | 2, $result[0]['salary_bit_or']);
358
-        self::assertEquals(($result[1][0]['salary']/100000) | 2, $result[1]['salary_bit_or']);
359
-        self::assertEquals(($result[2][0]['salary']/100000) | 2, $result[2]['salary_bit_or']);
360
-        self::assertEquals(($result[3][0]['salary']/100000) | 2, $result[3]['salary_bit_or']);
357
+        self::assertEquals(($result[0][0]['salary'] / 100000) | 2, $result[0]['salary_bit_or']);
358
+        self::assertEquals(($result[1][0]['salary'] / 100000) | 2, $result[1]['salary_bit_or']);
359
+        self::assertEquals(($result[2][0]['salary'] / 100000) | 2, $result[2]['salary_bit_or']);
360
+        self::assertEquals(($result[3][0]['salary'] / 100000) | 2, $result[3]['salary_bit_or']);
361 361
     }
362 362
 
363 363
     /**
@@ -365,12 +365,12 @@  discard block
 block discarded – undo
365 365
     */
366 366
     public function testBitAndComparison()
367 367
     {
368
-        $dql    = 'SELECT m, ' .
369
-                    'BIT_AND(4, 2) AS bit_and,' .
370
-                    'BIT_AND( (m.salary/100000) , 2 ) AS salary_bit_and ' .
371
-                    'FROM Doctrine\Tests\Models\Company\CompanyManager m ' .
372
-                'ORDER BY ' .
373
-                    'm.id ' ;
368
+        $dql = 'SELECT m, '.
369
+                    'BIT_AND(4, 2) AS bit_and,'.
370
+                    'BIT_AND( (m.salary/100000) , 2 ) AS salary_bit_and '.
371
+                    'FROM Doctrine\Tests\Models\Company\CompanyManager m '.
372
+                'ORDER BY '.
373
+                    'm.id ';
374 374
         $result = $this->em->createQuery($dql)->getArrayResult();
375 375
 
376 376
         self::assertEquals(4 & 2, $result[0]['bit_and']);
@@ -378,10 +378,10 @@  discard block
 block discarded – undo
378 378
         self::assertEquals(4 & 2, $result[2]['bit_and']);
379 379
         self::assertEquals(4 & 2, $result[3]['bit_and']);
380 380
 
381
-        self::assertEquals(($result[0][0]['salary']/100000) & 2, $result[0]['salary_bit_and']);
382
-        self::assertEquals(($result[1][0]['salary']/100000) & 2, $result[1]['salary_bit_and']);
383
-        self::assertEquals(($result[2][0]['salary']/100000) & 2, $result[2]['salary_bit_and']);
384
-        self::assertEquals(($result[3][0]['salary']/100000) & 2, $result[3]['salary_bit_and']);
381
+        self::assertEquals(($result[0][0]['salary'] / 100000) & 2, $result[0]['salary_bit_and']);
382
+        self::assertEquals(($result[1][0]['salary'] / 100000) & 2, $result[1]['salary_bit_and']);
383
+        self::assertEquals(($result[2][0]['salary'] / 100000) & 2, $result[2]['salary_bit_and']);
384
+        self::assertEquals(($result[3][0]['salary'] / 100000) & 2, $result[3]['salary_bit_and']);
385 385
     }
386 386
 
387 387
     protected function generateFixture()
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Functional/OneToManyBidirectionalAssociationTest.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;
6 6
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $this->createFixture();
186 186
 
187
-        $product  = $this->em->find(ECommerceProduct::class, $this->product->getId());
187
+        $product = $this->em->find(ECommerceProduct::class, $this->product->getId());
188 188
 
189 189
         $thirdFeature = new ECommerceFeature();
190 190
         $thirdFeature->setDescription('Model writing tutorial');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CascadeRemoveOrderTest.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;
6 6
 
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
      */
156 156
     private $ownerO;
157 157
 
158
-    public function __construct(CascadeRemoveOrderEntityO $eO, $position=1)
158
+    public function __construct(CascadeRemoveOrderEntityO $eO, $position = 1)
159 159
     {
160 160
         $this->position = $position;
161
-        $this->ownerO= $eO;
161
+        $this->ownerO = $eO;
162 162
         $this->ownerO->addOneToManyG($this);
163 163
     }
164 164
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheOneToManyTest.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;
6 6
 
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 
397 397
         $l1 = new Login('session1');
398 398
         $l2 = new Login('session2');
399
-        $token  = new Token('token-hash');
399
+        $token = new Token('token-hash');
400 400
         $token->addLogin($l1);
401 401
         $token->addLogin($l2);
402 402
 
Please login to merge, or discard this patch.