@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * |
202 | 202 | * PRIVATE FUNCTIONS |
203 | - * @param $string |
|
203 | + * @param string $string |
|
204 | 204 | * @return string |
205 | 205 | */ |
206 | 206 | |
@@ -280,6 +280,9 @@ discard block |
||
280 | 280 | } |
281 | 281 | } |
282 | 282 | |
283 | + /** |
|
284 | + * @param string $hex |
|
285 | + */ |
|
283 | 286 | public function _hexReverse($hex) |
284 | 287 | { |
285 | 288 | $output = ''; |
@@ -233,6 +233,9 @@ discard block |
||
233 | 233 | Resize |
234 | 234 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
235 | 235 | |
236 | + /** |
|
237 | + * @param string $newHeight |
|
238 | + */ |
|
236 | 239 | public function resizeImage($newWidth, $newHeight, $option = 0, $sharpen = false, $autoRotate = true) |
237 | 240 | # Author: Jarrod Oberto |
238 | 241 | # Date: 27-02-08 |
@@ -378,6 +381,9 @@ discard block |
||
378 | 381 | |
379 | 382 | ## -------------------------------------------------------- |
380 | 383 | |
384 | + /** |
|
385 | + * @param resource $im |
|
386 | + */ |
|
381 | 387 | private function keepTransparancy($width, $height, $im) |
382 | 388 | # Author: Jarrod Oberto |
383 | 389 | # Date: 08-04-11 |
@@ -793,6 +799,9 @@ discard block |
||
793 | 799 | |
794 | 800 | ## -------------------------------------------------------- |
795 | 801 | |
802 | + /** |
|
803 | + * @param integer $orig |
|
804 | + */ |
|
796 | 805 | private function findSharp($orig, $final) |
797 | 806 | # Author: Ryan Rud (http://adryrun.com) |
798 | 807 | # Purpose: Find optimal sharpness |
@@ -1068,8 +1077,8 @@ discard block |
||
1068 | 1077 | |
1069 | 1078 | /** Apply a PNG overlay |
1070 | 1079 | * @param $im |
1071 | - * @param $type |
|
1072 | - * @param $amount |
|
1080 | + * @param string $type |
|
1081 | + * @param integer $amount |
|
1073 | 1082 | * @return mixed |
1074 | 1083 | */ |
1075 | 1084 | private function gd_apply_overlay($im, $type, $amount) |
@@ -1595,6 +1604,11 @@ discard block |
||
1595 | 1604 | |
1596 | 1605 | ## -------------------------------------------------------- |
1597 | 1606 | |
1607 | + /** |
|
1608 | + * @param string $side |
|
1609 | + * @param integer $thickness |
|
1610 | + * @param integer $padding |
|
1611 | + */ |
|
1598 | 1612 | private function calculateCaptionBoxPosition($side, $thickness, $padding) |
1599 | 1613 | { |
1600 | 1614 | $positionArray = []; |
@@ -1998,6 +2012,9 @@ discard block |
||
1998 | 2012 | |
1999 | 2013 | ## -------------------------------------------------------- |
2000 | 2014 | |
2015 | + /** |
|
2016 | + * @param integer $dat |
|
2017 | + */ |
|
2001 | 2018 | private function writeIPTC($dat, $value) |
2002 | 2019 | { |
2003 | 2020 | # LIMIT TO JPG |
@@ -2009,6 +2026,9 @@ discard block |
||
2009 | 2026 | |
2010 | 2027 | ## -------------------------------------------------------- |
2011 | 2028 | |
2029 | + /** |
|
2030 | + * @param integer $rec |
|
2031 | + */ |
|
2012 | 2032 | private function iptc_maketag($rec, $dat, $val) |
2013 | 2033 | # Author: Thies C. Arntzen |
2014 | 2034 | # Purpose: Function to format the new IPTC text |
@@ -2111,6 +2131,10 @@ discard block |
||
2111 | 2131 | |
2112 | 2132 | ## -------------------------------------------------------- |
2113 | 2133 | |
2134 | + /** |
|
2135 | + * @param integer $fontSize |
|
2136 | + * @param integer $angle |
|
2137 | + */ |
|
2114 | 2138 | private function getTextSize($fontSize, $angle, $font, $text) |
2115 | 2139 | { |
2116 | 2140 | // *** Define box (so we can get the width) |
@@ -2183,6 +2207,9 @@ discard block |
||
2183 | 2207 | |
2184 | 2208 | ## -------------------------------------------------------- |
2185 | 2209 | |
2210 | + /** |
|
2211 | + * @param integer $padding |
|
2212 | + */ |
|
2186 | 2213 | private function calculatePosition($pos, $padding, $assetWidth, $assetHeight, $upperLeft = true) |
2187 | 2214 | # |
2188 | 2215 | # Author: Jarrod Oberto |
@@ -2799,6 +2826,9 @@ discard block |
||
2799 | 2826 | |
2800 | 2827 | ## -------------------------------------------------------- |
2801 | 2828 | |
2829 | + /** |
|
2830 | + * @param boolean $isEnabled |
|
2831 | + */ |
|
2802 | 2832 | private function checkInterlaceImage($isEnabled) |
2803 | 2833 | # jpg will use progressive (they don't use interace) |
2804 | 2834 | { |
@@ -2940,6 +2970,10 @@ discard block |
||
2940 | 2970 | |
2941 | 2971 | ## -------------------------------------------------------- |
2942 | 2972 | |
2973 | + /** |
|
2974 | + * @param integer $value |
|
2975 | + * @param integer $originalMax |
|
2976 | + */ |
|
2943 | 2977 | private function invertTransparency($value, $originalMax, $invert = true) |
2944 | 2978 | # Purpose: This does two things: |
2945 | 2979 | # 1) Convert the range from 0-127 to 0-100 |
@@ -2993,6 +3027,9 @@ discard block |
||
2993 | 3027 | |
2994 | 3028 | ## -------------------------------------------------------- |
2995 | 3029 | |
3030 | + /** |
|
3031 | + * @param string $needle |
|
3032 | + */ |
|
2996 | 3033 | public function checkStringStartsWith($needle, $haystack) |
2997 | 3034 | # Check if a string starts with a specific pattern |
2998 | 3035 | { |
@@ -3003,6 +3040,9 @@ discard block |
||
3003 | 3040 | BMP SUPPORT (SAVING) - James Heinrich |
3004 | 3041 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
3005 | 3042 | |
3043 | + /** |
|
3044 | + * @param resource $gd_image |
|
3045 | + */ |
|
3006 | 3046 | private function GD2BMPstring(&$gd_image) |
3007 | 3047 | # Author: James Heinrich |
3008 | 3048 | # Purpose: Save file as type bmp |
@@ -3056,6 +3096,10 @@ discard block |
||
3056 | 3096 | |
3057 | 3097 | ## -------------------------------------------------------- |
3058 | 3098 | |
3099 | + /** |
|
3100 | + * @param integer $x |
|
3101 | + * @param integer $y |
|
3102 | + */ |
|
3059 | 3103 | private function GetPixelColor(&$img, $x, $y) |
3060 | 3104 | # Author: James Heinrich |
3061 | 3105 | # Purpose: |
@@ -3073,6 +3117,9 @@ discard block |
||
3073 | 3117 | |
3074 | 3118 | ## -------------------------------------------------------- |
3075 | 3119 | |
3120 | + /** |
|
3121 | + * @param integer $number |
|
3122 | + */ |
|
3076 | 3123 | private function LittleEndian2String($number, $minbytes = 1) |
3077 | 3124 | # Author: James Heinrich |
3078 | 3125 | # Purpose: BMP SUPPORT (SAVING) |
@@ -87,6 +87,9 @@ discard block |
||
87 | 87 | return false; |
88 | 88 | } |
89 | 89 | |
90 | +/** |
|
91 | + * @param string $imgthumb |
|
92 | + */ |
|
90 | 93 | function create_img($imgfile, $imgthumb, $newwidth, $newheight = '') |
91 | 94 | { |
92 | 95 | if (image_check_memory_usage($imgfile, $newwidth, $newheight)) { |
@@ -220,6 +223,9 @@ discard block |
||
220 | 223 | } |
221 | 224 | } |
222 | 225 | |
226 | +/** |
|
227 | + * @param string $str |
|
228 | + */ |
|
223 | 229 | function fix_strtolower($str) |
224 | 230 | { |
225 | 231 | if (function_exists('mb_strtoupper')) { |
@@ -265,6 +271,9 @@ discard block |
||
265 | 271 | return false; |
266 | 272 | } |
267 | 273 | |
274 | +/** |
|
275 | + * @param string $max_hoogte |
|
276 | + */ |
|
268 | 277 | function image_check_memory_usage($img, $max_breedte, $max_hoogte) |
269 | 278 | { |
270 | 279 | if (file_exists($img)) { |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | |
244 | 244 | /** |
245 | 245 | * Log a message on the current output, as a HTML comment. |
246 | - * @param $function |
|
246 | + * @param string $function |
|
247 | 247 | * @param $msg |
248 | 248 | * @param bool $htmlComment |
249 | 249 | */ |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | /** |
261 | 261 | * Log a message to the PHP log. |
262 | 262 | * Declared "protected" so it may be Extended if you require customised logging (e.g. particular log file location). |
263 | - * @param $function |
|
263 | + * @param string $function |
|
264 | 264 | * @param $msg |
265 | 265 | */ |
266 | 266 | protected function logPHPDebug($function, $msg) |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * the document.embeds[] array while in others, it is accessible via the |
316 | 316 | * document.applets[] array. |
317 | 317 | * |
318 | - * @return A string, containing the necessary wrapper function (named JUploadSetProperty) |
|
318 | + * @return string string, containing the necessary wrapper function (named JUploadSetProperty) |
|
319 | 319 | */ |
320 | 320 | private function str_jsinit() |
321 | 321 | { |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | /** |
337 | 337 | * Build a string, containing the applet tag with all parameters. |
338 | 338 | * |
339 | - * @return A string, containing the applet tag |
|
339 | + * @return string string, containing the applet tag |
|
340 | 340 | */ |
341 | 341 | private function str_applet() |
342 | 342 | { |
@@ -406,6 +406,9 @@ discard block |
||
406 | 406 | return; |
407 | 407 | } |
408 | 408 | |
409 | + /** |
|
410 | + * @param string $path |
|
411 | + */ |
|
409 | 412 | private function mkdirp($path) |
410 | 413 | { |
411 | 414 | // create subdir (hierary) below destdir; |
@@ -119,7 +119,7 @@ |
||
119 | 119 | /** |
120 | 120 | * prepare HTML for output |
121 | 121 | * |
122 | - * @return sting HTML |
|
122 | + * @return string HTML |
|
123 | 123 | */ |
124 | 124 | |
125 | 125 | public function render() |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * Creates one instance of the tinyMCE object |
47 | 47 | * |
48 | 48 | * @param array $config The configuration |
49 | - * @return object $instance The instance of tinyMCE object |
|
49 | + * @return TinyMCE $instance The instance of tinyMCE object |
|
50 | 50 | **/ |
51 | 51 | |
52 | 52 | public function &instance($config) |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Initializes the tinyMCE |
73 | - * @return true |
|
73 | + * @return boolean |
|
74 | 74 | **/ |
75 | 75 | |
76 | 76 | public function init() |