@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Login user. |
58 | 58 | * |
59 | - * @return void|\Cake\Network\Response |
|
59 | + * @return null|Response |
|
60 | 60 | */ |
61 | 61 | public function login() |
62 | 62 | { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * |
310 | 310 | * @param int $blockedId user to ignore |
311 | 311 | * @param bool $set block or unblock |
312 | - * @return \Cake\Network\Response |
|
312 | + * @return Response|null |
|
313 | 313 | */ |
314 | 314 | protected function _ignore($blockedId, $set) |
315 | 315 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * View user profile. |
360 | 360 | * |
361 | 361 | * @param null $id user-ID |
362 | - * @return \Cake\Network\Response|void |
|
362 | + * @return null|Response |
|
363 | 363 | */ |
364 | 364 | public function view($id = null) |
365 | 365 | { |
@@ -420,8 +420,8 @@ discard block |
||
420 | 420 | /** |
421 | 421 | * Set user avatar. |
422 | 422 | * |
423 | - * @param string $userId user-ID |
|
424 | - * @return void|\Cake\Network\Response |
|
423 | + * @param integer $userId user-ID |
|
424 | + * @return Response|null |
|
425 | 425 | */ |
426 | 426 | public function avatar(int $userId) |
427 | 427 | { |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | * |
455 | 455 | * @param null $id user-ID |
456 | 456 | * |
457 | - * @return \Cake\Network\Response|void |
|
457 | + * @return Response|null |
|
458 | 458 | */ |
459 | 459 | public function edit($id = null) |
460 | 460 | { |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | /** |
662 | 662 | * Set slidetab-order. |
663 | 663 | * |
664 | - * @return \Cake\Network\Response |
|
664 | + * @return Response |
|
665 | 665 | * @throws BadRequestException |
666 | 666 | */ |
667 | 667 | public function slidetabOrder() |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | * Set category for user. |
710 | 710 | * |
711 | 711 | * @param null $id category-ID |
712 | - * @return \Cake\Network\Response |
|
712 | + * @return Response|null |
|
713 | 713 | * @throws ForbiddenException |
714 | 714 | */ |
715 | 715 | public function setcategory($id = null) |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use Saito\Exception\SaitoForbiddenException; |
25 | 25 | use Saito\User\Blocker\ManualBlocker; |
26 | 26 | use Saito\User\CurrentUser\CurrentUserInterface; |
27 | -use Saito\User\SaitoUser; |
|
28 | 27 | use Siezi\SimpleCaptcha\Model\Validation\SimpleCaptchaValidator; |
29 | 28 | use Stopwatch\Lib\Stopwatch; |
30 | 29 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * @param Event $event event |
16 | 16 | * @param Entity $entity entity |
17 | - * @param array|\ArrayObject $options options |
|
17 | + * @param \ArrayObject $options options |
|
18 | 18 | * - 'clearCache' set to 'false' to prevent cache clearing |
19 | 19 | * @return void |
20 | 20 | */ |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Cake\Database\Expression\QueryExpression; |
7 | 7 | use Cake\Event\Event; |
8 | 8 | use Cake\Event\EventManager; |
9 | -use Cake\ORM\Entity; |
|
10 | 9 | use Cake\ORM\Table; |
11 | 10 | use Saito\Event\SaitoEventManager; |
12 | 11 |
@@ -125,6 +125,7 @@ |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * {@inheritdoc} |
128 | + * @param string $key |
|
128 | 129 | */ |
129 | 130 | public function getConfig($key = null, $default = null) |
130 | 131 | { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | /** |
63 | 63 | * attaches event-listener |
64 | 64 | * |
65 | - * @param string|SaitoEventListener $key key |
|
65 | + * @param \Saito\Cache\EntriesCacheSupportCachelet $key key |
|
66 | 66 | * @param null $callable function if $key is set |
67 | 67 | * @return void |
68 | 68 | * @throws InvalidArgumentException |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Checks if answering an entry is allowed |
45 | 45 | * |
46 | - * @return bool |
|
46 | + * @return string|boolean |
|
47 | 47 | */ |
48 | 48 | public function isAnsweringForbidden() |
49 | 49 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Saito\Posting\Basic\BasicPostingInterface; |
6 | 6 | use Saito\Posting\Basic\BasicPostingTrait; |
7 | -use Saito\Posting\Decorator\PostingTrait; |
|
8 | 7 | use Saito\Posting\Decorator\UserPostingTrait; |
9 | 8 | use Saito\Thread\Thread; |
10 | 9 | use Saito\User\CurrentUser\CurrentUser; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Saito\Smiley; |
4 | 4 | |
5 | 5 | use Cake\Cache\Cache; |
6 | -use Cake\Core\Configure; |
|
7 | 6 | use Cake\ORM\TableRegistry; |
8 | 7 | |
9 | 8 | class SmileyLoader |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * Constructor |
30 | 30 | * |
31 | - * @param array $smileyData data |
|
31 | + * @param SmileyLoader $smileyData data |
|
32 | 32 | */ |
33 | 33 | public function __construct(SmileyLoader $smileyData) |
34 | 34 | { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Set Helper |
63 | 63 | * |
64 | - * @param Helper $Helper helper |
|
64 | + * @param HtmlHelper $Helper helper |
|
65 | 65 | * @return self |
66 | 66 | */ |
67 | 67 | public function setHelper(HtmlHelper $Helper): self |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @param string $string string |
80 | 80 | * @param array $replacements replacements |
81 | - * @return mixed |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | protected function _debug($string, $replacements) |
84 | 84 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | namespace Saito\Test; |
14 | 14 | |
15 | 15 | use App\Test\Fixture\UserFixture; |
16 | - |
|
17 | 16 | use Cake\Core\Configure; |
18 | 17 | use Cake\Event\Event; |
19 | 18 | use Cake\Event\EventManager; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |