@@ -27,7 +27,7 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * @param string $className |
|
30 | + * @param string $classNames |
|
31 | 31 | * @return ClassMetadata |
32 | 32 | */ |
33 | 33 | protected function extractClassMetadata(array $classNames) |
@@ -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; |
6 | 6 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $driver = new DatabaseDriver($sm); |
54 | 54 | |
55 | 55 | foreach ($driver->getAllClassNames() as $className) { |
56 | - if (!in_array(strtolower($className), $classNames)) { |
|
56 | + if ( ! in_array(strtolower($className), $classNames)) { |
|
57 | 57 | continue; |
58 | 58 | } |
59 | 59 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | if (count($metadatas) != count($classNames)) { |
68 | - $this->fail("Have not found all classes matching the names '" . implode(", ", $classNames) . "' only tables " . implode(", ", array_keys($metadatas))); |
|
68 | + $this->fail("Have not found all classes matching the names '".implode(", ", $classNames)."' only tables ".implode(", ", array_keys($metadatas))); |
|
69 | 69 | } |
70 | 70 | return $metadatas; |
71 | 71 | } |
@@ -286,6 +286,9 @@ discard block |
||
286 | 286 | */ |
287 | 287 | public $train; |
288 | 288 | |
289 | + /** |
|
290 | + * @param string $name |
|
291 | + */ |
|
289 | 292 | public function __construct($name) |
290 | 293 | { |
291 | 294 | $this->name = $name; |
@@ -312,6 +315,9 @@ discard block |
||
312 | 315 | */ |
313 | 316 | public $train; |
314 | 317 | |
318 | + /** |
|
319 | + * @param string $name |
|
320 | + */ |
|
315 | 321 | public function __construct($name) |
316 | 322 | { |
317 | 323 | $this->name = $name; |
@@ -336,6 +342,9 @@ discard block |
||
336 | 342 | */ |
337 | 343 | public $train; |
338 | 344 | |
345 | + /** |
|
346 | + * @param Train $train |
|
347 | + */ |
|
339 | 348 | public function setTrain($train) |
340 | 349 | { |
341 | 350 | $this->train = $train; |
@@ -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; |
6 | 6 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $this->em->getClassMetadata(TrainOrder::class), |
30 | 30 | ] |
31 | 31 | ); |
32 | - } catch(\Exception $e) {} |
|
32 | + } catch (\Exception $e) {} |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -203,7 +203,7 @@ |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param Product $product |
|
206 | + * @param DDC1163Product $product |
|
207 | 207 | */ |
208 | 208 | public function setProduct(DDC1163Product $product) |
209 | 209 | { |
@@ -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 |
@@ -90,6 +90,9 @@ |
||
90 | 90 | return $this->name; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $name |
|
95 | + */ |
|
93 | 96 | public function setName($name) |
94 | 97 | { |
95 | 98 | $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 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $this->em->getClassMetadata(DDC1238User::class), |
21 | 21 | ] |
22 | 22 | ); |
23 | - } catch(\Exception $e) { |
|
23 | + } catch (\Exception $e) { |
|
24 | 24 | |
25 | 25 | } |
26 | 26 | } |
@@ -81,6 +81,9 @@ |
||
81 | 81 | return $this->parent; |
82 | 82 | } |
83 | 83 | |
84 | + /** |
|
85 | + * @param null|DDC1436Page $parent |
|
86 | + */ |
|
84 | 87 | public function setParent($parent) |
85 | 88 | { |
86 | 89 | $this->parent = $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 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | // step 1 |
44 | 44 | $page = $this->em |
45 | - ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
45 | + ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
46 | 46 | ->setParameter('id', $id) |
47 | 47 | ->getOneOrNullResult(); |
48 | 48 |
@@ -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() |