@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | $page = $this->getPageTitle($controller); |
40 | 40 | $title = $this->getTitleForLayout($controller, $page, $forum); |
41 | - $controller->set(['titleForLayout' => $title, 'titleForPage' => $page ]); |
|
41 | + $controller->set(['titleForLayout' => $title, 'titleForPage' => $page]); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | * |
331 | 331 | * @param int $blockedId user to ignore |
332 | 332 | * @param bool $set block or unblock |
333 | - * @return \Cake\Network\Response |
|
333 | + * @return Response|null |
|
334 | 334 | */ |
335 | 335 | protected function _ignore($blockedId, $set) |
336 | 336 | { |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * View user profile. |
381 | 381 | * |
382 | 382 | * @param null $id user-ID |
383 | - * @return \Cake\Network\Response|void |
|
383 | + * @return null|Response |
|
384 | 384 | */ |
385 | 385 | public function view($id = null) |
386 | 386 | { |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | * Set user avatar. |
444 | 444 | * |
445 | 445 | * @param string $userId user-ID |
446 | - * @return void|\Cake\Network\Response |
|
446 | + * @return Response|null |
|
447 | 447 | */ |
448 | 448 | public function avatar($userId) |
449 | 449 | { |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | * |
477 | 477 | * @param null $id user-ID |
478 | 478 | * |
479 | - * @return \Cake\Network\Response|void |
|
479 | + * @return Response|null |
|
480 | 480 | */ |
481 | 481 | public function edit($id = null) |
482 | 482 | { |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | /** |
724 | 724 | * Set slidetab-order. |
725 | 725 | * |
726 | - * @return \Cake\Network\Response |
|
726 | + * @return Response |
|
727 | 727 | * @throws BadRequestException |
728 | 728 | */ |
729 | 729 | public function slidetabOrder() |
@@ -771,7 +771,7 @@ discard block |
||
771 | 771 | * Set category for user. |
772 | 772 | * |
773 | 773 | * @param string|null $id category-ID |
774 | - * @return \Cake\Network\Response |
|
774 | + * @return Response|null |
|
775 | 775 | */ |
776 | 776 | public function setcategory(?string $id = null) |
777 | 777 | { |
@@ -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 | { |
@@ -17,11 +17,8 @@ |
||
17 | 17 | use Cake\Filesystem\File; |
18 | 18 | use Cake\Mailer\TransportFactory; |
19 | 19 | use Cake\Utility\Inflector; |
20 | -use Cron\Lib\Cron; |
|
21 | 20 | use Saito\App\Registry; |
22 | 21 | use Saito\Cache\CacheSupport; |
23 | -use Saito\User\ForumsUserInterface; |
|
24 | -use Saito\User\SaitoUser; |
|
25 | 22 | |
26 | 23 | trait TestCaseTrait |
27 | 24 | { |