@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * attaches event-listener |
74 | 74 | * |
75 | - * @param string|SaitoEventListener $key key |
|
75 | + * @param \Saito\Cache\EntriesCacheSupportCachelet $key key |
|
76 | 76 | * @param null $callable function if $key is set |
77 | 77 | * @return void |
78 | 78 | * @throws \InvalidArgumentException |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @param string $string string |
90 | 90 | * @param array $replacements replacements |
91 | - * @return mixed |
|
91 | + * @return string |
|
92 | 92 | */ |
93 | 93 | protected function _debug($string, $replacements) |
94 | 94 | { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * |
135 | 135 | * @param int $userId user-ID |
136 | 136 | * @param int $blockedId user-ID |
137 | - * @return mixed |
|
137 | + * @return \Cake\Datasource\EntityInterface |
|
138 | 138 | */ |
139 | 139 | protected function _get(int $userId, int $blockedId) |
140 | 140 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * posting index |
70 | 70 | * |
71 | - * @return void|\Cake\Network\Response |
|
71 | + * @return Response|null |
|
72 | 72 | */ |
73 | 73 | public function index() |
74 | 74 | { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * View posting. |
190 | 190 | * |
191 | 191 | * @param string $id posting-ID |
192 | - * @return \Cake\Network\Response|void |
|
192 | + * @return Response|null |
|
193 | 193 | */ |
194 | 194 | public function view($id = null) |
195 | 195 | { |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | * Get thread-line to insert after an inline-answer |
300 | 300 | * |
301 | 301 | * @param string $id posting-ID |
302 | - * @return void|\Cake\Network\Response |
|
302 | + * @return Response|null |
|
303 | 303 | */ |
304 | 304 | public function threadLine($id = null) |
305 | 305 | { |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | * @param string $id posting-ID |
449 | 449 | * @param string $toggle property |
450 | 450 | * |
451 | - * @return \Cake\Network\Response |
|
451 | + * @return Response |
|
452 | 452 | */ |
453 | 453 | public function ajaxToggle($id = null, $toggle = null) |
454 | 454 | { |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * |
92 | 92 | * @param string|null $id settings-ID |
93 | 93 | * |
94 | - * @return \Cake\Network\Response|void |
|
94 | + * @return \Cake\Http\Response|null |
|
95 | 95 | */ |
96 | 96 | public function edit(string $id = null) |
97 | 97 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * help |
40 | 40 | * |
41 | 41 | * @param string $id id |
42 | - * @return mixed |
|
42 | + * @return string|null |
|
43 | 43 | */ |
44 | 44 | public function help($id) |
45 | 45 | { |
@@ -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 | { |
@@ -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 | { |