@@ -187,7 +187,7 @@ |
||
| 187 | 187 | |
| 188 | 188 | // converts a 2D array in a comma separated list (or separator of our choice) |
| 189 | 189 | /** |
| 190 | - * @param $sep |
|
| 190 | + * @param string $sep |
|
| 191 | 191 | * @param $array |
| 192 | 192 | * |
| 193 | 193 | * @return string |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * @param $db |
| 75 | - * @param $type |
|
| 75 | + * @param string $type |
|
| 76 | 76 | */ |
| 77 | 77 | public function __construct(XoopsDatabase $db, $type) |
| 78 | 78 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * @param $data |
| 106 | 106 | * |
| 107 | - * @return bool |
|
| 107 | + * @return false|null |
|
| 108 | 108 | */ |
| 109 | 109 | public function modifyCat($data) |
| 110 | 110 | { |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | |
| 304 | 304 | /** |
| 305 | 305 | * @param $name |
| 306 | - * @param $selectMode |
|
| 306 | + * @param string $selectMode |
|
| 307 | 307 | * @param bool $addEmpty |
| 308 | 308 | * @param int $selected |
| 309 | 309 | * @param string $extra |
@@ -350,10 +350,10 @@ discard block |
||
| 350 | 350 | * @param $cats |
| 351 | 351 | * @param $name |
| 352 | 352 | * @param $selectMode |
| 353 | - * @param $addEmpty |
|
| 354 | - * @param $selected |
|
| 355 | - * @param $extra |
|
| 356 | - * @param $displayWeight |
|
| 353 | + * @param boolean $addEmpty |
|
| 354 | + * @param integer $selected |
|
| 355 | + * @param string $extra |
|
| 356 | + * @param boolean $displayWeight |
|
| 357 | 357 | * |
| 358 | 358 | * @return string |
| 359 | 359 | */ |
@@ -548,6 +548,7 @@ discard block |
||
| 548 | 548 | * @param int $id The ID of the current node to process |
| 549 | 549 | * @param int $level The nlevel to assign to the current node |
| 550 | 550 | * @param int &$n A reference to the running tally for the n-value |
| 551 | + * @param integer $n |
|
| 551 | 552 | */ |
| 552 | 553 | public function _generateTreeData(&$arr, $id, $level, &$n) |
| 553 | 554 | { |
@@ -596,7 +596,7 @@ |
||
| 596 | 596 | } |
| 597 | 597 | |
| 598 | 598 | /** |
| 599 | - * @param $fieldname |
|
| 599 | + * @param string $fieldname |
|
| 600 | 600 | * @param $criteria |
| 601 | 601 | * @param string $op |
| 602 | 602 | * |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | { |
| 105 | 105 | /** |
| 106 | 106 | * @param $caption |
| 107 | - * @param $name |
|
| 107 | + * @param string $name |
|
| 108 | 108 | * @param $groupId |
| 109 | 109 | * @param null $values |
| 110 | 110 | */ |
@@ -360,6 +360,7 @@ |
||
| 360 | 360 | * @param int $id The ID of the current node to process |
| 361 | 361 | * @param int $level The nlevel to assign to the current node |
| 362 | 362 | * @param int &$n A reference to the running tally for the n-value |
| 363 | + * @param integer $n |
|
| 363 | 364 | */ |
| 364 | 365 | public function _generateTreeData(& $arr, $id, $level, & $n) |
| 365 | 366 | { |
@@ -1063,7 +1063,7 @@ discard block |
||
| 1063 | 1063 | /** |
| 1064 | 1064 | * @param $p_tarname |
| 1065 | 1065 | * @param $p_list |
| 1066 | - * @param $p_mode |
|
| 1066 | + * @param string $p_mode |
|
| 1067 | 1067 | * @param string $p_add_dir |
| 1068 | 1068 | * @param string $p_remove_dir |
| 1069 | 1069 | * |
@@ -1154,10 +1154,10 @@ discard block |
||
| 1154 | 1154 | /** |
| 1155 | 1155 | * @param $p_tarname |
| 1156 | 1156 | * @param $p_list |
| 1157 | - * @param $p_mode |
|
| 1157 | + * @param string $p_mode |
|
| 1158 | 1158 | * @param $p_list_detail |
| 1159 | - * @param $p_add_dir |
|
| 1160 | - * @param $p_remove_dir |
|
| 1159 | + * @param string $p_add_dir |
|
| 1160 | + * @param string $p_remove_dir |
|
| 1161 | 1161 | * |
| 1162 | 1162 | * @return int |
| 1163 | 1163 | */ |
@@ -1853,10 +1853,10 @@ discard block |
||
| 1853 | 1853 | * @param $p_tarname |
| 1854 | 1854 | * @param $p_file_list |
| 1855 | 1855 | * @param $p_list_detail |
| 1856 | - * @param $p_mode |
|
| 1857 | - * @param $p_path |
|
| 1856 | + * @param string $p_mode |
|
| 1857 | + * @param string $p_path |
|
| 1858 | 1858 | * @param $p_tar_mode |
| 1859 | - * @param $p_remove_path |
|
| 1859 | + * @param string $p_remove_path |
|
| 1860 | 1860 | * |
| 1861 | 1861 | * @return int |
| 1862 | 1862 | */ |
@@ -2254,8 +2254,8 @@ discard block |
||
| 2254 | 2254 | * @param $p_tarname |
| 2255 | 2255 | * @param $p_index_string |
| 2256 | 2256 | * @param $p_list_detail |
| 2257 | - * @param $p_path |
|
| 2258 | - * @param $p_remove_path |
|
| 2257 | + * @param string $p_path |
|
| 2258 | + * @param string $p_remove_path |
|
| 2259 | 2259 | * @param $p_tar_mode |
| 2260 | 2260 | * |
| 2261 | 2261 | * @return int |
@@ -2682,7 +2682,7 @@ discard block |
||
| 2682 | 2682 | * @param $p_tarname |
| 2683 | 2683 | * @param $p_file_list |
| 2684 | 2684 | * @param $p_list_detail |
| 2685 | - * @param $p_tar_mode |
|
| 2685 | + * @param string $p_tar_mode |
|
| 2686 | 2686 | * |
| 2687 | 2687 | * @return int |
| 2688 | 2688 | */ |
@@ -2917,9 +2917,9 @@ discard block |
||
| 2917 | 2917 | * @param $p_tarname |
| 2918 | 2918 | * @param $p_file_list |
| 2919 | 2919 | * @param $p_list_detail |
| 2920 | - * @param $p_tar_mode |
|
| 2921 | - * @param $p_add_dir |
|
| 2922 | - * @param $p_remove_dir |
|
| 2920 | + * @param string $p_tar_mode |
|
| 2921 | + * @param string $p_add_dir |
|
| 2922 | + * @param string $p_remove_dir |
|
| 2923 | 2923 | * |
| 2924 | 2924 | * @return int |
| 2925 | 2925 | */ |
@@ -3262,7 +3262,7 @@ discard block |
||
| 3262 | 3262 | // Return Values : |
| 3263 | 3263 | // -------------------------------------------------------------------------------- |
| 3264 | 3264 | /** |
| 3265 | - * @param $v_binary_data |
|
| 3265 | + * @param string $v_binary_data |
|
| 3266 | 3266 | * @param $v_header |
| 3267 | 3267 | * |
| 3268 | 3268 | * @return int |
@@ -146,9 +146,9 @@ discard block |
||
| 146 | 146 | // $p_level : Level of trace required. |
| 147 | 147 | // -------------------------------------------------------------------------------- |
| 148 | 148 | /** |
| 149 | - * @param $p_file |
|
| 150 | - * @param $p_line |
|
| 151 | - * @param $p_name |
|
| 149 | + * @param string $p_file |
|
| 150 | + * @param integer $p_line |
|
| 151 | + * @param string $p_name |
|
| 152 | 152 | * @param string $p_param |
| 153 | 153 | * @param string $p_message |
| 154 | 154 | */ |
@@ -213,8 +213,8 @@ discard block |
||
| 213 | 213 | // $p_level : Level of trace required. |
| 214 | 214 | // -------------------------------------------------------------------------------- |
| 215 | 215 | /** |
| 216 | - * @param $p_file |
|
| 217 | - * @param $p_line |
|
| 216 | + * @param string $p_file |
|
| 217 | + * @param integer $p_line |
|
| 218 | 218 | * @param int $p_return |
| 219 | 219 | * @param string $p_message |
| 220 | 220 | */ |
@@ -279,9 +279,9 @@ discard block |
||
| 279 | 279 | // Parameters : |
| 280 | 280 | // -------------------------------------------------------------------------------- |
| 281 | 281 | /** |
| 282 | - * @param $p_file |
|
| 283 | - * @param $p_line |
|
| 284 | - * @param $p_level |
|
| 282 | + * @param string $p_file |
|
| 283 | + * @param integer $p_line |
|
| 284 | + * @param integer $p_level |
|
| 285 | 285 | * @param string $p_message |
| 286 | 286 | */ |
| 287 | 287 | function TrFctMessage($p_file, $p_line, $p_level, $p_message = '') |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * The actual implementation of the argument parsing code. |
| 88 | - * @param $version |
|
| 88 | + * @param integer $version |
|
| 89 | 89 | * @param $args |
| 90 | 90 | * @param $short_options |
| 91 | 91 | * @param null $long_options |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * @access private |
| 154 | - * @param $arg |
|
| 154 | + * @param string $arg |
|
| 155 | 155 | * @param $short_options |
| 156 | 156 | * @param $opts |
| 157 | 157 | * @param $args |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | 197 | * @access private |
| 198 | - * @param $arg |
|
| 198 | + * @param string $arg |
|
| 199 | 199 | * @param $long_options |
| 200 | 200 | * @param $opts |
| 201 | 201 | * @param $args |
@@ -249,10 +249,10 @@ discard block |
||
| 249 | 249 | * |
| 250 | 250 | * If either is 0 it will keep the original size for that dimension |
| 251 | 251 | * |
| 252 | - * @param mixed $new_x (0, number, percentage 10% or 0.1) |
|
| 253 | - * @param mixed $new_y (0, number, percentage 10% or 0.1) |
|
| 252 | + * @param integer $new_x (0, number, percentage 10% or 0.1) |
|
| 253 | + * @param integer $new_y (0, number, percentage 10% or 0.1) |
|
| 254 | 254 | * @param array $options Options |
| 255 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 255 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 256 | 256 | * @access public |
| 257 | 257 | */ |
| 258 | 258 | public function resize($new_x = 0, $new_y = 0, $options = null) |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * This method preserves the aspect ratio |
| 272 | 272 | * |
| 273 | 273 | * @param int $new_x Size to scale X-dimension to |
| 274 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 274 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 275 | 275 | * @access public |
| 276 | 276 | */ |
| 277 | 277 | public function scaleByX($new_x) |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * @param int $new_x |
| 289 | 289 | * @param int $new_y |
| 290 | 290 | * @param null $options |
| 291 | - * @return mixed |
|
| 291 | + * @return PEAR_Error |
|
| 292 | 292 | */ |
| 293 | 293 | public function scaleByXY($new_x = 0, $new_y = 0, $options = null) |
| 294 | 294 | { |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * This method preserves the aspect ratio |
| 302 | 302 | * |
| 303 | 303 | * @param int $new_y Size to scale Y-dimension to |
| 304 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 304 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 305 | 305 | * @access public |
| 306 | 306 | */ |
| 307 | 307 | public function scaleByY($new_y) |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * This method preserves the aspect ratio |
| 318 | 318 | * |
| 319 | 319 | * @param mixed (number, percentage 10% or 0.1) |
| 320 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 320 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 321 | 321 | * @access public |
| 322 | 322 | * @see scaleByPercentage, scaleByFactor, scaleByLength |
| 323 | 323 | */ |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | * would be resized to 64x48 |
| 339 | 339 | * |
| 340 | 340 | * @param int $size Percentage of original size to scale to |
| 341 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 341 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 342 | 342 | * @access public |
| 343 | 343 | */ |
| 344 | 344 | public function scaleByPercentage($size) |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | * would be resized to 320x240. |
| 353 | 353 | * |
| 354 | 354 | * @param float $size Factor of original size to scale to |
| 355 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 355 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 356 | 356 | * @access public |
| 357 | 357 | */ |
| 358 | 358 | public function scaleByFactor($size) |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | * This method preserves the aspect ratio |
| 370 | 370 | * |
| 371 | 371 | * @param int $size Max dimension in pixels |
| 372 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 372 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 373 | 373 | * @access public |
| 374 | 374 | */ |
| 375 | 375 | public function scaleMaxLength($size) |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | * |
| 391 | 391 | * @param $size |
| 392 | 392 | * |
| 393 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 393 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 394 | 394 | * @access public |
| 395 | 395 | * @see scaleMaxLength() |
| 396 | 396 | */ |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | /** |
| 536 | 536 | * Returns the matching IMAGETYPE_* constant for a given image type |
| 537 | 537 | * |
| 538 | - * @param mixed $type String (GIF, JPG,...) |
|
| 538 | + * @param string $type String (GIF, JPG,...) |
|
| 539 | 539 | * @return mixed string or integer or input on error |
| 540 | 540 | * @access protected |
| 541 | 541 | * @see PHP_Compat::image_type_to_mime_type() |
@@ -587,9 +587,9 @@ discard block |
||
| 587 | 587 | * |
| 588 | 588 | * If either parameter is 0 it will be scaled proportionally |
| 589 | 589 | * |
| 590 | - * @param mixed $new_size (0, number, percentage 10% or 0.1) |
|
| 590 | + * @param integer $new_size (0, number, percentage 10% or 0.1) |
|
| 591 | 591 | * @param int $old_size |
| 592 | - * @return mixed Integer or PEAR_error |
|
| 592 | + * @return integer Integer or PEAR_error |
|
| 593 | 593 | * @access protected |
| 594 | 594 | */ |
| 595 | 595 | public function _parse_size($new_size, $old_size) |
@@ -831,7 +831,7 @@ discard block |
||
| 831 | 831 | * |
| 832 | 832 | * @param string $type Image type (GIF, PNG, JPEG...) |
| 833 | 833 | * @param string $mode 'r' for read, 'w' for write, 'rw' for both |
| 834 | - * @return TRUE if type (and mode) is supported FALSE otherwise |
|
| 834 | + * @return boolean if type (and mode) is supported FALSE otherwise |
|
| 835 | 835 | * @access public |
| 836 | 836 | */ |
| 837 | 837 | public function supportsType($type, $mode = 'rw') |
@@ -874,7 +874,7 @@ discard block |
||
| 874 | 874 | * Converts a color string into an array of RGB values |
| 875 | 875 | * |
| 876 | 876 | * @param string $colorhex A color following the #FFFFFF format |
| 877 | - * @return array 3-element array with 0-255 values |
|
| 877 | + * @return resource 3-element array with 0-255 values |
|
| 878 | 878 | * @access public |
| 879 | 879 | * |
| 880 | 880 | * @see rgb2colorname |
@@ -890,7 +890,7 @@ discard block |
||
| 890 | 890 | } |
| 891 | 891 | |
| 892 | 892 | /** |
| 893 | - * @param $type |
|
| 893 | + * @param string $type |
|
| 894 | 894 | */ |
| 895 | 895 | public function _send_display_headers($type) |
| 896 | 896 | { |
@@ -905,7 +905,7 @@ discard block |
||
| 905 | 905 | * Converts an array of RGB value into a #FFFFFF format color. |
| 906 | 906 | * |
| 907 | 907 | * @param array $color 3-element array with 0-255 values |
| 908 | - * @return mixed A color following the #FFFFFF format or FALSE |
|
| 908 | + * @return false|string A color following the #FFFFFF format or FALSE |
|
| 909 | 909 | * if the array couldn't be converted |
| 910 | 910 | * @access public |
| 911 | 911 | * |
@@ -1080,7 +1080,7 @@ discard block |
||
| 1080 | 1080 | * |
| 1081 | 1081 | * @param string $colorOf one of 'canvasColor', 'pencilColor', 'fontColor' |
| 1082 | 1082 | * @param array $options |
| 1083 | - * @param array $default default value to return if color not found |
|
| 1083 | + * @param integer[] $default default value to return if color not found |
|
| 1084 | 1084 | * @return array an RGB color array |
| 1085 | 1085 | * @access protected |
| 1086 | 1086 | */ |