@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * Mailhide related code |
| 223 | 223 | * |
| 224 | 224 | * @param $val |
| 225 | - * @param $ky |
|
| 225 | + * @param string $ky |
|
| 226 | 226 | * @return string |
| 227 | 227 | */ |
| 228 | 228 | function _recaptcha_aes_encrypt($val, $ky) |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
| 240 | - * @param $x |
|
| 240 | + * @param null|string $x |
|
| 241 | 241 | * @return string |
| 242 | 242 | */ |
| 243 | 243 | function _recaptcha_mailhide_urlbase64($x) |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * the email is then displayed as [email protected] |
| 272 | 272 | * |
| 273 | 273 | * @param $email |
| 274 | - * @return array |
|
| 274 | + * @return string[] |
|
| 275 | 275 | */ |
| 276 | 276 | function _recaptcha_mailhide_email_parts($email) |
| 277 | 277 | { |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | * @param string $mode mode of file access |
| 160 | 160 | * @param boolean $force If true then the file will be re-opened even if its already opened, otherwise it won't |
| 161 | 161 | * |
| 162 | - * @return mixed string on success, false on failure |
|
| 162 | + * @return false|string string on success, false on failure |
|
| 163 | 163 | */ |
| 164 | 164 | public function read($bytes = false, $mode = 'rb', $force = false) |
| 165 | 165 | { |
@@ -619,6 +619,10 @@ |
||
| 619 | 619 | // eof |
| 620 | 620 | } |
| 621 | 621 | |
| 622 | +/** |
|
| 623 | + * @param string $e |
|
| 624 | + * @param string $a |
|
| 625 | + */ |
|
| 622 | 626 | public static function hl_tag2(&$e, &$a, $t=1){ |
| 623 | 627 | // transform tag |
| 624 | 628 | if($e == 'center'){$e = 'div'; return 'text-align: center;';} |
@@ -616,6 +616,9 @@ discard block |
||
| 616 | 616 | Output: |
| 617 | 617 | \*======================================================================*/ |
| 618 | 618 | |
| 619 | + /** |
|
| 620 | + * @param string $http_method |
|
| 621 | + */ |
|
| 619 | 622 | function _httprequest($url, $fp, $URI, $http_method, $content_type = "", $body = "") |
| 620 | 623 | { |
| 621 | 624 | $cookie_headers = ''; |
@@ -923,6 +926,10 @@ discard block |
||
| 923 | 926 | Output: post body |
| 924 | 927 | \*======================================================================*/ |
| 925 | 928 | |
| 929 | + /** |
|
| 930 | + * @param string $formvars |
|
| 931 | + * @param string $formfiles |
|
| 932 | + */ |
|
| 926 | 933 | function _prepare_post_body($formvars, $formfiles) |
| 927 | 934 | { |
| 928 | 935 | settype($formvars, "array"); |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | private $_items = array(); |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $input |
|
| 46 | + */ |
|
| 44 | 47 | public function __construct(&$input) |
| 45 | 48 | { |
| 46 | 49 | parent::__construct($input); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * |
| 113 | 113 | * @param string $name name of an attribute |
| 114 | 114 | * |
| 115 | - * @return mixed value of the attribute, or null if not set. |
|
| 115 | + * @return string|null value of the attribute, or null if not set. |
|
| 116 | 116 | */ |
| 117 | 117 | final public static function get($name) |
| 118 | 118 | { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * Get a copy of all base configurations |
| 140 | 140 | * |
| 141 | - * @return array of of all attributes |
|
| 141 | + * @return string[] of of all attributes |
|
| 142 | 142 | */ |
| 143 | 143 | final public function getAll() |
| 144 | 144 | { |
@@ -268,6 +268,9 @@ discard block |
||
| 268 | 268 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
| 269 | 269 | |
| 270 | 270 | |
| 271 | + /** |
|
| 272 | + * @param string $newHeight |
|
| 273 | + */ |
|
| 271 | 274 | public function resizeImage($newWidth, $newHeight, $option = 0, $sharpen = false, $autoRotate = false) |
| 272 | 275 | # Author: Jarrod Oberto |
| 273 | 276 | # Date: 27-02-08 |
@@ -400,6 +403,9 @@ discard block |
||
| 400 | 403 | |
| 401 | 404 | ## -------------------------------------------------------- |
| 402 | 405 | |
| 406 | + /** |
|
| 407 | + * @param resource $im |
|
| 408 | + */ |
|
| 403 | 409 | private function keepTransparancy($width, $height, $im) |
| 404 | 410 | # Author: Jarrod Oberto |
| 405 | 411 | # Date: 08-04-11 |
@@ -835,6 +841,9 @@ discard block |
||
| 835 | 841 | |
| 836 | 842 | ## -------------------------------------------------------- |
| 837 | 843 | |
| 844 | + /** |
|
| 845 | + * @param integer $orig |
|
| 846 | + */ |
|
| 838 | 847 | private function findSharp($orig, $final) |
| 839 | 848 | # Author: Ryan Rud (http://adryrun.com) |
| 840 | 849 | # Purpose: Find optimal sharpness |
@@ -1676,6 +1685,11 @@ discard block |
||
| 1676 | 1685 | |
| 1677 | 1686 | ## -------------------------------------------------------- |
| 1678 | 1687 | |
| 1688 | + /** |
|
| 1689 | + * @param string $side |
|
| 1690 | + * @param integer $thickness |
|
| 1691 | + * @param integer $padding |
|
| 1692 | + */ |
|
| 1679 | 1693 | private function calculateCaptionBoxPosition($side, $thickness, $padding) |
| 1680 | 1694 | { |
| 1681 | 1695 | $positionArray = array(); |
@@ -2023,6 +2037,9 @@ discard block |
||
| 2023 | 2037 | |
| 2024 | 2038 | ## -------------------------------------------------------- |
| 2025 | 2039 | |
| 2040 | + /** |
|
| 2041 | + * @param integer $dat |
|
| 2042 | + */ |
|
| 2026 | 2043 | private function writeIPTC($dat, $value) |
| 2027 | 2044 | { |
| 2028 | 2045 | |
@@ -2035,6 +2052,9 @@ discard block |
||
| 2035 | 2052 | |
| 2036 | 2053 | ## -------------------------------------------------------- |
| 2037 | 2054 | |
| 2055 | + /** |
|
| 2056 | + * @param integer $rec |
|
| 2057 | + */ |
|
| 2038 | 2058 | private function iptc_maketag($rec,$dat,$val) |
| 2039 | 2059 | # Author: Thies C. Arntzen |
| 2040 | 2060 | # Purpose: Function to format the new IPTC text |
@@ -2144,6 +2164,10 @@ discard block |
||
| 2144 | 2164 | |
| 2145 | 2165 | ## -------------------------------------------------------- |
| 2146 | 2166 | |
| 2167 | + /** |
|
| 2168 | + * @param integer $fontSize |
|
| 2169 | + * @param integer $angle |
|
| 2170 | + */ |
|
| 2147 | 2171 | private function getTextSize($fontSize, $angle, $font, $text) |
| 2148 | 2172 | { |
| 2149 | 2173 | |
@@ -2218,6 +2242,9 @@ discard block |
||
| 2218 | 2242 | |
| 2219 | 2243 | ## -------------------------------------------------------- |
| 2220 | 2244 | |
| 2245 | + /** |
|
| 2246 | + * @param integer $padding |
|
| 2247 | + */ |
|
| 2221 | 2248 | private function calculatePosition($pos, $padding, $assetWidth, $assetHeight, $upperLeft = true) |
| 2222 | 2249 | # |
| 2223 | 2250 | # Author: Jarrod Oberto |
@@ -2786,6 +2813,9 @@ discard block |
||
| 2786 | 2813 | |
| 2787 | 2814 | ## -------------------------------------------------------- |
| 2788 | 2815 | |
| 2816 | + /** |
|
| 2817 | + * @param boolean $isEnabled |
|
| 2818 | + */ |
|
| 2789 | 2819 | private function checkInterlaceImage($isEnabled) |
| 2790 | 2820 | # jpg will use progressive (they don't use interace) |
| 2791 | 2821 | { |
@@ -2937,6 +2967,10 @@ discard block |
||
| 2937 | 2967 | |
| 2938 | 2968 | ## -------------------------------------------------------- |
| 2939 | 2969 | |
| 2970 | + /** |
|
| 2971 | + * @param integer $value |
|
| 2972 | + * @param integer $originalMax |
|
| 2973 | + */ |
|
| 2940 | 2974 | private function invertTransparency($value, $originalMax, $invert=true) |
| 2941 | 2975 | # Purpose: This does two things: |
| 2942 | 2976 | # 1) Convert the range from 0-127 to 0-100 |
@@ -2962,6 +2996,9 @@ discard block |
||
| 2962 | 2996 | |
| 2963 | 2997 | ## -------------------------------------------------------- |
| 2964 | 2998 | |
| 2999 | + /** |
|
| 3000 | + * @param resource $src |
|
| 3001 | + */ |
|
| 2965 | 3002 | private function transparentImage($src) |
| 2966 | 3003 | { |
| 2967 | 3004 | // *** making images with white bg transparent |
@@ -2990,6 +3027,9 @@ discard block |
||
| 2990 | 3027 | |
| 2991 | 3028 | ## -------------------------------------------------------- |
| 2992 | 3029 | |
| 3030 | + /** |
|
| 3031 | + * @param string $needle |
|
| 3032 | + */ |
|
| 2993 | 3033 | function checkStringStartsWith($needle, $haystack) |
| 2994 | 3034 | # Check if a string starts with a specific pattern |
| 2995 | 3035 | { |
@@ -3001,6 +3041,9 @@ discard block |
||
| 3001 | 3041 | BMP SUPPORT (SAVING) - James Heinrich |
| 3002 | 3042 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*/ |
| 3003 | 3043 | |
| 3044 | + /** |
|
| 3045 | + * @param resource $gd_image |
|
| 3046 | + */ |
|
| 3004 | 3047 | private function GD2BMPstring(&$gd_image) |
| 3005 | 3048 | # Author: James Heinrich |
| 3006 | 3049 | # Purpose: Save file as type bmp |
@@ -3054,6 +3097,10 @@ discard block |
||
| 3054 | 3097 | |
| 3055 | 3098 | ## -------------------------------------------------------- |
| 3056 | 3099 | |
| 3100 | + /** |
|
| 3101 | + * @param integer $x |
|
| 3102 | + * @param integer $y |
|
| 3103 | + */ |
|
| 3057 | 3104 | private function GetPixelColor(&$img, $x, $y) |
| 3058 | 3105 | # Author: James Heinrich |
| 3059 | 3106 | # Purpose: |
@@ -3071,6 +3118,9 @@ discard block |
||
| 3071 | 3118 | |
| 3072 | 3119 | ## -------------------------------------------------------- |
| 3073 | 3120 | |
| 3121 | + /** |
|
| 3122 | + * @param integer $number |
|
| 3123 | + */ |
|
| 3074 | 3124 | private function LittleEndian2String($number, $minbytes=1) |
| 3075 | 3125 | # Author: James Heinrich |
| 3076 | 3126 | # Purpose: BMP SUPPORT (SAVING) |
@@ -51,6 +51,9 @@ discard block |
||
| 51 | 51 | return false; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | +/** |
|
| 55 | + * @param string $imgthumb |
|
| 56 | + */ |
|
| 54 | 57 | function create_img($imgfile, $imgthumb, $newwidth, $newheight="") { |
| 55 | 58 | if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ |
| 56 | 59 | require_once('php_image_magician.php'); |
@@ -239,6 +242,9 @@ discard block |
||
| 239 | 242 | } |
| 240 | 243 | |
| 241 | 244 | |
| 245 | +/** |
|
| 246 | + * @param string $max_hoogte |
|
| 247 | + */ |
|
| 242 | 248 | function image_check_memory_usage($img, $max_breedte, $max_hoogte){ |
| 243 | 249 | if(file_exists($img)){ |
| 244 | 250 | $K64 = 65536; // number of bytes in 64K |
@@ -197,6 +197,7 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | 199 | * Log a message on the current output, as a HTML comment. |
| 200 | + * @param string $function |
|
| 200 | 201 | */ |
| 201 | 202 | protected function logDebug($function, $msg, $htmlComment=true) { |
| 202 | 203 | $output = "[DEBUG] [$function] $msg"; |
@@ -210,6 +211,7 @@ discard block |
||
| 210 | 211 | /** |
| 211 | 212 | * Log a message to the PHP log. |
| 212 | 213 | * Declared "protected" so it may be Extended if you require customised logging (e.g. particular log file location). |
| 214 | + * @param string $function |
|
| 213 | 215 | */ |
| 214 | 216 | protected function logPHPDebug($function, $msg) { |
| 215 | 217 | if ($this->classparams['debug_php'] === true) { |
@@ -258,7 +260,7 @@ discard block |
||
| 258 | 260 | * the document.embeds[] array while in others, it is accessible via the |
| 259 | 261 | * document.applets[] array. |
| 260 | 262 | * |
| 261 | - * @return A string, containing the necessary wrapper function (named JUploadSetProperty) |
|
| 263 | + * @return string string, containing the necessary wrapper function (named JUploadSetProperty) |
|
| 262 | 264 | */ |
| 263 | 265 | private function str_jsinit() { |
| 264 | 266 | $N = "\n"; |
@@ -277,7 +279,7 @@ discard block |
||
| 277 | 279 | /** |
| 278 | 280 | * Build a string, containing the applet tag with all parameters. |
| 279 | 281 | * |
| 280 | - * @return A string, containing the applet tag |
|
| 282 | + * @return string string, containing the applet tag |
|
| 281 | 283 | */ |
| 282 | 284 | private function str_applet() { |
| 283 | 285 | $N = "\n"; |
@@ -336,6 +338,9 @@ discard block |
||
| 336 | 338 | return; |
| 337 | 339 | } |
| 338 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $path |
|
| 343 | + */ |
|
| 339 | 344 | private function mkdirp($path) { |
| 340 | 345 | // create subdir (hierary) below destdir; |
| 341 | 346 | $dirs = explode('/', $path); |