@@ -135,7 +135,7 @@ |
||
135 | 135 | * @Check if user is follower |
136 | 136 | * @param int $userid |
137 | 137 | * @param int $friendid |
138 | - * @return int |
|
138 | + * @return integer[] |
|
139 | 139 | */ |
140 | 140 | public function following_or($userid, $friendid) |
141 | 141 | { |
@@ -209,7 +209,7 @@ |
||
209 | 209 | |
210 | 210 | /** |
211 | 211 | * @param $msgid |
212 | - * @return mixed |
|
212 | + * @return string |
|
213 | 213 | */ |
214 | 214 | public function getOwnerUpdateFromMsgID($msgid) |
215 | 215 | { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | /** |
192 | 192 | * saveImage function |
193 | - * @param $values |
|
193 | + * @param string $values |
|
194 | 194 | */ |
195 | 195 | public function saveImage($values) |
196 | 196 | { |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | * deleteWallComment function |
589 | 589 | * - Delete Comments |
590 | 590 | * @param int $smallworld_com_id |
591 | - * @return true |
|
591 | + * @return boolean |
|
592 | 592 | */ |
593 | 593 | public function deleteWallComment($smallworld_com_id) |
594 | 594 | { |
@@ -698,8 +698,8 @@ discard block |
||
698 | 698 | * |
699 | 699 | * @param int $userid |
700 | 700 | * @param string|bool $directory |
701 | - * @param bool|int $empty |
|
702 | - * @return bool |
|
701 | + * @param boolean $empty |
|
702 | + * @return boolean|null |
|
703 | 703 | */ |
704 | 704 | public function smallworld_remDir($userid, $directory, $empty = false) |
705 | 705 | { |
@@ -741,7 +741,7 @@ discard block |
||
741 | 741 | * Update private settings |
742 | 742 | * |
743 | 743 | * @param mixed $id user's id |
744 | - * @param mixed $posts |
|
744 | + * @param string $posts |
|
745 | 745 | * @return string serialized settings for this id |
746 | 746 | */ |
747 | 747 | public function saveSettings($id, $posts) |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * Get SwUser userid from username |
108 | 108 | * |
109 | - * @param string $userName |
|
109 | + * @param string $username |
|
110 | 110 | * @return int SW userid, 0 if not found |
111 | 111 | */ |
112 | 112 | public function getByName($username = '') |
@@ -127,7 +127,6 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * Does partner/spouse exist as a SwUser |
129 | 129 | * |
130 | - * @param string $name |
|
131 | 130 | * @return bool |
132 | 131 | */ |
133 | 132 | public function spouseExists($username) |
@@ -170,7 +169,6 @@ discard block |
||
170 | 169 | /** |
171 | 170 | * Get user image based on uid |
172 | 171 | * |
173 | - * @param int $uid |
|
174 | 172 | * @return string |
175 | 173 | */ |
176 | 174 | public function gravatar($userId) |
@@ -189,7 +189,7 @@ |
||
189 | 189 | * |
190 | 190 | * @param int $userId |
191 | 191 | * @param int $friendId |
192 | - * @return array |
|
192 | + * @return integer[] |
|
193 | 193 | */ |
194 | 194 | public function following_or($userId, $friendId) |
195 | 195 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * If array check for magicQuotes. |
54 | 54 | * Pass string to XoopsModules\Smallworld\MyFunctions\cleanupString function |
55 | 55 | * |
56 | - * @param array|string $text |
|
56 | + * @param string $text |
|
57 | 57 | * @return array|mixed |
58 | 58 | */ |
59 | 59 | function smallworld_cleanup($text) |
@@ -155,6 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @deprecated - no longer used |
157 | 157 | * @param $folderUrl |
158 | + * @param string $folder |
|
158 | 159 | */ |
159 | 160 | function smallworld_CreateIndexFiles($folder) |
160 | 161 | { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | * @since 1.0 |
22 | 22 | */ |
23 | 23 | |
24 | -use Xmf\FilterInput; |
|
25 | 24 | use XoopsModules\Smallworld; |
26 | 25 | use XoopsModules\Smallworld\Constants; |
27 | 26 | use XoopsModules\Smallworld\Helper; |
@@ -23,7 +23,6 @@ |
||
23 | 23 | |
24 | 24 | use Xmf\Request; |
25 | 25 | use XoopsModules\Smallworld; |
26 | -use XoopsModules\Smallworld\Constants; |
|
27 | 26 | |
28 | 27 | require_once __DIR__ . '/header.php'; |
29 | 28 |