Failed Conditions
Pull Request — develop (#6599)
by Michael
131:05 queued 63:47
created
Doctrine/Tests/ORM/Functional/OneToManyUnidirectionalAssociationTest.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
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         try {
79 79
             // exception depending on the underlying Database Driver
80 80
             $this->em->flush();
81
-        } catch(\Exception $e) {
81
+        } catch (\Exception $e) {
82 82
             $exceptionThrown = true;
83 83
         }
84 84
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.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
 
@@ -333,19 +333,19 @@  discard block
 block discarded – undo
333 333
 
334 334
         $repos = $this->em->getRepository(CompanyContract::class);
335 335
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
336
-        self::assertEquals(3, count($contracts), "There should be 3 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyContract'");
336
+        self::assertEquals(3, count($contracts), "There should be 3 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyContract'");
337 337
 
338 338
         $repos = $this->em->getRepository(CompanyFixContract::class);
339 339
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
340
-        self::assertEquals(1, count($contracts), "There should be 1 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFixContract'");
340
+        self::assertEquals(1, count($contracts), "There should be 1 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFixContract'");
341 341
 
342 342
         $repos = $this->em->getRepository(CompanyFlexContract::class);
343 343
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
344
-        self::assertEquals(2, count($contracts), "There should be 2 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFlexContract'");
344
+        self::assertEquals(2, count($contracts), "There should be 2 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFlexContract'");
345 345
 
346 346
         $repos = $this->em->getRepository(CompanyFlexUltraContract::class);
347 347
         $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]);
348
-        self::assertEquals(1, count($contracts), "There should be 1 entities related to " . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFlexUltraContract'");
348
+        self::assertEquals(1, count($contracts), "There should be 1 entities related to ".$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFlexUltraContract'");
349 349
     }
350 350
 
351 351
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC168Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC381Test.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
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
                 $this->em->getClassMetadata(DDC381Entity::class),
19 19
                 ]
20 20
             );
21
-        } catch(\Exception $e) {
21
+        } catch (\Exception $e) {
22 22
 
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3042Test.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
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             $this
32 32
                 ->em
33 33
                 ->createQuery(
34
-                    'SELECT f, b FROM ' . __NAMESPACE__ . '\DDC3042Foo f JOIN ' . __NAMESPACE__ . '\DDC3042Bar b WITH 1 = 1'
34
+                    'SELECT f, b FROM '.__NAMESPACE__.'\DDC3042Foo f JOIN '.__NAMESPACE__.'\DDC3042Bar b WITH 1 = 1'
35 35
                 )
36 36
                 ->getSQL()
37 37
         );
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2759Test.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
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                 $this->em->getClassMetadata(DDC2759MetadataCategory::class),
28 28
                 ]
29 29
             );
30
-        } catch(\Exception $e) {
30
+        } catch (\Exception $e) {
31 31
             return;
32 32
         }
33 33
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1695Test.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
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function testIssue()
24 24
     {
25
-        $dql = "SELECT n.smallText, n.publishDate FROM " . __NAMESPACE__ . "\\DDC1695News n";
25
+        $dql = "SELECT n.smallText, n.publishDate FROM ".__NAMESPACE__."\\DDC1695News n";
26 26
         $sql = $this->em->createQuery($dql)->getSQL();
27 27
 
28 28
         self::assertEquals(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1400Test.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
         $user1 = $this->em->getReference(DDC1400User::class, $user1->id);
55 55
 
56 56
         $this->em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser')
57
-                  ->setParameter('activeUser', $user1)
58
-                  ->getResult();
57
+                    ->setParameter('activeUser', $user1)
58
+                    ->getResult();
59 59
 
60 60
         $queryCount = $this->getCurrentQueryCount();
61 61
 
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
 class DDC1400UserState
109 109
 {
110 110
     /**
111
-      * @ORM\Id
111
+     * @ORM\Id
112 112
      *  @ORM\ManyToOne(targetEntity="DDC1400Article", inversedBy="userStates")
113 113
      */
114 114
     public $article;
115 115
 
116 116
     /**
117
-      * @ORM\Id
117
+     * @ORM\Id
118 118
      *  @ORM\ManyToOne(targetEntity="DDC1400User", inversedBy="userStates")
119 119
      */
120 120
     public $user;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         $user1 = $this->em->getReference(DDC1400User::class, $user1->id);
55 55
 
56
-        $this->em->createQuery('SELECT a, s FROM ' . DDC1400Article::class . ' a JOIN a.userStates s WITH s.user = :activeUser')
56
+        $this->em->createQuery('SELECT a, s FROM '.DDC1400Article::class.' a JOIN a.userStates s WITH s.user = :activeUser')
57 57
                   ->setParameter('activeUser', $user1)
58 58
                   ->getResult();
59 59
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1843Test.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
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                 $this->em->getClassMetadata(Address::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.