Test Failed
Pull Request — master (#6759)
by Jan
63:55
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2415Test.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -76,11 +76,17 @@
 block discarded – undo
76 76
 {
77 77
     protected $name;
78 78
 
79
+    /**
80
+     * @param string $name
81
+     */
79 82
     public function __construct($name)
80 83
     {
81 84
         $this->name = $name;
82 85
     }
83 86
 
87
+    /**
88
+     * @return string
89
+     */
84 90
     public function getName()
85 91
     {
86 92
         return $this->name;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2862Test.php 2 patches
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,6 +139,10 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected $userProfile;
141 141
 
142
+    /**
143
+     * @param string $name
144
+     * @param DDC2862User $userProfile
145
+     */
142 146
     public function __construct($name, $userProfile = null)
143 147
     {
144 148
         $this->name        = $name;
@@ -178,7 +182,7 @@  discard block
 block discarded – undo
178 182
     }
179 183
 
180 184
     /**
181
-     * @return \Entities\User
185
+     * @return User
182 186
      */
183 187
     public function getUserProfile()
184 188
     {
@@ -209,6 +213,9 @@  discard block
 block discarded – undo
209 213
      */
210 214
     protected $name;
211 215
 
216
+    /**
217
+     * @param string $name
218
+     */
212 219
     public function __construct($name)
213 220
     {
214 221
         $this->name = $name;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function testIssue()
30 30
     {
31 31
         $user1    = new DDC2862User('Foo');
32
-        $driver1  = new DDC2862Driver('Bar' , $user1);
32
+        $driver1  = new DDC2862Driver('Bar', $user1);
33 33
 
34 34
         $this->_em->persist($user1);
35 35
         $this->_em->persist($driver1);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function testIssueReopened()
68 68
     {
69 69
         $user1    = new DDC2862User('Foo');
70
-        $driver1  = new DDC2862Driver('Bar' , $user1);
70
+        $driver1  = new DDC2862Driver('Bar', $user1);
71 71
 
72 72
         $this->_em->persist($user1);
73 73
         $this->_em->persist($driver1);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC353Test.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -112,6 +112,7 @@
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * Set file
115
+     * @param DDC353File $value
115 116
      */
116 117
     public function setFile($value)
117 118
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
                 $this->_em->getClassMetadata(DDC353Picture::class),
17 17
                 ]
18 18
             );
19
-        } catch(\Exception $ignored) {}
19
+        } catch (\Exception $ignored) {}
20 20
     }
21 21
 
22 22
     public function testWorkingCase()
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3582Test.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
     /** @Embedded(class="DDC3582Embeddable1") @var DDC3582Embeddable1 */
32 32
     public $embeddable1;
33 33
 
34
+    /**
35
+     * @param string $id
36
+     */
34 37
     public function __construct($id)
35 38
     {
36 39
         $this->id = $id;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3644Test.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -200,6 +200,9 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public $address;
202 202
 
203
+    /**
204
+     * @param string $address
205
+     */
203 206
     public function __construct($address)
204 207
     {
205 208
         $this->address = $address;
@@ -226,6 +229,9 @@  discard block
 block discarded – undo
226 229
      */
227 230
     public $name;
228 231
 
232
+    /**
233
+     * @param string $name
234
+     */
229 235
     public function __construct($name)
230 236
     {
231 237
         $this->name = $name;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         $this->addresses = $addresses;
164 164
 
165
-        $addresses->map(function ($address) use ($self) {
165
+        $addresses->map(function($address) use ($self) {
166 166
             $address->user = $self;
167 167
         });
168 168
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
         $this->pets = $pets;
175 175
 
176
-        $pets->map(function ($pet) use ($self) {
176
+        $pets->map(function($pet) use ($self) {
177 177
             $pet->owner = $self;
178 178
         });
179 179
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC618Test.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@  discard block
 block discarded – undo
151 151
         $this->books = new \Doctrine\Common\Collections\ArrayCollection;
152 152
     }
153 153
 
154
+    /**
155
+     * @param string $title
156
+     */
154 157
     public function addBook($title)
155 158
     {
156 159
         $book = new DDC618Book($title, $this);
@@ -175,6 +178,9 @@  discard block
 block discarded – undo
175 178
     /** @ManyToOne(targetEntity="DDC618Author", inversedBy="books") */
176 179
     public $author;
177 180
 
181
+    /**
182
+     * @param DDC618Author $author
183
+     */
178 184
     function __construct($title, $author)
179 185
     {
180 186
         $this->title = $title;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function testIndexByJoin()
72 72
     {
73 73
         $dql = 'SELECT A, B FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Author A '.
74
-               'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
74
+                'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
75 75
         $result = $this->_em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_OBJECT);
76 76
 
77 77
         $this->assertEquals(3, count($result[0]->books)); // Alice, Joe doesn't appear because he has no books.
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
     public function testIndexByToOneJoinSilentlyIgnored()
96 96
     {
97 97
         $dql = 'SELECT B, A FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Book B '.
98
-               'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
98
+                'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
99 99
         $result = $this->_em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_OBJECT);
100 100
 
101 101
         $this->assertInstanceOf(DDC618Book::class, $result[0]);
102 102
         $this->assertInstanceOf(DDC618Author::class, $result[0]->author);
103 103
 
104 104
         $dql = 'SELECT B, A FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Book B '.
105
-               'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
105
+                'INNER JOIN B.author A INDEX BY A.name ORDER BY A.name ASC';
106 106
         $result = $this->_em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY);
107 107
 
108 108
         $this->assertEquals("Alice", $result[0]['author']['name']);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function testCombineIndexBy()
115 115
     {
116 116
         $dql = 'SELECT A, B FROM Doctrine\Tests\ORM\Functional\Ticket\DDC618Author A INDEX BY A.id '.
117
-               'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
117
+                'INNER JOIN A.books B INDEX BY B.title ORDER BY A.name ASC';
118 118
         $result = $this->_em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_OBJECT);
119 119
 
120 120
         $this->assertArrayHasKey(11, $result); // Alice
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
             $this->_em->flush();
38 38
             $this->_em->clear();
39
-        } catch(\Exception $e) {
39
+        } catch (\Exception $e) {
40 40
 
41 41
         }
42 42
     }
@@ -76,17 +76,17 @@  discard block
 block discarded – undo
76 76
 
77 77
         $this->assertEquals(3, count($result[0]->books)); // Alice, Joe doesn't appear because he has no books.
78 78
         $this->assertEquals('Alice', $result[0]->name);
79
-        $this->assertTrue( isset($result[0]->books["In Wonderland"] ), "Indexing by title should have books by title.");
80
-        $this->assertTrue( isset($result[0]->books["Reloaded"] ), "Indexing by title should have books by title.");
81
-        $this->assertTrue( isset($result[0]->books["Test"] ), "Indexing by title should have books by title.");
79
+        $this->assertTrue(isset($result[0]->books["In Wonderland"]), "Indexing by title should have books by title.");
80
+        $this->assertTrue(isset($result[0]->books["Reloaded"]), "Indexing by title should have books by title.");
81
+        $this->assertTrue(isset($result[0]->books["Test"]), "Indexing by title should have books by title.");
82 82
 
83 83
         $result = $this->_em->createQuery($dql)->getResult(\Doctrine\ORM\Query::HYDRATE_ARRAY);
84 84
 
85 85
         $this->assertEquals(3, count($result[0]['books'])); // Alice, Joe doesn't appear because he has no books.
86 86
         $this->assertEquals('Alice', $result[0]['name']);
87
-        $this->assertTrue( isset($result[0]['books']["In Wonderland"] ), "Indexing by title should have books by title.");
88
-        $this->assertTrue( isset($result[0]['books']["Reloaded"] ), "Indexing by title should have books by title.");
89
-        $this->assertTrue( isset($result[0]['books']["Test"] ), "Indexing by title should have books by title.");
87
+        $this->assertTrue(isset($result[0]['books']["In Wonderland"]), "Indexing by title should have books by title.");
88
+        $this->assertTrue(isset($result[0]['books']["Reloaded"]), "Indexing by title should have books by title.");
89
+        $this->assertTrue(isset($result[0]['books']["Test"]), "Indexing by title should have books by title.");
90 90
     }
91 91
 
92 92
     /**
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
 
122 122
         $this->assertEquals(3, count($result[11]->books)); // Alice, Joe doesn't appear because he has no books.
123 123
         $this->assertEquals('Alice', $result[11]->name);
124
-        $this->assertTrue( isset($result[11]->books["In Wonderland"] ), "Indexing by title should have books by title.");
125
-        $this->assertTrue( isset($result[11]->books["Reloaded"] ), "Indexing by title should have books by title.");
126
-        $this->assertTrue( isset($result[11]->books["Test"] ), "Indexing by title should have books by title.");
124
+        $this->assertTrue(isset($result[11]->books["In Wonderland"]), "Indexing by title should have books by title.");
125
+        $this->assertTrue(isset($result[11]->books["Reloaded"]), "Indexing by title should have books by title.");
126
+        $this->assertTrue(isset($result[11]->books["Test"]), "Indexing by title should have books by title.");
127 127
     }
128 128
 }
129 129
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC656Test.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
66 66
         return $this->name;
67 67
     }
68 68
 
69
+    /**
70
+     * @param string $name
71
+     */
69 72
     public function setName($name) {
70 73
         $this->name = $name;
71 74
     }
@@ -74,6 +77,9 @@  discard block
 block discarded – undo
74 77
         return $this->type;
75 78
     }
76 79
 
80
+    /**
81
+     * @param string $type
82
+     */
77 83
     public function setType($type) {
78 84
         $this->type = $type;
79 85
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 $this->_em->getClassMetadata(DDC656Entity::class)
14 14
                 ]
15 15
             );
16
-        } catch(\Exception $e) {
16
+        } catch (\Exception $e) {
17 17
 
18 18
         }
19 19
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC832Test.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public $version;
139 139
 
140
+    /**
141
+     * @param string $word
142
+     */
140 143
     public function __construct($word)
141 144
     {
142 145
         $this->word = $word;
@@ -166,6 +169,9 @@  discard block
 block discarded – undo
166 169
      */
167 170
     public $version;
168 171
 
172
+    /**
173
+     * @param string $name
174
+     */
169 175
     public function __construct($name)
170 176
     {
171 177
         $this->name = $name;
@@ -183,6 +189,11 @@  discard block
 block discarded – undo
183 189
     /** @Column(type="integer") */
184 190
     public $rgt;
185 191
 
192
+    /**
193
+     * @param string $name
194
+     * @param integer $lft
195
+     * @param integer $rgt
196
+     */
186 197
     public function __construct($name, $lft, $rgt)
187 198
     {
188 199
         $this->name = $name;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
                     $this->_em->getClassMetadata(DDC832Like::class),
25 25
                 ]
26 26
             );
27
-        } catch(\Exception $e) {
27
+        } catch (\Exception $e) {
28 28
         }
29 29
     }
30 30
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC881Test.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@  discard block
 block discarded – undo
118 118
         return $this->name;
119 119
     }
120 120
 
121
+    /**
122
+     * @param string $name
123
+     */
121 124
     public function setName($name)
122 125
     {
123 126
         $this->name = $name;
@@ -155,6 +158,9 @@  discard block
 block discarded – undo
155 158
         $this->calls = new \Doctrine\Common\Collections\ArrayCollection();
156 159
     }
157 160
 
161
+    /**
162
+     * @param integer $id
163
+     */
158 164
     public function setId($id)
159 165
     {
160 166
         $this->id = $id;
@@ -165,6 +171,9 @@  discard block
 block discarded – undo
165 171
         $this->user = $user;
166 172
     }
167 173
 
174
+    /**
175
+     * @param string $phoneNumber
176
+     */
168 177
     public function setPhoneNumber($phoneNumber)
169 178
     {
170 179
         $this->phonenumber = $phoneNumber;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@
 block discarded – undo
80 80
         $this->_em->clear();
81 81
 
82 82
         // fetch-join that foreign-key/primary-key entity association
83
-        $dql = "SELECT c, p FROM " . DDC881PhoneCall::class . " c JOIN c.phonenumber p";
83
+        $dql = "SELECT c, p FROM ".DDC881PhoneCall::class." c JOIN c.phonenumber p";
84 84
         $calls = $this->_em->createQuery($dql)->getResult();
85 85
 
86 86
         $this->assertEquals(2, count($calls));
87 87
         $this->assertNotInstanceOf(Proxy::class, $calls[0]->getPhoneNumber());
88 88
         $this->assertNotInstanceOf(Proxy::class, $calls[1]->getPhoneNumber());
89 89
 
90
-        $dql = "SELECT p, c FROM " . DDC881PhoneNumber::class . " p JOIN p.calls c";
90
+        $dql = "SELECT p, c FROM ".DDC881PhoneNumber::class." p JOIN p.calls c";
91 91
         $numbers = $this->_em->createQuery($dql)->getResult();
92 92
 
93 93
         $this->assertEquals(2, count($numbers));
Please login to merge, or discard this patch.