@@ -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 |
@@ -251,10 +251,10 @@ discard block |
||
251 | 251 | * |
252 | 252 | * If either is 0 it will keep the original size for that dimension |
253 | 253 | * |
254 | - * @param mixed $new_x (0, number, percentage 10% or 0.1) |
|
255 | - * @param mixed $new_y (0, number, percentage 10% or 0.1) |
|
254 | + * @param integer $new_x (0, number, percentage 10% or 0.1) |
|
255 | + * @param integer $new_y (0, number, percentage 10% or 0.1) |
|
256 | 256 | * @param array $options Options |
257 | - * @return mixed TRUE or PEAR_Error object on error |
|
257 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
258 | 258 | * @access public |
259 | 259 | */ |
260 | 260 | public function resize($new_x = 0, $new_y = 0, $options = null) |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * This method preserves the aspect ratio |
274 | 274 | * |
275 | 275 | * @param int $new_x Size to scale X-dimension to |
276 | - * @return mixed TRUE or PEAR_Error object on error |
|
276 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
277 | 277 | * @access public |
278 | 278 | */ |
279 | 279 | public function scaleByX($new_x) |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * @param int $new_x |
291 | 291 | * @param int $new_y |
292 | 292 | * @param null $options |
293 | - * @return mixed |
|
293 | + * @return PEAR_Error |
|
294 | 294 | */ |
295 | 295 | public function scaleByXY($new_x = 0, $new_y = 0, $options = null) |
296 | 296 | { |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | * This method preserves the aspect ratio |
304 | 304 | * |
305 | 305 | * @param int $new_y Size to scale Y-dimension to |
306 | - * @return mixed TRUE or PEAR_Error object on error |
|
306 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
307 | 307 | * @access public |
308 | 308 | */ |
309 | 309 | public function scaleByY($new_y) |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * This method preserves the aspect ratio |
320 | 320 | * |
321 | 321 | * @param mixed (number, percentage 10% or 0.1) |
322 | - * @return mixed TRUE or PEAR_Error object on error |
|
322 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
323 | 323 | * @access public |
324 | 324 | * @see scaleByPercentage, scaleByFactor, scaleByLength |
325 | 325 | */ |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * would be resized to 64x48 |
341 | 341 | * |
342 | 342 | * @param int $size Percentage of original size to scale to |
343 | - * @return mixed TRUE or PEAR_Error object on error |
|
343 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
344 | 344 | * @access public |
345 | 345 | */ |
346 | 346 | public function scaleByPercentage($size) |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | * would be resized to 320x240. |
355 | 355 | * |
356 | 356 | * @param float $size Factor of original size to scale to |
357 | - * @return mixed TRUE or PEAR_Error object on error |
|
357 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
358 | 358 | * @access public |
359 | 359 | */ |
360 | 360 | public function scaleByFactor($size) |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * This method preserves the aspect ratio |
372 | 372 | * |
373 | 373 | * @param int $size Max dimension in pixels |
374 | - * @return mixed TRUE or PEAR_Error object on error |
|
374 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
375 | 375 | * @access public |
376 | 376 | */ |
377 | 377 | public function scaleMaxLength($size) |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | * |
393 | 393 | * @param $size |
394 | 394 | * |
395 | - * @return mixed TRUE or PEAR_Error object on error |
|
395 | + * @return PEAR_Error TRUE or PEAR_Error object on error |
|
396 | 396 | * @access public |
397 | 397 | * @see scaleMaxLength() |
398 | 398 | */ |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | /** |
538 | 538 | * Returns the matching IMAGETYPE_* constant for a given image type |
539 | 539 | * |
540 | - * @param mixed $type String (GIF, JPG,...) |
|
540 | + * @param string $type String (GIF, JPG,...) |
|
541 | 541 | * @return mixed string or integer or input on error |
542 | 542 | * @access protected |
543 | 543 | * @see PHP_Compat::image_type_to_mime_type() |
@@ -589,9 +589,9 @@ discard block |
||
589 | 589 | * |
590 | 590 | * If either parameter is 0 it will be scaled proportionally |
591 | 591 | * |
592 | - * @param mixed $new_size (0, number, percentage 10% or 0.1) |
|
592 | + * @param integer $new_size (0, number, percentage 10% or 0.1) |
|
593 | 593 | * @param int $old_size |
594 | - * @return mixed Integer or PEAR_error |
|
594 | + * @return integer Integer or PEAR_error |
|
595 | 595 | * @access protected |
596 | 596 | */ |
597 | 597 | public function _parse_size($new_size, $old_size) |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | * |
835 | 835 | * @param string $type Image type (GIF, PNG, JPEG...) |
836 | 836 | * @param string $mode 'r' for read, 'w' for write, 'rw' for both |
837 | - * @return TRUE if type (and mode) is supported FALSE otherwise |
|
837 | + * @return boolean if type (and mode) is supported FALSE otherwise |
|
838 | 838 | * @access public |
839 | 839 | */ |
840 | 840 | public function supportsType($type, $mode = 'rw') |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | * Converts a color string into an array of RGB values |
878 | 878 | * |
879 | 879 | * @param string $colorhex A color following the #FFFFFF format |
880 | - * @return array 3-element array with 0-255 values |
|
880 | + * @return resource 3-element array with 0-255 values |
|
881 | 881 | * @access public |
882 | 882 | * |
883 | 883 | * @see rgb2colorname |
@@ -893,7 +893,7 @@ discard block |
||
893 | 893 | } |
894 | 894 | |
895 | 895 | /** |
896 | - * @param $type |
|
896 | + * @param string $type |
|
897 | 897 | */ |
898 | 898 | public function _send_display_headers($type) |
899 | 899 | { |
@@ -908,7 +908,7 @@ discard block |
||
908 | 908 | * Converts an array of RGB value into a #FFFFFF format color. |
909 | 909 | * |
910 | 910 | * @param array $color 3-element array with 0-255 values |
911 | - * @return mixed A color following the #FFFFFF format or FALSE |
|
911 | + * @return false|string A color following the #FFFFFF format or FALSE |
|
912 | 912 | * if the array couldn't be converted |
913 | 913 | * @access public |
914 | 914 | * |
@@ -1083,7 +1083,7 @@ discard block |
||
1083 | 1083 | * |
1084 | 1084 | * @param string $colorOf one of 'canvasColor', 'pencilColor', 'fontColor' |
1085 | 1085 | * @param array $options |
1086 | - * @param array $default default value to return if color not found |
|
1086 | + * @param integer[] $default default value to return if color not found |
|
1087 | 1087 | * @return array an RGB color array |
1088 | 1088 | * @access protected |
1089 | 1089 | */ |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | /** |
296 | 296 | * Horizontal mirroring |
297 | 297 | * |
298 | - * @return mixed TRUE or PEAR_Error object on error |
|
298 | + * @return boolean TRUE or PEAR_Error object on error |
|
299 | 299 | * @access public |
300 | 300 | * @see flip() |
301 | 301 | **/ |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | /** |
315 | 315 | * Vertical mirroring |
316 | 316 | * |
317 | - * @return TRUE or PEAR Error object on error |
|
317 | + * @return boolean or PEAR Error object on error |
|
318 | 318 | * @access public |
319 | 319 | * @see mirror() |
320 | 320 | **/ |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | * classes. |
225 | 225 | * |
226 | 226 | * @access public |
227 | - * @param mixed $func The function name (or array of class/method) to call |
|
227 | + * @param string[] $func The function name (or array of class/method) to call |
|
228 | 228 | * @param mixed $args The arguments to pass to the function |
229 | 229 | * @return void |
230 | 230 | */ |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, |
452 | 452 | * PEAR_ERROR_CALLBACK, PEAR_ERROR_EXCEPTION. |
453 | 453 | * |
454 | - * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter |
|
454 | + * @param integer|null $options If $mode is PEAR_ERROR_TRIGGER, this parameter |
|
455 | 455 | * specifies the PHP-internal error level (one of |
456 | 456 | * E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). |
457 | 457 | * If $mode is PEAR_ERROR_CALLBACK, this |