@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | * |
| 179 | 179 | * @param int angle rotation angle |
| 180 | 180 | * @param array options no option allowed |
| 181 | - * @return mixed TRUE or a PEAR error object on error |
|
| 181 | + * @return boolean TRUE or a PEAR error object on error |
|
| 182 | 182 | */ |
| 183 | 183 | function rotate($angle, $options = null) |
| 184 | 184 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param int x X-coordinate to crop at |
| 202 | 202 | * @param int y Y-coordinate to crop at |
| 203 | 203 | * |
| 204 | - * @return mixed TRUE or a PEAR error object on error |
|
| 204 | + * @return boolean TRUE or a PEAR error object on error |
|
| 205 | 205 | */ |
| 206 | 206 | function crop($width, $height, $x = 0, $y = 0) { |
| 207 | 207 | // Do we want a safety check - i.e. if $width+$x > $this->img_x then we |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | * before drawing the text |
| 234 | 234 | * ) |
| 235 | 235 | * |
| 236 | - * @return mixed TRUE or a PEAR error object on error |
|
| 236 | + * @return boolean TRUE or a PEAR error object on error |
|
| 237 | 237 | * @see PEAR::isError() |
| 238 | 238 | */ |
| 239 | 239 | function addText($params) |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | * |
| 263 | 263 | * @access public |
| 264 | 264 | * @param float $outputgamma |
| 265 | - * @return mixed TRUE or a PEAR error object on error |
|
| 265 | + * @return boolean TRUE or a PEAR error object on error |
|
| 266 | 266 | */ |
| 267 | 267 | function gamma($outputgamma = 1.0) { |
| 268 | 268 | if ($outputgamme != 1.0) { |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | * Convert the image to greyscale |
| 276 | 276 | * |
| 277 | 277 | * @access public |
| 278 | - * @return mixed TRUE or a PEAR error object on error |
|
| 278 | + * @return boolean TRUE or a PEAR error object on error |
|
| 279 | 279 | */ |
| 280 | 280 | function greyscale() { |
| 281 | 281 | $this->command['type'] = '-type Grayscale'; |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | * Horizontal mirroring |
| 287 | 287 | * |
| 288 | 288 | * @access public |
| 289 | - * @return TRUE or PEAR Error object on error |
|
| 289 | + * @return boolean or PEAR Error object on error |
|
| 290 | 290 | */ |
| 291 | 291 | function mirror() { |
| 292 | 292 | // We can only apply "flop" once |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * Vertical mirroring |
| 303 | 303 | * |
| 304 | 304 | * @access public |
| 305 | - * @return TRUE or PEAR Error object on error |
|
| 305 | + * @return boolean or PEAR Error object on error |
|
| 306 | 306 | */ |
| 307 | 307 | function flip() { |
| 308 | 308 | // We can only apply "flip" once |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | * @param string type (JPEG,PNG...); |
| 367 | 367 | * @param int quality 75 |
| 368 | 368 | * |
| 369 | - * @return mixed TRUE or a PEAR error object on error |
|
| 369 | + * @return boolean TRUE or a PEAR error object on error |
|
| 370 | 370 | */ |
| 371 | 371 | function display($type = '', $quality = null) |
| 372 | 372 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * |
| 97 | 97 | * @param string filename |
| 98 | 98 | * |
| 99 | - * @return mixed TRUE or a PEAR error object on error |
|
| 99 | + * @return boolean TRUE or a PEAR error object on error |
|
| 100 | 100 | * @see PEAR::isError() |
| 101 | 101 | */ |
| 102 | 102 | function load($image) |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * 'angle' A imlib direction constant |
| 131 | 131 | * ) |
| 132 | 132 | * |
| 133 | - * @return TRUE or PEAR Error object on error |
|
| 133 | + * @return boolean or PEAR Error object on error |
|
| 134 | 134 | * @see PEAR::isError() |
| 135 | 135 | */ |
| 136 | 136 | function addText($params) |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @param int $angle Rotation angle |
| 171 | 171 | * |
| 172 | - * @return TRUE or PEAR Error object on error |
|
| 172 | + * @return boolean or PEAR Error object on error |
|
| 173 | 173 | */ |
| 174 | 174 | function rotate($angle) |
| 175 | 175 | { |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | * Gets the image details |
| 344 | 344 | * |
| 345 | 345 | * @access private |
| 346 | - * @return TRUE on success or PEAR Error object on error |
|
| 346 | + * @return boolean on success or PEAR Error object on error |
|
| 347 | 347 | */ |
| 348 | 348 | function _get_image_details() |
| 349 | 349 | { |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | /** |
| 360 | 360 | * Horizontal mirroring |
| 361 | 361 | * |
| 362 | - * @return TRUE on success, PEAR Error object on error |
|
| 362 | + * @return boolean on success, PEAR Error object on error |
|
| 363 | 363 | */ |
| 364 | 364 | function mirror() |
| 365 | 365 | { |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | /** |
| 371 | 371 | * Vertical mirroring |
| 372 | 372 | * |
| 373 | - * @return TRUE on success, PEAR Error object on error |
|
| 373 | + * @return boolean on success, PEAR Error object on error |
|
| 374 | 374 | */ |
| 375 | 375 | function flip() |
| 376 | 376 | { |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | /** |
| 397 | 397 | * Image_Transform_Driver_NetPBM::_postProcess() |
| 398 | 398 | * |
| 399 | - * @param $type |
|
| 399 | + * @param string $type |
|
| 400 | 400 | * @param $quality |
| 401 | 401 | * @return string A chain of shell command |
| 402 | 402 | * @link http://netpbm.sourceforge.net/doc/directory.html |
@@ -570,7 +570,7 @@ discard block |
||
| 570 | 570 | * |
| 571 | 571 | * @param string $type (jpeg,png...); |
| 572 | 572 | * @param int $quality 75 |
| 573 | - * @return TRUE or PEAR Error object on error |
|
| 573 | + * @return boolean or PEAR Error object on error |
|
| 574 | 574 | */ |
| 575 | 575 | function display($type = null, $quality = null) |
| 576 | 576 | { |
@@ -266,7 +266,7 @@ |
||
| 266 | 266 | * Use this function to register a shutdown method for static |
| 267 | 267 | * classes. |
| 268 | 268 | * |
| 269 | - * @param mixed $func The function name (or array of class/method) to call |
|
| 269 | + * @param string[] $func The function name (or array of class/method) to call |
|
| 270 | 270 | * @param mixed $args The arguments to pass to the function |
| 271 | 271 | * |
| 272 | 272 | * @return void |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * Supports multiple files and dirs and also recursive deletes |
| 204 | 204 | * |
| 205 | 205 | * @param string $args the arguments for rm |
| 206 | - * @return mixed PEAR_Error or true for success |
|
| 206 | + * @return boolean PEAR_Error or true for success |
|
| 207 | 207 | * @static |
| 208 | 208 | * @access public |
| 209 | 209 | */ |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | * c:\windows\temp or /tmp will be used. |
| 390 | 390 | * |
| 391 | 391 | * @param string $args The arguments |
| 392 | - * @return mixed the full path of the created (file|dir) or false |
|
| 392 | + * @return boolean|string the full path of the created (file|dir) or false |
|
| 393 | 393 | * @see System::tmpdir() |
| 394 | 394 | */ |
| 395 | 395 | public static function mktemp($args = null) |
@@ -489,7 +489,7 @@ discard block |
||
| 489 | 489 | * @param string $program The command to search for |
| 490 | 490 | * @param mixed $fallback Value to return if $program is not found |
| 491 | 491 | * |
| 492 | - * @return mixed A string with the full path or false if not found |
|
| 492 | + * @return string A string with the full path or false if not found |
|
| 493 | 493 | * @author Stig Bakken <[email protected]> |
| 494 | 494 | */ |
| 495 | 495 | public static function which($program, $fallback = false) |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) |
| 14 | 14 | * @author Zoullou (http://www.zoullou.net) |
| 15 | 15 | * @package ExtGallery |
| 16 | - * @param $option |
|
| 16 | + * @param string $option |
|
| 17 | 17 | * @return bool |
| 18 | 18 | */ |
| 19 | 19 | |