@@ -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 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | * get parent id |
379 | 379 | * |
380 | 380 | * @param int $id id |
381 | - * @return mixed |
|
381 | + * @return integer |
|
382 | 382 | * @throws \UnexpectedValueException |
383 | 383 | */ |
384 | 384 | public function getParentId($id) |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | /** |
590 | 590 | * trees for multiple tids |
591 | 591 | * |
592 | - * @param array $ids ids |
|
592 | + * @param integer[] $ids ids |
|
593 | 593 | * @param array $order order |
594 | 594 | * @param array $fieldlist fieldlist |
595 | 595 | * @return array|null array of Postings, null if nothing found |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | * @param array $params params |
643 | 643 | * - 'fields' array of thread-ids: [1, 2, 5] |
644 | 644 | * - 'order' sort order for threads ['time' => 'ASC'], |
645 | - * @return mixed unhydrated result set |
|
645 | + * @return Query unhydrated result set |
|
646 | 646 | */ |
647 | 647 | protected function _getThreadEntries(array $tid, array $params = []) |
648 | 648 | { |
@@ -710,6 +710,8 @@ discard block |
||
710 | 710 | |
711 | 711 | /** |
712 | 712 | * {@inheritDoc} |
713 | + * @param integer $id |
|
714 | + * @param string $key |
|
713 | 715 | */ |
714 | 716 | public function toggle($id, $key) |
715 | 717 | { |
@@ -894,7 +896,7 @@ discard block |
||
894 | 896 | * Check if posting is thread-root. |
895 | 897 | * |
896 | 898 | * @param array $id posting-ID or posting data |
897 | - * @return mixed |
|
899 | + * @return boolean |
|
898 | 900 | */ |
899 | 901 | protected function _isRoot(array $id) |
900 | 902 | { |
@@ -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 | { |
@@ -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 | */ |