Passed
Push — develop ( 5c2ff2...cebe30 )
by Luís
25:23
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3192Test.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
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         if (Type::hasType('ddc3192_currency_code')) {
22 22
             $this->fail(
23
-                'Type ddc3192_currency_code exists for testing DDC-3192 only, ' .
23
+                'Type ddc3192_currency_code exists for testing DDC-3192 only, '.
24 24
                 'but it has already been registered for some reason'
25 25
             );
26 26
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->em->close();
58 58
 
59 59
         $query = $this->em->createQuery();
60
-        $query->setDQL('SELECT t FROM ' . DDC3192Transaction::class . ' t WHERE t.id = ?1');
60
+        $query->setDQL('SELECT t FROM '.DDC3192Transaction::class.' t WHERE t.id = ?1');
61 61
         $query->setParameter(1, $transaction->id);
62 62
 
63 63
         $resultByQuery = $query->getSingleResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3644Test.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
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $this->addresses = $addresses;
166 166
 
167
-        $addresses->map(function ($address) use ($self) {
167
+        $addresses->map(function($address) use ($self) {
168 168
             $address->user = $self;
169 169
         });
170 170
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         $this->pets = $pets;
177 177
 
178
-        $pets->map(function ($pet) use ($self) {
178
+        $pets->map(function($pet) use ($self) {
179 179
             $pet->owner = $self;
180 180
         });
181 181
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1209Test.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(DDC1209_3::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/Ticket/DDC1335Test.php 1 patch
Spacing   +17 added lines, -17 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,14 +22,14 @@  discard block
 block discarded – undo
22 22
                 ]
23 23
             );
24 24
             $this->loadFixture();
25
-        } catch(\Exception $e) {
25
+        } catch (\Exception $e) {
26 26
         }
27 27
     }
28 28
 
29 29
 
30 30
     public function testDql()
31 31
     {
32
-        $dql      = 'SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.id';
32
+        $dql      = 'SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.id';
33 33
         $query    = $this->em->createQuery($dql);
34 34
         $result   = $query->getResult();
35 35
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         self::assertArrayHasKey(2, $result);
39 39
         self::assertArrayHasKey(3, $result);
40 40
 
41
-        $dql      = 'SELECT u, p FROM '.__NAMESPACE__ . '\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id';
41
+        $dql      = 'SELECT u, p FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id';
42 42
         $query    = $this->em->createQuery($dql);
43 43
         $result   = $query->getResult();
44 44
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         self::assertArrayHasKey(1, $result);
81 81
         self::assertArrayHasKey(2, $result);
82 82
         self::assertArrayHasKey(3, $result);
83
-        self::assertEquals('SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.id', $dql);
83
+        self::assertEquals('SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.id', $dql);
84 84
     }
85 85
 
86 86
     public function testIndexByUnique()
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
         self::assertArrayHasKey('[email protected]', $result);
96 96
         self::assertArrayHasKey('[email protected]', $result);
97 97
         self::assertArrayHasKey('[email protected]', $result);
98
-        self::assertEquals('SELECT u FROM ' . __NAMESPACE__ . '\DDC1335User u INDEX BY u.email', $dql);
98
+        self::assertEquals('SELECT u FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email', $dql);
99 99
     }
100 100
 
101 101
     public function  testIndexWithJoin()
102 102
     {
103 103
         $builder = $this->em->createQueryBuilder();
104
-        $builder->select('u','p')
104
+        $builder->select('u', 'p')
105 105
                 ->from(DDC1335User::class, 'u', 'u.email')
106 106
                 ->join('u.phones', 'p', null, null, 'p.id');
107 107
 
@@ -129,18 +129,18 @@  discard block
 block discarded – undo
129 129
         self::assertArrayHasKey(8, $result['[email protected]']->phones->toArray());
130 130
         self::assertArrayHasKey(9, $result['[email protected]']->phones->toArray());
131 131
 
132
-        self::assertEquals('SELECT u, p FROM '.__NAMESPACE__ . '\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id', $dql);
132
+        self::assertEquals('SELECT u, p FROM '.__NAMESPACE__.'\DDC1335User u INDEX BY u.email INNER JOIN u.phones p INDEX BY p.id', $dql);
133 133
     }
134 134
 
135 135
     private function loadFixture()
136 136
     {
137
-        $p1 = ['11 xxxx-xxxx','11 yyyy-yyyy','11 zzzz-zzzz'];
138
-        $p2 = ['22 xxxx-xxxx','22 yyyy-yyyy','22 zzzz-zzzz'];
139
-        $p3 = ['33 xxxx-xxxx','33 yyyy-yyyy','33 zzzz-zzzz'];
137
+        $p1 = ['11 xxxx-xxxx', '11 yyyy-yyyy', '11 zzzz-zzzz'];
138
+        $p2 = ['22 xxxx-xxxx', '22 yyyy-yyyy', '22 zzzz-zzzz'];
139
+        $p3 = ['33 xxxx-xxxx', '33 yyyy-yyyy', '33 zzzz-zzzz'];
140 140
 
141
-        $u1 = new DDC1335User("[email protected]", "Foo",$p1);
142
-        $u2 = new DDC1335User("[email protected]", "Bar",$p2);
143
-        $u3 = new DDC1335User("[email protected]", "Foo Bar",$p3);
141
+        $u1 = new DDC1335User("[email protected]", "Foo", $p1);
142
+        $u2 = new DDC1335User("[email protected]", "Bar", $p2);
143
+        $u3 = new DDC1335User("[email protected]", "Foo Bar", $p3);
144 144
 
145 145
         $this->em->persist($u1);
146 146
         $this->em->persist($u2);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $this->phones = new \Doctrine\Common\Collections\ArrayCollection();
185 185
 
186 186
         foreach ($numbers as $number) {
187
-            $this->phones->add(new DDC1335Phone($this,$number));
187
+            $this->phones->add(new DDC1335Phone($this, $number));
188 188
         }
189 189
     }
190 190
 }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
     public function __construct($user, $number)
