@@ -332,7 +332,7 @@ |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
335 | - * @param mixed $locationId |
|
335 | + * @param integer $locationId |
|
336 | 336 | * @param bool $count |
337 | 337 | * |
338 | 338 | * @return \Doctrine\DBAL\Driver\Statement |
@@ -23,7 +23,7 @@ |
||
23 | 23 | final class ContentViewTwigVariablesSubscriberTest extends TestCase |
24 | 24 | { |
25 | 25 | /** |
26 | - * @return \eZ\Publish\Core\MVC\Symfony\View\ContentView|\PHPUnit\Framework\MockObject\MockObject |
|
26 | + * @return View |
|
27 | 27 | */ |
28 | 28 | private function getContentViewMock(): ContentView |
29 | 29 | { |
@@ -118,7 +118,7 @@ |
||
118 | 118 | * Removes the old file referenced by $fieldId in $versionNo, if not |
119 | 119 | * referenced else where. |
120 | 120 | * |
121 | - * @param mixed $fieldId |
|
121 | + * @param integer $fieldId |
|
122 | 122 | * @param string $versionNo |
123 | 123 | * @param array $context |
124 | 124 | */ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Get language by id. |
75 | 75 | * |
76 | - * @param mixed $id |
|
76 | + * @param integer $id |
|
77 | 77 | * |
78 | 78 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If language could not be found by $id |
79 | 79 | * |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | /** |
180 | 180 | * Delete a language. |
181 | 181 | * |
182 | - * @param mixed $id |
|
182 | + * @param integer $id |
|
183 | 183 | */ |
184 | 184 | public function delete($id) |
185 | 185 | { |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | /** |
285 | 285 | * Returns a Content Gateway mock. |
286 | 286 | * |
287 | - * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Gateway |
|
287 | + * @return Gateway |
|
288 | 288 | */ |
289 | 289 | protected function getContentGatewayMock() |
290 | 290 | { |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | /** |
299 | 299 | * Returns a Content StorageHandler mock. |
300 | 300 | * |
301 | - * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\StorageHandler |
|
301 | + * @return StorageHandler |
|
302 | 302 | */ |
303 | 303 | protected function getContentStorageHandlerMock() |
304 | 304 | { |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | /** |
313 | 313 | * Returns a Content mapper mock. |
314 | 314 | * |
315 | - * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Mapper |
|
315 | + * @return ContentMapper |
|
316 | 316 | */ |
317 | 317 | protected function getContentMapperMock() |
318 | 318 | { |
@@ -538,7 +538,7 @@ |
||
538 | 538 | * are an array of limitation values. The limitation parameter is optional. |
539 | 539 | * |
540 | 540 | * @param mixed $contentId The groupId or userId to assign the role to. |
541 | - * @param mixed $roleId |
|
541 | + * @param integer|null $roleId |
|
542 | 542 | * @param array $limitation |
543 | 543 | */ |
544 | 544 | public function assignRole($contentId, $roleId, array $limitation = null) |
@@ -27,16 +27,19 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Begin a transaction. |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function beginTransaction(); |
32 | 33 | |
33 | 34 | /** |
34 | 35 | * Commit a transaction. |
36 | + * @return void |
|
35 | 37 | */ |
36 | 38 | public function commit(); |
37 | 39 | |
38 | 40 | /** |
39 | 41 | * Rollback a transaction. |
42 | + * @return void |
|
40 | 43 | */ |
41 | 44 | public function rollBack(); |
42 | 45 | |
@@ -60,6 +63,7 @@ discard block |
||
60 | 63 | * Execute a query against the database. |
61 | 64 | * |
62 | 65 | * @param string $query |
66 | + * @return void |
|
63 | 67 | */ |
64 | 68 | public function exec($query); |
65 | 69 | |
@@ -68,7 +72,8 @@ discard block |
||
68 | 72 | * |
69 | 73 | * Statements are ducktyped, but need to work like PDOStatement. |
70 | 74 | * |
71 | - * @return object |
|
75 | + * @param string $query |
|
76 | + * @return \Doctrine\DBAL\Driver\Statement |
|
72 | 77 | */ |
73 | 78 | public function prepare($query); |
74 | 79 | |
@@ -138,8 +143,9 @@ discard block |
||
138 | 143 | * |
139 | 144 | * This is an optimization and works around the ezcDB implementation. |
140 | 145 | * |
141 | - * @param string $identifier |
|
142 | 146 | * |
147 | + * @param string $name |
|
148 | + * @param string $alias |
|
143 | 149 | * @return string |
144 | 150 | */ |
145 | 151 | public function alias($name, $alias); |
@@ -185,7 +191,7 @@ discard block |
||
185 | 191 | /** |
186 | 192 | * Returns underlying connection (e.g. Doctrine connection object). |
187 | 193 | * |
188 | - * @return mixed |
|
194 | + * @return \Doctrine\DBAL\Connection |
|
189 | 195 | */ |
190 | 196 | public function getConnection(); |
191 | 197 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
310 | 310 | * @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException |
311 | 311 | * |
312 | - * @param mixed $locationId |
|
312 | + * @param integer $locationId |
|
313 | 313 | * @param string $path |
314 | 314 | * @param bool $forwarding |
315 | 315 | * @param string $languageCode |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | * @param string $text |
467 | 467 | * @param string $textMD5 |
468 | 468 | * |
469 | - * @return mixed |
|
469 | + * @return integer |
|
470 | 470 | */ |
471 | 471 | protected function insertNopEntry($parentId, $text, $textMD5) |
472 | 472 | { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * |
487 | 487 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
488 | 488 | * |
489 | - * @param mixed $locationId |
|
489 | + * @param integer $locationId |
|
490 | 490 | * @param bool $custom if true the user generated aliases are listed otherwise the autogenerated |
491 | 491 | * |
492 | 492 | * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
@@ -622,9 +622,9 @@ discard block |
||
622 | 622 | * |
623 | 623 | * This method triggers the change of the autogenerated aliases. |
624 | 624 | * |
625 | - * @param mixed $locationId |
|
626 | - * @param mixed $oldParentId |
|
627 | - * @param mixed $newParentId |
|
625 | + * @param integer $locationId |
|
626 | + * @param integer $oldParentId |
|
627 | + * @param integer $newParentId |
|
628 | 628 | */ |
629 | 629 | public function locationMoved($locationId, $oldParentId, $newParentId) |
630 | 630 | { |
@@ -652,9 +652,9 @@ discard block |
||
652 | 652 | * |
653 | 653 | * This method triggers the creation of the autogenerated aliases for the copied locations |
654 | 654 | * |
655 | - * @param mixed $locationId |
|
656 | - * @param mixed $newLocationId |
|
657 | - * @param mixed $newParentId |
|
655 | + * @param integer $locationId |
|
656 | + * @param integer $newLocationId |
|
657 | + * @param integer $newParentId |
|
658 | 658 | */ |
659 | 659 | public function locationCopied($locationId, $newLocationId, $newParentId) |
660 | 660 | { |
@@ -983,7 +983,7 @@ discard block |
||
983 | 983 | /** |
984 | 984 | * Notifies the underlying engine that a location was deleted or moved to trash. |
985 | 985 | * |
986 | - * @param mixed $locationId |
|
986 | + * @param integer $locationId |
|
987 | 987 | */ |
988 | 988 | public function locationDeleted($locationId) |
989 | 989 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Loads a user group for the given id. |
175 | 175 | * |
176 | - * @param mixed $id |
|
176 | + * @param integer $id |
|
177 | 177 | * @param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object. |
178 | 178 | * |
179 | 179 | * @return \eZ\Publish\API\Repository\Values\User\UserGroup |
@@ -1371,6 +1371,9 @@ discard block |
||
1371 | 1371 | !empty($userUpdateStruct->maxLogin); |
1372 | 1372 | } |
1373 | 1373 | |
1374 | + /** |
|
1375 | + * @param integer|null $timestamp |
|
1376 | + */ |
|
1374 | 1377 | private function getDateTime(?int $timestamp): ?DateTimeInterface |
1375 | 1378 | { |
1376 | 1379 | if ($timestamp !== null) { |