@@ -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. |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | /** |
747 | 747 | * Get filename of target file. |
748 | 748 | * |
749 | - * @return Boolean|String as filename of target or false if not set. |
|
749 | + * @return null|string as filename of target or false if not set. |
|
750 | 750 | */ |
751 | 751 | public function getTarget() |
752 | 752 | { |
@@ -1178,7 +1178,7 @@ discard block |
||
1178 | 1178 | /** |
1179 | 1179 | * Set extension for filename to save as. |
1180 | 1180 | * |
1181 | - * @param string $saveas extension to save image as |
|
1181 | + * @param string $saveAs extension to save image as |
|
1182 | 1182 | * |
1183 | 1183 | * @return $this |
1184 | 1184 | */ |
@@ -1500,8 +1500,8 @@ discard block |
||
1500 | 1500 | /** |
1501 | 1501 | * Get the type of PNG image as a verbose string. |
1502 | 1502 | * |
1503 | - * @param integer $type to use, default is to check the type. |
|
1504 | 1503 | * @param string $filename to use instead of default. |
1504 | + * @param integer $pngType |
|
1505 | 1505 | * |
1506 | 1506 | * @return int as the type of the png-image |
1507 | 1507 | * |
@@ -1636,6 +1636,12 @@ discard block |
||
1636 | 1636 | /** |
1637 | 1637 | * Resize and or crop the image. |
1638 | 1638 | * |
1639 | + * @param resource $dst_image |
|
1640 | + * @param resource $src_image |
|
1641 | + * @param integer $dst_x |
|
1642 | + * @param integer $dst_y |
|
1643 | + * @param integer $src_x |
|
1644 | + * @param integer $src_y |
|
1639 | 1645 | * @return void |
1640 | 1646 | */ |
1641 | 1647 | public function imageCopyResampled($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) |
@@ -1901,7 +1907,7 @@ discard block |
||
1901 | 1907 | * Rotate image using angle. |
1902 | 1908 | * |
1903 | 1909 | * @param float $angle to rotate image. |
1904 | - * @param int $anglebgColor to fill image with if needed. |
|
1910 | + * @param string $bgColor to fill image with if needed. |
|
1905 | 1911 | * |
1906 | 1912 | * @return $this |
1907 | 1913 | */ |
@@ -2176,7 +2182,7 @@ discard block |
||
2176 | 2182 | * |
2177 | 2183 | * @param resource $img the image to work with or null if using $this->image. |
2178 | 2184 | * |
2179 | - * @return color value or null if no background color is set. |
|
2185 | + * @return integer value or null if no background color is set. |
|
2180 | 2186 | */ |
2181 | 2187 | private function getBackgroundColor($img = null) |
2182 | 2188 | { |
@@ -2210,7 +2216,7 @@ discard block |
||
2210 | 2216 | * @param int $width of the new image. |
2211 | 2217 | * @param int $height of the new image. |
2212 | 2218 | * |
2213 | - * @return image resource. |
|
2219 | + * @return resource resource. |
|
2214 | 2220 | */ |
2215 | 2221 | private function createImageKeepTransparency($width, $height) |
2216 | 2222 | { |
@@ -2622,7 +2628,7 @@ discard block |
||
2622 | 2628 | * |
2623 | 2629 | * @param string $message to log. |
2624 | 2630 | * |
2625 | - * @return this |
|
2631 | + * @return CImage |
|
2626 | 2632 | */ |
2627 | 2633 | public function log($message) |
2628 | 2634 | { |
@@ -721,7 +721,7 @@ discard block |
||
721 | 721 | /** |
722 | 722 | * Get target width. |
723 | 723 | * |
724 | - * @return integer as target width |
|
724 | + * @return double|null as target width |
|
725 | 725 | */ |
726 | 726 | public function getTargetwidth() |
727 | 727 | { |
@@ -733,7 +733,7 @@ discard block |
||
733 | 733 | /** |
734 | 734 | * Get target height. |
735 | 735 | * |
736 | - * @return integer as target height |
|
736 | + * @return double|null as target height |
|
737 | 737 | */ |
738 | 738 | public function getTargetheight() |
739 | 739 | { |
@@ -745,7 +745,7 @@ discard block |
||
745 | 745 | /** |
746 | 746 | * Get crop position x. |
747 | 747 | * |
748 | - * @return integer |
|
748 | + * @return double |
|
749 | 749 | */ |
750 | 750 | public function getCropX() |
751 | 751 | { |
@@ -765,7 +765,7 @@ discard block |
||
765 | 765 | /** |
766 | 766 | * Get crop position y. |
767 | 767 | * |
768 | - * @return integer |
|
768 | + * @return double |
|
769 | 769 | */ |
770 | 770 | public function getCropY() |
771 | 771 | { |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | /** |
786 | 786 | * Get crop width. |
787 | 787 | * |
788 | - * @return integer |
|
788 | + * @return double |
|
789 | 789 | */ |
790 | 790 | public function getCropWidth() |
791 | 791 | { |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | /** |
806 | 806 | * Get crop height. |
807 | 807 | * |
808 | - * @return integer |
|
808 | + * @return double |
|
809 | 809 | */ |
810 | 810 | public function getCropHeight() |
811 | 811 | { |
@@ -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) |