@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | /** |
148 | 148 | * saveImage function |
149 | - * @param $values |
|
149 | + * @param string $values |
|
150 | 150 | * @return void |
151 | 151 | */ |
152 | 152 | public function saveImage($values) |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * deleteWallMsg function |
457 | 457 | * @param int $id |
458 | 458 | * @param int $smallworld_msg_id |
459 | - * @return true |
|
459 | + * @return boolean |
|
460 | 460 | */ |
461 | 461 | public function deleteWallMsg($id, $smallworld_msg_id) |
462 | 462 | { |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | * deleteWallComment function |
476 | 476 | * - Delete Comments |
477 | 477 | * @param int $smallworld_com_id |
478 | - * @return true |
|
478 | + * @return boolean |
|
479 | 479 | */ |
480 | 480 | public function deleteWallComment($smallworld_com_id) |
481 | 481 | { |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | * SmallworldDeleteDirectory function |
551 | 551 | * - Delete images from users on delete |
552 | 552 | * @param int $userid |
553 | - * @return true |
|
553 | + * @return boolean |
|
554 | 554 | */ |
555 | 555 | public function SmallworldDeleteDirectory($userid) |
556 | 556 | { |
@@ -580,8 +580,8 @@ discard block |
||
580 | 580 | * - Remove user image dir in uploads. |
581 | 581 | * @param int $userid |
582 | 582 | * @param string|bool $directory |
583 | - * @param bool|int $empty |
|
584 | - * @return true |
|
583 | + * @param boolean $empty |
|
584 | + * @return boolean|null |
|
585 | 585 | */ |
586 | 586 | public function smallworld_remDir($userid, $directory, $empty = false) |
587 | 587 | { |
@@ -621,6 +621,7 @@ discard block |
||
621 | 621 | * Update private settings |
622 | 622 | * @param int id ($userid) |
623 | 623 | * @param string posts (serialized values) |
624 | + * @param string $posts |
|
624 | 625 | * @return void |
625 | 626 | */ |
626 | 627 | public function saveSettings($id, $posts) |
@@ -641,7 +642,7 @@ discard block |
||
641 | 642 | /** |
642 | 643 | * Retrieve private settings |
643 | 644 | * @param int userid |
644 | - * @return serialized|string |
|
645 | + * @return null|string |
|
645 | 646 | */ |
646 | 647 | public function GetSettings($userid) |
647 | 648 | { |
@@ -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 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @param $file_name |
|
48 | + * @param string $file_name |
|
49 | 49 | * @return null|\stdClass |
50 | 50 | */ |
51 | 51 | private function get_file_object($file_name) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param $file_name |
|
66 | + * @param string $file_name |
|
67 | 67 | * @return bool |
68 | 68 | */ |
69 | 69 | private function create_thumbnail($file_name) |
@@ -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 | { |
@@ -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) |
@@ -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 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * getSchoolToDiv function |
72 | 72 | * |
73 | - * @param int $userId smallworld `userid` |
|
73 | + * @param integer $id |
|
74 | 74 | * @return array |
75 | 75 | */ |
76 | 76 | function getSchoolToDiv($id) |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | /** |
176 | 176 | * saveImage function |
177 | - * @param $values |
|
177 | + * @param string $values |
|
178 | 178 | */ |
179 | 179 | public function saveImage($values) |
180 | 180 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | * deleteWallComment function |
575 | 575 | * - Delete Comments |
576 | 576 | * @param int $smallworld_com_id |
577 | - * @return true |
|
577 | + * @return boolean |
|
578 | 578 | */ |
579 | 579 | public function deleteWallComment($smallworld_com_id) |
580 | 580 | { |
@@ -684,8 +684,8 @@ discard block |
||
684 | 684 | * |
685 | 685 | * @param int $userid |
686 | 686 | * @param string|bool $directory |
687 | - * @param bool|int $empty |
|
688 | - * @return bool |
|
687 | + * @param boolean $empty |
|
688 | + * @return boolean|null |
|
689 | 689 | */ |
690 | 690 | public function smallworld_remDir($userid, $directory, $empty = false) |
691 | 691 | { |
@@ -727,7 +727,7 @@ discard block |
||
727 | 727 | * Update private settings |
728 | 728 | * |
729 | 729 | * @param mixed $id user's id |
730 | - * @param mixed $posts |
|
730 | + * @param string $posts |
|
731 | 731 | * @return string serialized settings for this id |
732 | 732 | */ |
733 | 733 | public function saveSettings($id, $posts) |