@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | * You don't want to fetch every field for performance reasons. |
303 | 303 | * |
304 | 304 | * @param bool $complete Threadline if false; Full posting if true |
305 | - * @return array The fieldset |
|
305 | + * @return callable The fieldset |
|
306 | 306 | */ |
307 | 307 | public function getFieldset(bool $complete = false): array |
308 | 308 | { |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | * |
432 | 432 | * @param Entry $posting Entity |
433 | 433 | * @param array $data data |
434 | - * @return Entry|null |
|
434 | + * @return \Cake\Datasource\EntityInterface|null |
|
435 | 435 | */ |
436 | 436 | public function updateEntry(Entry $posting, array $data): ?Entry |
437 | 437 | { |
@@ -488,6 +488,8 @@ discard block |
||
488 | 488 | |
489 | 489 | /** |
490 | 490 | * {@inheritDoc} |
491 | + * @param integer $id |
|
492 | + * @param string $key |
|
491 | 493 | */ |
492 | 494 | public function toggle($id, $key) |
493 | 495 | { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * add user |
56 | 56 | * |
57 | - * @return \Cake\Network\Response|void |
|
57 | + * @return \Cake\Http\Response|null |
|
58 | 58 | */ |
59 | 59 | public function add() |
60 | 60 | { |
@@ -22,7 +22,6 @@ |
||
22 | 22 | use Cake\Http\Exception\NotFoundException; |
23 | 23 | use Saito\Exception\SaitoForbiddenException; |
24 | 24 | use Saito\User\Permission\Identifier\Owner; |
25 | -use Saito\User\SaitoUser; |
|
26 | 25 | |
27 | 26 | /** |
28 | 27 | * Bookmarks Controller |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * |
325 | 325 | * @param int $blockedId user to ignore |
326 | 326 | * @param bool $set block or unblock |
327 | - * @return \Cake\Network\Response |
|
327 | + * @return Response|null |
|
328 | 328 | */ |
329 | 329 | protected function _ignore($blockedId, $set) |
330 | 330 | { |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | * View user profile. |
375 | 375 | * |
376 | 376 | * @param null $id user-ID |
377 | - * @return \Cake\Network\Response|void |
|
377 | + * @return null|Response |
|
378 | 378 | */ |
379 | 379 | public function view($id = null) |
380 | 380 | { |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | * Set user avatar. |
438 | 438 | * |
439 | 439 | * @param string $userId user-ID |
440 | - * @return void|\Cake\Network\Response |
|
440 | + * @return Response|null |
|
441 | 441 | */ |
442 | 442 | public function avatar($userId) |
443 | 443 | { |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | * |
497 | 497 | * @param null $id user-ID |
498 | 498 | * |
499 | - * @return \Cake\Network\Response|void |
|
499 | + * @return Response|null |
|
500 | 500 | */ |
501 | 501 | public function edit($id = null) |
502 | 502 | { |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | * delete user |
546 | 546 | * |
547 | 547 | * @param string $id user-ID |
548 | - * @return \Cake\Network\Response|void |
|
548 | + * @return Response|null |
|
549 | 549 | */ |
550 | 550 | public function delete($id) |
551 | 551 | { |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | /** |
611 | 611 | * Lock user. |
612 | 612 | * |
613 | - * @return \Cake\Network\Response|void |
|
613 | + * @return Response|null |
|
614 | 614 | * @throws BadRequestException |
615 | 615 | */ |
616 | 616 | public function lock() |
@@ -838,7 +838,7 @@ discard block |
||
838 | 838 | /** |
839 | 839 | * Set slidetab-order. |
840 | 840 | * |
841 | - * @return \Cake\Network\Response |
|
841 | + * @return Response |
|
842 | 842 | * @throws BadRequestException |
843 | 843 | */ |
844 | 844 | public function slidetabOrder() |
@@ -886,7 +886,7 @@ discard block |
||
886 | 886 | * Set category for user. |
887 | 887 | * |
888 | 888 | * @param string|null $id category-ID |
889 | - * @return \Cake\Network\Response |
|
889 | + * @return Response|null |
|
890 | 890 | */ |
891 | 891 | public function setcategory(?string $id = null) |
892 | 892 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * Link to user-profile |
108 | 108 | * |
109 | 109 | * @param User|ForumsUserInterface $user user |
110 | - * @param bool|CurrentUserInterface $link link |
|
110 | + * @param boolean $link link |
|
111 | 111 | * @param array $options options |
112 | 112 | * @return string |
113 | 113 | */ |