216 216
     {
217
-        $this->user     = $user;
218
-        $this->numericalValue   = $number;
217
+        $this->user = $user;
218
+        $this->numericalValue = $number;
219 219
     }
220 220
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC960Test.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
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
                 $this->em->getClassMetadata(DDC960Child::class)
20 20
                 ]
21 21
             );
22
-        } catch(\Exception $e) {
22
+        } catch (\Exception $e) {
23 23
 
24 24
         }
25 25
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2895Test.php 1 patch
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\Ticket;
6 6
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                 $this->em->getClassMetadata(DDC2895::class),
23 23
                 ]
24 24
             );
25
-        } catch(\Exception $e) {
25
+        } catch (\Exception $e) {
26 26
 
27 27
         }
28 28
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @param \DateTime $lastModified
79 79
      */
80
-    public function setLastModified( $lastModified )
80
+    public function setLastModified($lastModified)
81 81
     {
82 82
         $this->lastModified = $lastModified;
83 83
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @param mixed $id
105 105
      */
106
-    public function setId( $id )
106
+    public function setId($id)
107 107
     {
108 108
         $this->id = $id;
109 109
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1655Test.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
                 $this->em->getClassMetadata(DDC1655Baz::class),
26 26
                 ]
27 27
             );
28
-        } catch(\Exception $e) {
29
-            $this->fail($e->getMessage() . PHP_EOL . $e->getTraceAsString());
28
+        } catch (\Exception $e) {
29
+            $this->fail($e->getMessage().PHP_EOL.$e->getTraceAsString());
30 30
         }
31 31
     }
32 32
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $conn = static::$sharedConn;
36 36
 
37 37
         // In case test is skipped, tearDown is called, but no setup may have run
38
-        if (!$conn) {
38
+        if ( ! $conn) {
39 39
             return;
40 40
         }
41 41
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $baz = $this->em->find(get_class($baz), $baz->id);
79 79
         foreach ($baz->foos as $foo) {
80
-            self::assertEquals(1, $foo->loaded, "should have loaded callback counter incremented for " . get_class($foo));
80
+            self::assertEquals(1, $foo->loaded, "should have loaded callback counter incremented for ".get_class($foo));
81 81
         }
82 82
     }
83 83
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         self::assertEquals(1, $bar->loaded);
102 102
         self::assertEquals(1, $bar->subLoaded);
103 103
 
104
-        $dql = "SELECT b FROM " . __NAMESPACE__ . "\DDC1655Bar b WHERE b.id = ?1";
104
+        $dql = "SELECT b FROM ".__NAMESPACE__."\DDC1655Bar b WHERE b.id = ?1";
105 105
         $bar = $this->em->createQuery($dql)->setParameter(1, $bar->id)->getSingleResult();
106 106
 
107 107
         self::assertEquals(1, $bar->loaded);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1461Test.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
                 $this->em->getClassMetadata(DDC1461User::class)
23 23
                 ]
24 24
             );
25
-        } catch(\Exception $e) {
25
+        } catch (\Exception $e) {
26 26
 
27 27
         }
28 28
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1998Test.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
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
76 76
     {
77
-        return (string)$value;
77
+        return (string) $value;
78 78
     }
79 79
 
80 80
     public function convertToPhpValue($value, AbstractPlatform $platform)
Please login to merge, or discard this patch.