Failed Conditions
Pull Request — develop (#6873)
by
unknown
112:44 queued 47:41
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2660Test.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
 
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
                 $this->em->getClassMetadata(DDC2660CustomerOrder::class)
28 28
                 ]
29 29
             );
30
-        } catch(\Exception $e) {
30
+        } catch (\Exception $e) {
31 31
             return;
32 32
         }
33 33
 
34 34
         for ($i = 0; $i < 5; $i++) {
35 35
             $product = new DDC2660Product();
36 36
             $customer = new DDC2660Customer();
37
-            $order = new DDC2660CustomerOrder($product, $customer, 'name' . $i);
37
+            $order = new DDC2660CustomerOrder($product, $customer, 'name'.$i);
38 38
 
39 39
             $this->em->persist($product);
40 40
             $this->em->persist($customer);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1238Test.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
                 $this->em->getClassMetadata(DDC1238User::class),
21 21
                 ]
22 22
             );
23
-        } catch(\Exception $e) {
23
+        } catch (\Exception $e) {
24 24
 
25 25
         }
26 26
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     public function testExceptionIsThrownWhenCallingFindByWithoutParameter() {
312 312
         $this->em->getRepository(CmsUser::class)
313
-                  ->findByStatus();
313
+                    ->findByStatus();
314 314
     }
315 315
 
316 316
     /**
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     public function testExceptionIsThrownWhenUsingInvalidFieldName() {
320 320
         $this->em->getRepository(CmsUser::class)
321
-                  ->findByThisFieldDoesNotExist('testvalue');
321
+                    ->findByThisFieldDoesNotExist('testvalue');
322 322
     }
323 323
 
324 324
     /**
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         $this->expectException(TransactionRequiredException::class);
331 331
 
332 332
         $this->em->getRepository(CmsUser::class)
333
-                  ->find(1, LockMode::PESSIMISTIC_READ);
333
+                    ->find(1, LockMode::PESSIMISTIC_READ);
334 334
     }
335 335
 
336 336
     /**
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $this->expectException(TransactionRequiredException::class);
343 343
 
344 344
         $this->em->getRepository(CmsUser::class)
345
-                  ->find(1, LockMode::PESSIMISTIC_WRITE);
345
+                    ->find(1, LockMode::PESSIMISTIC_WRITE);
346 346
     }
347 347
 
348 348
     /**
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         $this->expectException(OptimisticLockException::class);
355 355
 
356 356
         $this->em->getRepository(CmsUser::class)
357
-                  ->find(1, LockMode::OPTIMISTIC);
357
+                    ->find(1, LockMode::OPTIMISTIC);
358 358
     }
359 359
 
360 360
     /**
@@ -435,13 +435,13 @@  discard block
 block discarded – undo
435 435
      */
436 436
     public function testFindOneByOrderBy()
437 437
     {
438
-    	$this->loadFixture();
438
+        $this->loadFixture();
439 439
 
440
-    	$repos = $this->em->getRepository(CmsUser::class);
441
-    	$userAsc = $repos->findOneBy([], ["username" => "ASC"]);
442
-    	$userDesc = $repos->findOneBy([], ["username" => "DESC"]);
440
+        $repos = $this->em->getRepository(CmsUser::class);
441
+        $userAsc = $repos->findOneBy([], ["username" => "ASC"]);
442
+        $userDesc = $repos->findOneBy([], ["username" => "DESC"]);
443 443
 
444
-    	self::assertNotSame($userAsc, $userDesc);
444
+        self::assertNotSame($userAsc, $userDesc);
445 445
     }
446 446
 
