@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * @param $db |
| 94 | - * @param $type |
|
| 94 | + * @param string $type |
|
| 95 | 95 | */ |
| 96 | 96 | public function __construct(XoopsDatabase $db, $type) |
| 97 | 97 | { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | /** |
| 176 | - * @param $cat |
|
| 176 | + * @param ExtgalleryCat $cat |
|
| 177 | 177 | * |
| 178 | 178 | * @return int |
| 179 | 179 | */ |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | } |
| 529 | 529 | |
| 530 | 530 | /** |
| 531 | - * @param $photoName |
|
| 531 | + * @param string $photoName |
|
| 532 | 532 | */ |
| 533 | 533 | public function _largePhotoTreatment($photoName) |
| 534 | 534 | { |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | } |
| 570 | 570 | |
| 571 | 571 | /** |
| 572 | - * @param $photoName |
|
| 572 | + * @param string $photoName |
|
| 573 | 573 | * @param null|string $filePath |
| 574 | 574 | * @param null $mediumFilePath |
| 575 | 575 | */ |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | } |
| 654 | 654 | |
| 655 | 655 | /** |
| 656 | - * @param $photoName |
|
| 656 | + * @param string $photoName |
|
| 657 | 657 | * |
| 658 | 658 | * @return array |
| 659 | 659 | */ |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | } |
| 684 | 684 | |
| 685 | 685 | /** |
| 686 | - * @param $photoName |
|
| 686 | + * @param string $photoName |
|
| 687 | 687 | * |
| 688 | 688 | * @return string |
| 689 | 689 | */ |
@@ -732,7 +732,7 @@ discard block |
||
| 732 | 732 | } |
| 733 | 733 | |
| 734 | 734 | /** |
| 735 | - * @param $photoName |
|
| 735 | + * @param string $photoName |
|
| 736 | 736 | * |
| 737 | 737 | * @return float |
| 738 | 738 | */ |
@@ -896,14 +896,14 @@ discard block |
||
| 896 | 896 | } |
| 897 | 897 | |
| 898 | 898 | /** |
| 899 | - * @param $catId |
|
| 899 | + * @param integer $catId |
|
| 900 | 900 | * @param $dirtyPhotoName |
| 901 | 901 | * @param string $photoTitle |
| 902 | 902 | * @param string $photoDesc |
| 903 | 903 | * @param string $photoExtra |
| 904 | 904 | * @param string $photoTag |
| 905 | 905 | * |
| 906 | - * @return mixed |
|
| 906 | + * @return boolean |
|
| 907 | 907 | */ |
| 908 | 908 | public function addLocalPhoto( |
| 909 | 909 | $catId, |
@@ -137,8 +137,8 @@ |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | - * @param $option |
|
| 141 | - * @return bool|mixed |
|
| 140 | + * @param string $option |
|
| 141 | + * @return string |
|
| 142 | 142 | */ |
| 143 | 143 | public static function getModuleOption($option) |
| 144 | 144 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * and if so, the name to use for the setting in the Javascript parameters |
| 54 | 54 | * |
| 55 | 55 | * @param $param |
| 56 | - * @return false or parameter name (parameter supported) |
|
| 56 | + * @return string|false or parameter name (parameter supported) |
|
| 57 | 57 | */ |
| 58 | 58 | protected function get_param($param) |
| 59 | 59 | { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | /** |
| 118 | 118 | * ExtgalleryGroupFormCheckBox constructor. |
| 119 | 119 | * @param $caption |
| 120 | - * @param $name |
|
| 120 | + * @param string $name |
|
| 121 | 121 | * @param $groupId |
| 122 | 122 | * @param null $values |
| 123 | 123 | */ |
@@ -361,6 +361,7 @@ |
||
| 361 | 361 | * @param int $id The ID of the current node to process |
| 362 | 362 | * @param int $level The nlevel to assign to the current node |
| 363 | 363 | * @param int &$n A reference to the running tally for the n-value |
| 364 | + * @param integer $n |
|
| 364 | 365 | */ |
| 365 | 366 | public function _generateTreeData(& $arr, $id, $level, & $n) |
| 366 | 367 | { |
@@ -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 = '') |
@@ -472,7 +472,7 @@ |
||
| 472 | 472 | * @param string $shortOptions the short options definition, e.g. "ab:c::" |
| 473 | 473 | * @param array $longOptions the long options definition, e.g. array("foo", "bar=") |
| 474 | 474 | * @param string $ambiguity directive to handle option names ambiguity |
| 475 | - * @param numeric $version the getopt version: 1 or 2 |
|
| 475 | + * @param integer $version the getopt version: 1 or 2 |
|
| 476 | 476 | * @return array the parsed options, their arguments and parameters |
| 477 | 477 | * @access public |
| 478 | 478 | */ |
@@ -187,10 +187,7 @@ |
||
| 187 | 187 | /** |
| 188 | 188 | * Creates the usage help text section |
| 189 | 189 | * |
| 190 | - * @param array $usages the usage descriptions |
|
| 191 | 190 | * @param string $command the command name |
| 192 | - * @param array $optionsConfig the options descriptions |
|
| 193 | - * @param array $paramsConfig the parameters descriptions |
|
| 194 | 191 | * @return array the usage help text section |
| 195 | 192 | * @access public |
| 196 | 193 | */ |
@@ -290,11 +290,11 @@ discard block |
||
| 290 | 290 | * |
| 291 | 291 | * If either is 0 it will keep the original size for that dimension |
| 292 | 292 | * |
| 293 | - * @param mixed $new_x (0, number, percentage 10% or 0.1) |
|
| 294 | - * @param mixed $new_y (0, number, percentage 10% or 0.1) |
|
| 293 | + * @param integer $new_x (0, number, percentage 10% or 0.1) |
|
| 294 | + * @param integer $new_y (0, number, percentage 10% or 0.1) |
|
| 295 | 295 | * @param array $options Options |
| 296 | 296 | * |
| 297 | - * @return mixed TRUE or PEAR_Error object on error |
|
| 297 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
| 298 | 298 | * @access public |
| 299 | 299 | */ |
| 300 | 300 | function resize($new_x = 0, $new_y = 0, $options = null) |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | /** |
| 654 | 654 | * Returns the matching IMAGETYPE_* constant for a given image type |
| 655 | 655 | * |
| 656 | - * @param mixed $type String (GIF, JPG,...) |
|
| 656 | + * @param string $type String (GIF, JPG,...) |
|
| 657 | 657 | * |
| 658 | 658 | * @return mixed string or integer or input on error |
| 659 | 659 | * @access protected |
@@ -706,10 +706,10 @@ discard block |
||
| 706 | 706 | * |
| 707 | 707 | * If either parameter is 0 it will be scaled proportionally |
| 708 | 708 | * |
| 709 | - * @param mixed $new_size (0, number, percentage 10% or 0.1) |
|
| 709 | + * @param integer $new_size (0, number, percentage 10% or 0.1) |
|
| 710 | 710 | * @param int $old_size |
| 711 | 711 | * |
| 712 | - * @return mixed Integer or PEAR_error |
|
| 712 | + * @return integer Integer or PEAR_error |
|
| 713 | 713 | * @access protected |
| 714 | 714 | */ |
| 715 | 715 | function _parse_size($new_size, $old_size) |
@@ -1031,7 +1031,7 @@ discard block |
||
| 1031 | 1031 | * @param string $type Image type (GIF, PNG, JPEG...) |
| 1032 | 1032 | * @param string $mode 'r' for read, 'w' for write, 'rw' for both |
| 1033 | 1033 | * |
| 1034 | - * @return TRUE if type (and mode) is supported FALSE otherwise |
|
| 1034 | + * @return boolean if type (and mode) is supported FALSE otherwise |
|
| 1035 | 1035 | * @access public |
| 1036 | 1036 | */ |
| 1037 | 1037 | function supportsType($type, $mode = 'rw') |
@@ -1078,7 +1078,7 @@ discard block |
||
| 1078 | 1078 | * |
| 1079 | 1079 | * @param string $colorhex A color following the #FFFFFF format |
| 1080 | 1080 | * |
| 1081 | - * @return array 3-element array with 0-255 values |
|
| 1081 | + * @return resource 3-element array with 0-255 values |
|
| 1082 | 1082 | * @access public |
| 1083 | 1083 | * |
| 1084 | 1084 | * @see rgb2colorname |
@@ -1092,6 +1092,9 @@ discard block |
||
| 1092 | 1092 | return array($r, $g, $b, 'type' => 'RGB'); |
| 1093 | 1093 | } |
| 1094 | 1094 | |
| 1095 | + /** |
|
| 1096 | + * @param string $type |
|
| 1097 | + */ |
|
| 1095 | 1098 | function _send_display_headers($type) |
| 1096 | 1099 | { |
| 1097 | 1100 | // Find the filename of the original image: |
@@ -1106,7 +1109,7 @@ discard block |
||
| 1106 | 1109 | * |
| 1107 | 1110 | * @param array $color 3-element array with 0-255 values |
| 1108 | 1111 | * |
| 1109 | - * @return mixed A color following the #FFFFFF format or FALSE |
|
| 1112 | + * @return false|string A color following the #FFFFFF format or FALSE |
|
| 1110 | 1113 | * if the array couldn't be converted |
| 1111 | 1114 | * @access public |
| 1112 | 1115 | * |
@@ -1288,7 +1291,7 @@ discard block |
||
| 1288 | 1291 | * |
| 1289 | 1292 | * @param string $colorOf one of 'canvasColor', 'pencilColor', 'fontColor' |
| 1290 | 1293 | * @param array $options configuration options |
| 1291 | - * @param array $default default value to return if color not found |
|
| 1294 | + * @param integer[] $default default value to return if color not found |
|
| 1292 | 1295 | * |
| 1293 | 1296 | * @return array an RGB color array |
| 1294 | 1297 | * @access protected |