@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * Translates user types |
86 | 86 | * |
87 | 87 | * @param string $type type |
88 | - * @return mixed |
|
88 | + * @return string|null |
|
89 | 89 | */ |
90 | 90 | public function type($type) |
91 | 91 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * Link to user-profile |
127 | 127 | * |
128 | 128 | * @param User|ForumsUserInterface $user user |
129 | - * @param bool|CurrentUserInterface $link link |
|
129 | + * @param boolean $link link |
|
130 | 130 | * @param array $options options |
131 | 131 | * @return string |
132 | 132 | */ |
@@ -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 | { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Cake\Core\Configure; |
22 | 22 | use Cake\Event\Event; |
23 | 23 | use Cake\Http\Exception\BadRequestException; |
24 | -use Cake\Http\Exception\ForbiddenException; |
|
25 | 24 | use Cake\Http\Exception\MethodNotAllowedException; |
26 | 25 | use Cake\Http\Exception\NotFoundException; |
27 | 26 | use Cake\Http\Response; |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Cake\Http\ServerRequest; |
17 | 17 | use Cake\View\Helper\UrlHelper; |
18 | 18 | use Cake\View\View; |
19 | -use Saito\JsData\JsData; |
|
20 | 19 | use Saito\JsData\Notifications; |
21 | 20 | use Saito\User\ForumsUserInterface; |
22 | 21 |
@@ -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 | /** |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | * |
501 | 501 | * @param Entry $posting Entity |
502 | 502 | * @param array $data data |
503 | - * @return Entry|null |
|
503 | + * @return \Cake\Datasource\EntityInterface|null |
|
504 | 504 | */ |
505 | 505 | public function updateEntry(Entry $posting, array $data): ?Entry |
506 | 506 | { |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | /** |
580 | 580 | * trees for multiple tids |
581 | 581 | * |
582 | - * @param array $ids ids |
|
582 | + * @param integer[] $ids ids |
|
583 | 583 | * @param array $order order |
584 | 584 | * @param array $fieldlist fieldlist |
585 | 585 | * @return array|null array of Postings, null if nothing found |
@@ -632,7 +632,7 @@ discard block |
||
632 | 632 | * @param array $params params |
633 | 633 | * - 'fields' array of thread-ids: [1, 2, 5] |
634 | 634 | * - 'order' sort order for threads ['time' => 'ASC'], |
635 | - * @return mixed unhydrated result set |
|
635 | + * @return Query unhydrated result set |
|
636 | 636 | */ |
637 | 637 | protected function _getThreadEntries(array $tid, array $params = []) |
638 | 638 | { |
@@ -686,6 +686,8 @@ discard block |
||
686 | 686 | |
687 | 687 | /** |
688 | 688 | * {@inheritDoc} |
689 | + * @param integer $id |
|
690 | + * @param string $key |
|
689 | 691 | */ |
690 | 692 | public function toggle($id, $key) |
691 | 693 | { |
@@ -152,7 +152,7 @@ |
||
152 | 152 | * Fast version of Set::combine($results, '{n}.Setting.name', |
153 | 153 | * '{n}.Setting.value'); |
154 | 154 | * |
155 | - * @param array $results results |
|
155 | + * @param \Cake\ORM\Query $results results |
|
156 | 156 | * @return array |
157 | 157 | */ |
158 | 158 | protected function _compactKeyValue($results) |