447 447
     /**
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 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
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $repos = $this->em->getRepository(CmsUser::class);
183 183
 
184 184
         $user = $repos->find($user1Id);
185
-        self::assertInstanceOf(CmsUser::class,$user);
185
+        self::assertInstanceOf(CmsUser::class, $user);
186 186
         self::assertEquals('Roman', $user->name);
187 187
         self::assertEquals('freak', $user->status);
188 188
     }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
         $users = $repos->findBy(['status' => 'dev']);
196 196
         self::assertCount(2, $users);
197
-        self::assertInstanceOf(CmsUser::class,$users[0]);
197
+        self::assertInstanceOf(CmsUser::class, $users[0]);
198 198
         self::assertEquals('Guilherme', $users[0]->name);
199 199
         self::assertEquals('dev', $users[0]->status);
200 200
     }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $addresses  = $repository->findBy(['user' => [$user1->getId(), $user2->getId()]]);
221 221
 
222 222
         self::assertCount(2, $addresses);
223
-        self::assertInstanceOf(CmsAddress::class,$addresses[0]);
223
+        self::assertInstanceOf(CmsAddress::class, $addresses[0]);
224 224
     }
225 225
 
226 226
     public function testFindByAssociationWithObjectAsParameter()
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         $addresses  = $repository->findBy(['user' => [$user1, $user2]]);
245 245
 
246 246
         self::assertCount(2, $addresses);
247
-        self::assertInstanceOf(CmsAddress::class,$addresses[0]);
247
+        self::assertInstanceOf(CmsAddress::class, $addresses[0]);
248 248
     }
249 249
 
250 250
     public function testFindFieldByMagicCall()
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
         $users = $repos->findByStatus('dev');
256 256
         self::assertCount(2, $users);
257
-        self::assertInstanceOf(CmsUser::class,$users[0]);
257
+        self::assertInstanceOf(CmsUser::class, $users[0]);
258 258
         self::assertEquals('Guilherme', $users[0]->name);
259 259
         self::assertEquals('dev', $users[0]->status);
260 260
     }
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
         self::assertCount(2, $usersAsc);
595 595
         self::assertCount(2, $usersDesc);
596 596
 
597
-        self::assertInstanceOf(CmsUser::class,$usersAsc[0]);
597
+        self::assertInstanceOf(CmsUser::class, $usersAsc[0]);
598 598
         self::assertEquals('Alexander', $usersAsc[0]->name);
599 599
         self::assertEquals('dev', $usersAsc[0]->status);
600 600
 
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
     public function testCanRetrieveRepositoryFromClassNameWithLeadingBackslash()
676 676
     {
677 677
         self::assertSame(
678
-            $this->em->getRepository('\\' . CmsUser::class),
678
+            $this->em->getRepository('\\'.CmsUser::class),
679 679
             $this->em->getRepository(CmsUser::class)
680 680
         );
681 681
     }
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
         $data = $repo->findBy(['user' => [1, 2, 3]]);
714 714
 
715 715
         $query = array_pop($this->sqlLoggerStack->queries);
716
-        self::assertEquals([1,2,3], $query['params'][0]);
716
+        self::assertEquals([1, 2, 3], $query['params'][0]);
717 717
         self::assertEquals(Connection::PARAM_INT_ARRAY, $query['types'][0]);
718 718
     }
719 719
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheManyToManyTest.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
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $entity     = $this->em->find(Travel::class, $entitiId);
235 235
 
236 236
         self::assertEquals(0, $entity->getVisitedCities()->count());
237
-        self::assertEquals($queryCount+2, $this->getCurrentQueryCount());
237
+        self::assertEquals($queryCount + 2, $this->getCurrentQueryCount());
238 238
 
239 239
         $this->em->clear();
240 240
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OneToOneEagerLoadingTest.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
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 $this->em->getClassMetadata(TrainOrder::class),
30 30
                 ]
31 31
             );
32
-        } catch(\Exception $e) {}
32
+        } catch (\Exception $e) {}
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/AdvancedDqlQueryTest.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function testOrderByResultVariableCollectionSize()
57 57
     {
58
-        $dql = 'SELECT p.name, size(p.friends) AS friends ' .
59
-               'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
60
-               'WHERE p.friends IS NOT EMPTY ' .
58
+        $dql = 'SELECT p.name, size(p.friends) AS friends '.
59
+               'FROM Doctrine\Tests\Models\Company\CompanyPerson p '.
60
+               'WHERE p.friends IS NOT EMPTY '.
61 61
                'ORDER BY friends DESC, p.name DESC';
62 62
 
63 63
         $result = $this->em->createQuery($dql)->getScalarResult();
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     public function testAggregateWithHavingClause()
29 29
     {
30 30
         $dql = 'SELECT p.department, AVG(p.salary) AS avgSalary '.
31
-               'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
32
-               'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
31
+                'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
32
+                'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
33 33
 
34 34
         $result = $this->em->createQuery($dql)->getScalarResult();
35 35
 
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public function testUnnamedScalarResultsAreOneBased()
44 44
     {
45 45
         $dql = 'SELECT p.department, AVG(p.salary) '.
46
-               'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
47
-               'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
46
+                'FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
47
+                'GROUP BY p.department HAVING SUM(p.salary) > 200000 ORDER BY p.department';
48 48
 
49 49
         $result = $this->em->createQuery($dql)->getScalarResult();
50 50
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
     public function testOrderByResultVariableCollectionSize()
57 57
     {
58 58
         $dql = 'SELECT p.name, size(p.friends) AS friends ' .
59
-               'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
60
-               'WHERE p.friends IS NOT EMPTY ' .
61
-               'ORDER BY friends DESC, p.name DESC';
59
+                'FROM Doctrine\Tests\Models\Company\CompanyPerson p ' .
60
+                'WHERE p.friends IS NOT EMPTY ' .
61
+                'ORDER BY friends DESC, p.name DESC';
62 62
 
63 63
         $result = $this->em->createQuery($dql)->getScalarResult();
64 64
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function testIsNullAssociation()
81 81
     {
82 82
         $dql = 'SELECT p FROM Doctrine\Tests\Models\Company\CompanyPerson p '.
83
-               'WHERE p.spouse IS NULL';
83
+                'WHERE p.spouse IS NULL';
84 84
         $result = $this->em->createQuery($dql)->getResult();
85 85
 
86 86
         self::assertCount(2, $result);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function testSelectSubselect()
95 95
     {
96 96
         $dql = 'SELECT p, (SELECT c.brand FROM Doctrine\Tests\Models\Company\CompanyCar c WHERE p.car = c) brandName '.
97
-               'FROM Doctrine\Tests\Models\Company\CompanyManager p';
97
+                'FROM Doctrine\Tests\Models\Company\CompanyManager p';
98 98
         $result = $this->em->createQuery($dql)->getArrayResult();
99 99
 
100 100
         self::assertCount(1, $result);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function testInSubselect()
105 105
     {
106 106
         $dql = "SELECT p.name FROM Doctrine\Tests\Models\Company\CompanyPerson p ".
107
-               "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')";
107
+                "WHERE p.name IN (SELECT n.name FROM Doctrine\Tests\Models\Company\CompanyPerson n WHERE n.name = 'Roman B.')";
108 108
         $result = $this->em->createQuery($dql)->getScalarResult();
109 109
 
110 110
         self::assertCount(1, $result);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function testGroupByMultipleFields()
115 115
     {
116 116
         $dql = 'SELECT p.department, p.name, count(p.id) FROM Doctrine\Tests\Models\Company\CompanyEmployee p '.
117
-               'GROUP BY p.department, p.name';
117
+                'GROUP BY p.department, p.name';
118 118
         $result = $this->em->createQuery($dql)->getResult();
119 119
 
120 120
         self::assertCount(4, $result);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ClassTableInheritanceTest2.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
  * @ORM\DiscriminatorMap({"parent" = "CTIParent", "child" = "CTIChild"})
87 87
  */
88 88
 class CTIParent {
89
-   /**
89
+    /**
90 90
      * @ORM\Id @ORM\Column(type="integer")
91 91
      * @ORM\GeneratedValue(strategy="AUTO")
92 92
      */
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
  * @ORM\Entity @ORM\Table(name="cti_children")
114 114
  */
115 115
 class CTIChild extends CTIParent {
116
-   /**
116
+    /**
117 117
      * @ORM\Column(type="string")
118 118
      */
119 119
     private $data;
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;
6 6
 use Doctrine\Common\Collections\ArrayCollection;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheManyToOneTest.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
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         self::assertNull($this->cache->getEntityCacheRegion(ComplexAction::class));
217 217
         self::assertInstanceOf(Region::class, $this->cache->getEntityCacheRegion(Token::class));
218 218
 
219
-        $token  = new Token('token-hash');
219
+        $token = new Token('token-hash');
220 220
 
221 221
         $action1 = new Action('login');
222 222
         $action2 = new Action('logout');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/DefaultValuesTest.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
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public $address;
115 115
 
116
-    public function getId() {return $this->id;}
116
+    public function getId() {return $this->id; }
117 117
 }
118 118
 
119 119
 /**
@@ -155,5 +155,5 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public $user;
157 157
 
158
-    public function getUser() {return $this->user;}
158
+    public function getUser() {return $this->user; }
159 159
 }
Please login to merge, or discard this patch.