@@ -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 | { |
@@ -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 | */ |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * Generate posting preview for JSON frontend. |
| 34 | 34 | * |
| 35 | - * @return \Cake\Network\Response|void |
|
| 35 | + * @return null|\Cake\Http\Response |
|
| 36 | 36 | */ |
| 37 | 37 | public function preview() |
| 38 | 38 | { |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | /** |
| 563 | 563 | * trees for multiple tids |
| 564 | 564 | * |
| 565 | - * @param array $ids ids |
|
| 565 | + * @param integer[] $ids ids |
|
| 566 | 566 | * @param array $order order |
| 567 | 567 | * @param array $fieldlist fieldlist |
| 568 | 568 | * @return array|null array of Postings, null if nothing found |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | * @param array $params params |
| 616 | 616 | * - 'fields' array of thread-ids: [1, 2, 5] |
| 617 | 617 | * - 'order' sort order for threads ['time' => 'ASC'], |
| 618 | - * @return mixed unhydrated result set |
|
| 618 | + * @return Query unhydrated result set |
|
| 619 | 619 | */ |
| 620 | 620 | protected function _getThreadEntries(array $tid, array $params = []) |
| 621 | 621 | { |
@@ -669,6 +669,8 @@ discard block |
||
| 669 | 669 | |
| 670 | 670 | /** |
| 671 | 671 | * {@inheritDoc} |
| 672 | + * @param integer $id |
|
| 673 | + * @param string $key |
|
| 672 | 674 | */ |
| 673 | 675 | public function toggle($id, $key) |
| 674 | 676 | { |
@@ -853,7 +855,7 @@ discard block |
||
| 853 | 855 | * Check if posting is thread-root. |
| 854 | 856 | * |
| 855 | 857 | * @param array $id posting-ID or posting data |
| 856 | - * @return mixed |
|
| 858 | + * @return boolean |
|
| 857 | 859 | */ |
| 858 | 860 | protected function _isRoot(array $id) |
| 859 | 861 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | throw new \InvalidArgumentException( |
| 67 | 67 | 'Parent posting for creating a new answer not found.', |
| 68 | 68 | 1564756571 |
| 69 | - ) ; |
|
| 69 | + ); |
|
| 70 | 70 | } |
| 71 | 71 | $parentId = $parent->get('id'); |
| 72 | 72 | $categoryId = $parent->get('category_id'); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | throw new \InvalidArgumentException( |
| 82 | 82 | 'New root posting requires a category.', |
| 83 | 83 | 1564756571 |
| 84 | - ) ; |
|
| 84 | + ); |
|
| 85 | 85 | } |
| 86 | 86 | $categoryId = (int)$data['category_id']; |
| 87 | 87 | } |