@@ -334,7 +334,7 @@ |
||
| 334 | 334 | * Fetch content of comma separated text file |
| 335 | 335 | * will attempt to use the fopen method first, then curl, then socket |
| 336 | 336 | * @param string $url |
| 337 | - * @param array $methods |
|
| 337 | + * @param string[] $methods |
|
| 338 | 338 | * @returns string |
| 339 | 339 | * @return bool|false|string |
| 340 | 340 | * @return bool|false|string |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | * - Remove user image dir in uploads. |
| 90 | 90 | * @param int $userid |
| 91 | 91 | * @param string|bool $directory |
| 92 | - * @param bool|int $empty |
|
| 93 | - * @return true |
|
| 92 | + * @param boolean $empty |
|
| 93 | + * @return boolean|null |
|
| 94 | 94 | */ |
| 95 | 95 | public function smallworld_remDir($userid, $directory, $empty = false) |
| 96 | 96 | { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * SmallworldDeleteDirectory function |
| 132 | 132 | * - Delete images from users on delete |
| 133 | 133 | * @param int $userid |
| 134 | - * @return true |
|
| 134 | + * @return boolean |
|
| 135 | 135 | */ |
| 136 | 136 | public function SmallworldDeleteDirectory($userid) |
| 137 | 137 | { |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | * @author Michael Albertsen (http://culex.dk) <[email protected]> |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | -use Xmf\Request; |
|
| 24 | 23 | use XoopsModules\Smallworld; |
| 25 | 24 | |
| 26 | 25 | //require_once __DIR__ . '/common.php'; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | // If array check for magicQuotes. |
| 50 | 50 | // Pass string to Smallworld_cleanup_string |
| 51 | 51 | /** |
| 52 | - * @param $text |
|
| 52 | + * @param string $text |
|
| 53 | 53 | * @return array|mixed |
| 54 | 54 | */ |
| 55 | 55 | function Smallworld_cleanup($text) |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | - * @param $folderUrl |
|
| 145 | + * @param string $folderUrl |
|
| 146 | 146 | */ |
| 147 | 147 | function Smallworld_CreateIndexFiles($folderUrl) |
| 148 | 148 | { |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | // Return only url/link |
| 292 | 292 | // If url is image link return <img> |
| 293 | 293 | /** |
| 294 | - * @param $text |
|
| 294 | + * @param string $text |
|
| 295 | 295 | * @param $uid |
| 296 | 296 | * @return string |
| 297 | 297 | */ |
@@ -966,7 +966,7 @@ discard block |
||
| 966 | 966 | /** |
| 967 | 967 | * @param $width |
| 968 | 968 | * @param $height |
| 969 | - * @param $target |
|
| 969 | + * @param integer $target |
|
| 970 | 970 | * @return string |
| 971 | 971 | */ |
| 972 | 972 | function smallworld_imageResize($width, $height, $target) |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | * will attempt to use the getimagesiz method first, then curl |
| 994 | 994 | * @param int $w |
| 995 | 995 | * @param int $h |
| 996 | - * @param url $url |
|
| 996 | + * @param string $url |
|
| 997 | 997 | * @returns array |
| 998 | 998 | * @return array|false|string[] |
| 999 | 999 | * @return array|false|string[] |
@@ -1103,7 +1103,7 @@ discard block |
||
| 1103 | 1103 | /** |
| 1104 | 1104 | * @Get string and shorten so contains only ? chars |
| 1105 | 1105 | * @param $text |
| 1106 | - * @param $chars |
|
| 1106 | + * @param integer $chars |
|
| 1107 | 1107 | * @return string |
| 1108 | 1108 | */ |
| 1109 | 1109 | function smallworld_shortenText($text, $chars) |
@@ -1118,8 +1118,8 @@ discard block |
||
| 1118 | 1118 | |
| 1119 | 1119 | /** |
| 1120 | 1120 | * @Get languagefile if constants are not defined |
| 1121 | - * @param $def |
|
| 1122 | - * @param $file |
|
| 1121 | + * @param string $def |
|
| 1122 | + * @param string $file |
|
| 1123 | 1123 | * return file include |
| 1124 | 1124 | */ |
| 1125 | 1125 | function smallworld_isDefinedLanguage($def, $file) |
@@ -1170,7 +1170,7 @@ discard block |
||
| 1170 | 1170 | } |
| 1171 | 1171 | |
| 1172 | 1172 | /** |
| 1173 | - * @return array of groups |
|
| 1173 | + * @return string[] of groups |
|
| 1174 | 1174 | * return array |
| 1175 | 1175 | */ |
| 1176 | 1176 | function smallworld_xv_getGroupd() |
@@ -20,8 +20,6 @@ |
||
| 20 | 20 | * @author Michael Albertsen (http://culex.dk) <[email protected]> |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | -use XoopsModules\Smallworld; |
|
| 24 | - |
|
| 25 | 23 | require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
| 26 | 24 | require_once dirname(__DIR__) . '/include/common.php'; |
| 27 | 25 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @param int $mode |
| 42 | 42 | * @param $redirectFile |
| 43 | 43 | * |
| 44 | - * @return bool|string |
|
| 44 | + * @return false|string |
|
| 45 | 45 | */ |
| 46 | 46 | public static function getDirectoryStatus($path, $mode = 0777, $redirectFile = null) |
| 47 | 47 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param $file_name |
|
| 50 | + * @param string $file_name |
|
| 51 | 51 | * @return null|\stdClass |
| 52 | 52 | */ |
| 53 | 53 | private function get_file_object($file_name) |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @param $file_name |
|
| 68 | + * @param string $file_name |
|
| 69 | 69 | * @return bool |
| 70 | 70 | */ |
| 71 | 71 | private function create_thumbnail($file_name) |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @param $size |
| 127 | 127 | * @param $type |
| 128 | 128 | * @param $error |
| 129 | - * @return stdClass |
|
| 129 | + * @return \stdClass |
|
| 130 | 130 | */ |
| 131 | 131 | private function handle_file_upload($uploaded_file, $name, $size, $type, $error) |
| 132 | 132 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * @param string $file_path |
| 41 | 41 | * @param string|null $original_file_path |
| 42 | 42 | * @param string $redirectFile |
| 43 | - * @return bool|string |
|
| 43 | + * @return false|string |
|
| 44 | 44 | */ |
| 45 | 45 | public static function getFileStatus($file_path, $original_file_path, $redirectFile) |
| 46 | 46 | { |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | - * @param $file1_path |
|
| 101 | - * @param $file2_path |
|
| 100 | + * @param string $file1_path |
|
| 101 | + * @param string $file2_path |
|
| 102 | 102 | * |
| 103 | 103 | * @return bool |
| 104 | 104 | */ |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * @param $fromUserID |
| 46 | 46 | * @param $toUserID |
| 47 | - * @param $event |
|
| 47 | + * @param string $event |
|
| 48 | 48 | * @param null|string $link |
| 49 | 49 | * @throws \phpmailerException |
| 50 | 50 | */ |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | /** |
| 212 | 212 | * @param $msgid |
| 213 | - * @return mixed |
|
| 213 | + * @return string |
|
| 214 | 214 | */ |
| 215 | 215 | public function getOwnerUpdateFromMsgID($msgid) |
| 216 | 216 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * saveImage function |
| 155 | - * @param $values |
|
| 155 | + * @param string $values |
|
| 156 | 156 | */ |
| 157 | 157 | public function saveImage($values) |
| 158 | 158 | { |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | * deleteWallMsg function |
| 453 | 453 | * @param int $id |
| 454 | 454 | * @param int $smallworld_msg_id |
| 455 | - * @return true |
|
| 455 | + * @return boolean |
|
| 456 | 456 | */ |
| 457 | 457 | public function deleteWallMsg($id, $smallworld_msg_id) |
| 458 | 458 | { |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | * deleteWallComment function |
| 473 | 473 | * - Delete Comments |
| 474 | 474 | * @param int $smallworld_com_id |
| 475 | - * @return true |
|
| 475 | + * @return boolean |
|
| 476 | 476 | */ |
| 477 | 477 | public function deleteWallComment($smallworld_com_id) |
| 478 | 478 | { |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | * SmallworldDeleteDirectory function |
| 550 | 550 | * - Delete images from users on delete |
| 551 | 551 | * @param int $userid |
| 552 | - * @return true |
|
| 552 | + * @return boolean |
|
| 553 | 553 | */ |
| 554 | 554 | public function SmallworldDeleteDirectory($userid) |
| 555 | 555 | { |
@@ -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 | { |
@@ -622,7 +622,7 @@ discard block |
||
| 622 | 622 | * @param int id ($userid) |
| 623 | 623 | * @param string posts (serialized values) |
| 624 | 624 | * @param mixed $id |
| 625 | - * @param mixed $posts |
|
| 625 | + * @param string $posts |
|
| 626 | 626 | */ |
| 627 | 627 | public function saveSettings($id, $posts) |
| 628 | 628 | { |