@@ -106,6 +106,9 @@ |
||
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; |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -169,7 +169,6 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -139,6 +139,10 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -112,6 +112,7 @@ |
||
112 | 112 | |
113 | 113 | /** |
114 | 114 | * Set file |
115 | + * @param DDC353File $value |
|
115 | 116 | */ |
116 | 117 | public function setFile($value) |
117 | 118 | { |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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() |
@@ -200,6 +200,9 @@ discard block |
||
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 |
||
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; |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -66,6 +66,9 @@ discard block |
||
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 |
||
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 | } |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 | } |
@@ -118,6 +118,9 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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); |
@@ -78,11 +78,17 @@ |
||
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; |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 | } |
@@ -240,7 +240,7 @@ |
||
240 | 240 | |
241 | 241 | /** |
242 | 242 | * |
243 | - * @return Phrase |
|
243 | + * @return Lemma |
|
244 | 244 | */ |
245 | 245 | public function getParent() { |
246 | 246 | return $this->parent; |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 | } |