Failed Conditions
Pull Request — develop (#6888)
by Michael
61:51
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2084Test.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
      */
107 107
     private $value;
108 108
 
109
+    /**
110
+     * @param string $value
111
+     */
109 112
     public function __construct($value)
110 113
     {
111 114
         $this->value = $value;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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
 
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
         try {
17 17
             $this->schemaTool->createSchema(
18 18
                 [
19
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity1'),
20
-                $this->em->getClassMetadata(__NAMESPACE__ . '\DDC2084\MyEntity2'),
19
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity1'),
20
+                $this->em->getClassMetadata(__NAMESPACE__.'\DDC2084\MyEntity2'),
21 21
                 ]
22 22
             );
23 23
         } catch (\Exception $exc) {
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $e1 = $this->loadFixture();
46 46
         $e2 = $e1->getMyEntity2();
47
-        $e  = $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', $e2);
47
+        $e  = $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', $e2);
48 48
 
49
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity1', $e);
50
-        self::assertInstanceOf(__NAMESPACE__ . '\DDC2084\MyEntity2', $e->getMyEntity2());
49
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity1', $e);
50
+        self::assertInstanceOf(__NAMESPACE__.'\DDC2084\MyEntity2', $e->getMyEntity2());
51 51
         self::assertEquals('Foo', $e->getMyEntity2()->getValue());
52 52
     }
53 53
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function testinvalidIdentifierBindingEntityException()
59 59
     {
60
-        $this->em->find(__NAMESPACE__ . '\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
60
+        $this->em->find(__NAMESPACE__.'\DDC2084\MyEntity1', new DDC2084\MyEntity2('Foo'));
61 61
     }
62 62
 }
63 63
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2138Test.php 2 patches
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -169,7 +169,6 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * @param User $user
171 171
      * @param User $followedUser
172
-     * @param bool $giveAgency
173 172
      */
174 173
     public function __construct(User $user, User $followedUser)
175 174
     {
@@ -247,7 +246,7 @@  discard block
 block discarded – undo
247 246
      * Add followedUsers
248 247
      *
249 248
      * @param  UserFollowedUser $followedUsers
250
-     * @return User
249
+     * @return DDC2138User
251 250
      */
252 251
     public function addFollowedUser(UserFollowedUser $followedUsers)
253 252
     {
@@ -260,7 +259,7 @@  discard block
 block discarded – undo
260 259
      * Remove followedUsers
261 260
      *
262 261
      * @param  UserFollowedUser $followedUsers
263
-     * @return User
262
+     * @return DDC2138User
264 263
      */
265 264
     public function removeFollowedUser(UserFollowedUser $followedUsers)
266 265
     {
@@ -272,7 +271,7 @@  discard block
 block discarded – undo
272 271
     /**
273 272
      * Get followedUsers
274 273
      *
275
-     * @return Doctrine\Common\Collections\Collection
274
+     * @return ArrayCollection
276 275
      */
277 276
     public function getFollowedUsers()
278 277
     {
@@ -283,7 +282,7 @@  discard block
 block discarded – undo
283 282
      * Add followedStructures
284 283
      *
285 284
      * @param  UserFollowedStructure $followedStructures
286
-     * @return User
285
+     * @return DDC2138User
287 286
      */
288 287
     public function addFollowedStructure(UserFollowedStructure $followedStructures)
289 288
     {
@@ -296,7 +295,7 @@  discard block
 block discarded – undo
296 295
      * Remove followedStructures
297 296
      *
298 297
      * @param  UserFollowedStructure $followedStructures
299
-     * @return User
298
+     * @return DDC2138User
300 299
      */
301 300
     public function removeFollowedStructure(UserFollowedStructure $followedStructures)
302 301
     {
@@ -308,7 +307,7 @@  discard block
 block discarded – undo
308 307
     /**
309 308
      * Get followedStructures
310 309
      *
311
-     * @return Doctrine\Common\Collections\Collection
310
+     * @return ArrayCollection
312 311
      */
313 312
     public function getFollowedStructures()
314 313
     {
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\Ticket;
6 6
 
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   +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
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function testIssue()
33 33
     {
34 34
         $user1    = new DDC2862User('Foo');
35
-        $driver1  = new DDC2862Driver('Bar' , $user1);
35
+        $driver1  = new DDC2862Driver('Bar', $user1);
36 36
 
37 37
         $this->em->persist($user1);
38 38
         $this->em->persist($driver1);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function testIssueReopened()
71 71
     {
72 72
         $user1    = new DDC2862User('Foo');
73
-        $driver1  = new DDC2862Driver('Bar' , $user1);
73
+        $driver1  = new DDC2862Driver('Bar', $user1);
74 74
 
75 75
         $this->em->persist($user1);
76 76
         $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   +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(DDC353Picture::class),
20 20
                 ]
21 21
             );
22
-        } catch(\Exception $ignored) {}
22
+        } catch (\Exception $ignored) {}
23 23
     }
24 24
 
25 25
     public function testWorkingCase()
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   +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/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   +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
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
                 $this->em->getClassMetadata(DDC656Entity::class)
18 18
                 ]
19 19
             );
20
-        } catch(\Exception $e) {
20
+        } catch (\Exception $e) {
21 21
 
22 22
         }
23 23
     }
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   +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
 
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
         $this->em->clear();
84 84
 
85 85
         // fetch-join that foreign-key/primary-key entity association
86
-        $dql = "SELECT c, p FROM " . DDC881PhoneCall::class . " c JOIN c.phonenumber p";
86
+        $dql = "SELECT c, p FROM ".DDC881PhoneCall::class." c JOIN c.phonenumber p";
87 87
         $calls = $this->em->createQuery($dql)->getResult();
88 88
 
89 89
         self::assertCount(2, $calls);
90 90
         self::assertNotInstanceOf(GhostObjectInterface::class, $calls[0]->getPhoneNumber());
91 91
         self::assertNotInstanceOf(GhostObjectInterface::class, $calls[1]->getPhoneNumber());
92 92
 
93
-        $dql = "SELECT p, c FROM " . DDC881PhoneNumber::class . " p JOIN p.calls c";
93
+        $dql = "SELECT p, c FROM ".DDC881PhoneNumber::class." p JOIN p.calls c";
94 94
         $numbers = $this->em->createQuery($dql)->getResult();
95 95
 
96 96
         self::assertCount(2, $numbers);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC960Test.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -78,11 +78,17 @@
 block discarded – undo
78 78
      */
79 79
     private $name;
80 80
 
81
+    /**
82
+     * @param string $name
83
+     */
81 84
     public function __construct($name)
82 85
     {
83 86
         $this->name = $name;
84 87
     }
85 88
 
89
+    /**
90
+     * @param string $name
91
+     */
86 92
     public function setName($name)
87 93
     {
88 94
         $this->name = $name;
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
 
@@ -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/Ticket69.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
 
241 241
     /**
242 242
      *
243
-     * @return Phrase
243
+     * @return Lemma
244 244
      */
245 245
     public function getParent() {
246 246
         return $this->parent;
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
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         self::assertInstanceOf(Lemma::class, $lemma);
91 91
         $relations = $lemma->getRelations();
92 92
 
93
-        foreach($relations as $relation) {
93
+        foreach ($relations as $relation) {
94 94
             self::assertInstanceOf(Relation::class, $relation);
95 95
             self::assertTrue($relation->getType()->getType() != '');
96 96
         }
Please login to merge, or discard this patch.