@@ -198,8 +198,6 @@ |
||
| 198 | 198 | /** |
| 199 | 199 | * Translate the luminance value to a character. |
| 200 | 200 | * |
| 201 | - * @param string $position a value between 0-100 representing the |
|
| 202 | - * luminance. |
|
| 203 | 201 | * |
| 204 | 202 | * @return string with the ascii character. |
| 205 | 203 | */ |
@@ -94,8 +94,6 @@ discard block |
||
| 94 | 94 | /** |
| 95 | 95 | * Set header fields for the request. |
| 96 | 96 | * |
| 97 | - * @param string $field |
|
| 98 | - * @param string $value |
|
| 99 | 97 | * |
| 100 | 98 | * @return $this |
| 101 | 99 | */ |
@@ -227,7 +225,7 @@ discard block |
||
| 227 | 225 | /** |
| 228 | 226 | * Get file modification time of response. |
| 229 | 227 | * |
| 230 | - * @param mixed $default as default value (int seconds) if date is |
|
| 228 | + * @param integer $default as default value (int seconds) if date is |
|
| 231 | 229 | * missing in response header. |
| 232 | 230 | * |
| 233 | 231 | * @return int as timestamp or $default if Date is missing in |
@@ -245,7 +243,7 @@ discard block |
||
| 245 | 243 | /** |
| 246 | 244 | * Get max age of cachable item. |
| 247 | 245 | * |
| 248 | - * @param mixed $default as default value if date is missing in response |
|
| 246 | + * @param integer $default as default value if date is missing in response |
|
| 249 | 247 | * header. |
| 250 | 248 | * |
| 251 | 249 | * @return int as timestamp or false if not available. |
@@ -95,8 +95,8 @@ |
||
| 95 | 95 | /** |
| 96 | 96 | * Set the path to the cache directory. |
| 97 | 97 | * |
| 98 | - * @param boolean $use true to use the cache and false to ignore cache. |
|
| 99 | 98 | * |
| 99 | + * @param string $path |
|
| 100 | 100 | * @return $this |
| 101 | 101 | */ |
| 102 | 102 | public function setCache($path) |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Enable or disable cache. |
| 38 | 38 | * |
| 39 | - * @param boolean $enable set to true to enable, false to disable |
|
| 39 | + * @param boolean $enabled set to true to enable, false to disable |
|
| 40 | 40 | * |
| 41 | 41 | * @return $this |
| 42 | 42 | */ |
@@ -771,7 +771,7 @@ discard block |
||
| 771 | 771 | /** |
| 772 | 772 | * Get filename of target file. |
| 773 | 773 | * |
| 774 | - * @return Boolean|String as filename of target or false if not set. |
|
| 774 | + * @return null|string as filename of target or false if not set. |
|
| 775 | 775 | */ |
| 776 | 776 | public function getTarget() |
| 777 | 777 | { |
@@ -1001,7 +1001,7 @@ discard block |
||
| 1001 | 1001 | /** |
| 1002 | 1002 | * Get mime type for image type. |
| 1003 | 1003 | * |
| 1004 | - * @return $this |
|
| 1004 | + * @return string |
|
| 1005 | 1005 | * @throws Exception |
| 1006 | 1006 | */ |
| 1007 | 1007 | protected function getMimeType() |
@@ -1265,7 +1265,7 @@ discard block |
||
| 1265 | 1265 | /** |
| 1266 | 1266 | * Set extension for filename to save as. |
| 1267 | 1267 | * |
| 1268 | - * @param string $saveas extension to save image as |
|
| 1268 | + * @param string $saveAs extension to save image as |
|
| 1269 | 1269 | * |
| 1270 | 1270 | * @return $this |
| 1271 | 1271 | */ |
@@ -1593,8 +1593,8 @@ discard block |
||
| 1593 | 1593 | /** |
| 1594 | 1594 | * Get the type of PNG image as a verbose string. |
| 1595 | 1595 | * |
| 1596 | - * @param integer $type to use, default is to check the type. |
|
| 1597 | 1596 | * @param string $filename to use instead of default. |
| 1597 | + * @param integer $pngType |
|
| 1598 | 1598 | * |
| 1599 | 1599 | * @return int as the type of the png-image |
| 1600 | 1600 | * |
@@ -1729,6 +1729,12 @@ discard block |
||
| 1729 | 1729 | /** |
| 1730 | 1730 | * Resize and or crop the image. |
| 1731 | 1731 | * |
| 1732 | + * @param resource $dst_image |
|
| 1733 | + * @param resource $src_image |
|
| 1734 | + * @param integer $dst_x |
|
| 1735 | + * @param integer $dst_y |
|
| 1736 | + * @param integer $src_x |
|
| 1737 | + * @param integer $src_y |
|
| 1732 | 1738 | * @return void |
| 1733 | 1739 | */ |
| 1734 | 1740 | public function imageCopyResampled($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) |
@@ -2009,7 +2015,7 @@ discard block |
||
| 2009 | 2015 | * Rotate image using angle. |
| 2010 | 2016 | * |
| 2011 | 2017 | * @param float $angle to rotate image. |
| 2012 | - * @param int $anglebgColor to fill image with if needed. |
|
| 2018 | + * @param string $bgColor to fill image with if needed. |
|
| 2013 | 2019 | * |
| 2014 | 2020 | * @return $this |
| 2015 | 2021 | */ |
@@ -2284,7 +2290,7 @@ discard block |
||
| 2284 | 2290 | * |
| 2285 | 2291 | * @param resource $img the image to work with or null if using $this->image. |
| 2286 | 2292 | * |
| 2287 | - * @return color value or null if no background color is set. |
|
| 2293 | + * @return integer value or null if no background color is set. |
|
| 2288 | 2294 | */ |
| 2289 | 2295 | private function getBackgroundColor($img = null) |
| 2290 | 2296 | { |
@@ -2318,7 +2324,7 @@ discard block |
||
| 2318 | 2324 | * @param int $width of the new image. |
| 2319 | 2325 | * @param int $height of the new image. |
| 2320 | 2326 | * |
| 2321 | - * @return image resource. |
|
| 2327 | + * @return resource resource. |
|
| 2322 | 2328 | */ |
| 2323 | 2329 | private function createImageKeepTransparency($width, $height) |
| 2324 | 2330 | { |
@@ -2823,7 +2829,7 @@ discard block |
||
| 2823 | 2829 | * |
| 2824 | 2830 | * @param string $message to log. |
| 2825 | 2831 | * |
| 2826 | - * @return this |
|
| 2832 | + * @return CImage |
|
| 2827 | 2833 | */ |
| 2828 | 2834 | public function log($message) |
| 2829 | 2835 | { |