@@ -75,6 +75,11 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | + /** |
|
| 79 | + * @param string $mapper_class_name |
|
| 80 | + * @param string $mime_type |
|
| 81 | + * @param string $extension |
|
| 82 | + */ |
|
| 78 | 83 | public static function registerMapper($mapper_class_name, $mime_type, $extension) |
| 79 | 84 | { |
| 80 | 85 | self::$customMappers[$mime_type] = $mapper_class_name; |
@@ -86,6 +91,10 @@ discard block |
||
| 86 | 91 | return self::$customMappers; |
| 87 | 92 | } |
| 88 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $uri |
|
| 96 | + * @param string $format |
|
| 97 | + */ |
|
| 89 | 98 | public static function determineFormat($uri, $format = null) |
| 90 | 99 | { |
| 91 | 100 | if ($format == null) { |
@@ -108,6 +117,9 @@ discard block |
||
| 108 | 117 | return $format; |
| 109 | 118 | } |
| 110 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $format |
|
| 122 | + */ |
|
| 111 | 123 | public static function mimeType($format) |
| 112 | 124 | { |
| 113 | 125 | $format = strtoupper($format); |
@@ -37,7 +37,6 @@ discard block |
||
| 37 | 37 | * @param \WideImage\Image $image |
| 38 | 38 | * @param float $amount |
| 39 | 39 | * @param const $type |
| 40 | - * @param float $threshold |
|
| 41 | 40 | * @return \WideImage\Image |
| 42 | 41 | */ |
| 43 | 42 | public function execute($image, $amount, $type) { |
@@ -91,7 +90,6 @@ discard block |
||
| 91 | 90 | * @param int $r |
| 92 | 91 | * @param int $g |
| 93 | 92 | * @param int $b |
| 94 | - * @param int $value |
|
| 95 | 93 | * @return void |
| 96 | 94 | */ |
| 97 | 95 | public function colorNoise_fun(&$r, &$g, &$b, $amount) |
@@ -107,7 +105,6 @@ discard block |
||
| 107 | 105 | * @param int $r |
| 108 | 106 | * @param int $g |
| 109 | 107 | * @param int $b |
| 110 | - * @param int $value |
|
| 111 | 108 | * @return void |
| 112 | 109 | */ |
| 113 | 110 | public function monoNoise_fun(&$r, &$g, &$b, $amount) |
@@ -125,7 +122,6 @@ discard block |
||
| 125 | 122 | * @param int $r |
| 126 | 123 | * @param int $g |
| 127 | 124 | * @param int $b |
| 128 | - * @param int $value |
|
| 129 | 125 | * @return void |
| 130 | 126 | */ |
| 131 | 127 | public function saltPepperNoise_fun(&$r, &$g, &$b, $amount) |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | * |
| 38 | 38 | * @param \WideImage\Image $image |
| 39 | 39 | * @param \WideImage\Image $mask |
| 40 | - * @param smart_coordinate $left |
|
| 41 | - * @param smart_coordinate $top |
|
| 40 | + * @param integer $left |
|
| 41 | + * @param integer $top |
|
| 42 | 42 | * @return \WideImage\Image |
| 43 | 43 | */ |
| 44 | 44 | public function execute($image, $mask, $left = 0, $top = 0) |
@@ -139,6 +139,9 @@ |
||
| 139 | 139 | return $image; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param double $val |
|
| 144 | + */ |
|
| 142 | 145 | protected static function bit($val) |
| 143 | 146 | { |
| 144 | 147 | if ($val > 255) { |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | { |
| 36 | 36 | protected static $cache = array(); |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $operationName |
|
| 40 | + */ |
|
| 38 | 41 | public static function get($operationName) |
| 39 | 42 | { |
| 40 | 43 | $lcname = strtolower($operationName); |
@@ -355,7 +355,7 @@ |
||
| 355 | 355 | /** |
| 356 | 356 | * Throws exception if the handle isn't a valid GD resource |
| 357 | 357 | * |
| 358 | - * @param mixed $handle The variable to check |
|
| 358 | + * @param resource $handle The variable to check |
|
| 359 | 359 | */ |
| 360 | 360 | public static function assertValidImageHandle($handle) |
| 361 | 361 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | //static $configs; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param $name |
|
| 30 | + * @param string $name |
|
| 31 | 31 | * @param string $type |
| 32 | 32 | * |
| 33 | 33 | * @return bool |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * Load core class |
| 92 | 92 | * |
| 93 | 93 | * @access private |
| 94 | - * @param $name |
|
| 94 | + * @param string $name |
|
| 95 | 95 | * @return bool|string |
| 96 | 96 | */ |
| 97 | 97 | public static function loadCore($name) |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * Load Framework class |
| 126 | 126 | * |
| 127 | 127 | * @access private |
| 128 | - * @param $name |
|
| 128 | + * @param string $name |
|
| 129 | 129 | * @return bool|string |
| 130 | 130 | */ |
| 131 | 131 | public static function loadFramework($name) |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * xoops_getHandler() |
| 22 | 22 | * |
| 23 | - * @param mixed $name |
|
| 23 | + * @param string $name |
|
| 24 | 24 | * @param mixed $optional |
| 25 | 25 | * |
| 26 | 26 | * @return bool |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * xoops_getModuleHandler() |
| 55 | 55 | * |
| 56 | - * @param mixed $name |
|
| 56 | + * @param string $name |
|
| 57 | 57 | * @param mixed $module_dir |
| 58 | 58 | * @param mixed $optional |
| 59 | 59 | * @return bool |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * xoops_error |
| 281 | 281 | * |
| 282 | - * @param mixed $msg |
|
| 282 | + * @param string $msg |
|
| 283 | 283 | * @param string $title |
| 284 | 284 | * @return void |
| 285 | 285 | */ |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * |
| 374 | 374 | * @param mixed $time |
| 375 | 375 | * @param string $timeoffset |
| 376 | - * @return int |
|
| 376 | + * @return double |
|
| 377 | 377 | */ |
| 378 | 378 | function xoops_getUserTimestamp($time, $timeoffset = '') |
| 379 | 379 | { |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | * formatURL() |
| 570 | 570 | * |
| 571 | 571 | * @param mixed $url |
| 572 | - * @return mixed|string |
|
| 572 | + * @return string |
|
| 573 | 573 | */ |
| 574 | 574 | function formatURL($url) |
| 575 | 575 | { |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | |
| 651 | 651 | /** |
| 652 | 652 | * Function to redirect a user to certain pages |
| 653 | - * @param $url |
|
| 653 | + * @param string $url |
|
| 654 | 654 | * @param int $time |
| 655 | 655 | * @param string $message |
| 656 | 656 | * @param bool $addredirect |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | /** |
| 735 | 735 | * xoops_getenv() |
| 736 | 736 | * |
| 737 | - * @param mixed $key |
|
| 737 | + * @param string $key |
|
| 738 | 738 | * @return string |
| 739 | 739 | */ |
| 740 | 740 | function xoops_getenv($key) |
@@ -821,7 +821,7 @@ discard block |
||
| 821 | 821 | * xoops_getrank() |
| 822 | 822 | * |
| 823 | 823 | * @param integer $rank_id |
| 824 | - * @param mixed $posts |
|
| 824 | + * @param integer $posts |
|
| 825 | 825 | * @return |
| 826 | 826 | */ |
| 827 | 827 | function xoops_getrank($rank_id = 0, $posts = 0) |
@@ -1024,7 +1024,7 @@ discard block |
||
| 1024 | 1024 | /** |
| 1025 | 1025 | * xoops_getOption() |
| 1026 | 1026 | * |
| 1027 | - * @param mixed $option |
|
| 1027 | + * @param string $option |
|
| 1028 | 1028 | * @internal param string $type |
| 1029 | 1029 | * @deprecated |
| 1030 | 1030 | * @return string |
@@ -1045,7 +1045,7 @@ discard block |
||
| 1045 | 1045 | /** |
| 1046 | 1046 | * xoops_getConfigOption() |
| 1047 | 1047 | * |
| 1048 | - * @param mixed $option |
|
| 1048 | + * @param string $option |
|
| 1049 | 1049 | * @param string $type |
| 1050 | 1050 | * @internal param string $dirname |
| 1051 | 1051 | * @deprecated |
@@ -1077,7 +1077,7 @@ discard block |
||
| 1077 | 1077 | /** |
| 1078 | 1078 | * xoops_setConfigOption() |
| 1079 | 1079 | * |
| 1080 | - * @param mixed $option |
|
| 1080 | + * @param string $option |
|
| 1081 | 1081 | * @param null $new |
| 1082 | 1082 | * @return void |
| 1083 | 1083 | @deprecated |
@@ -1097,7 +1097,7 @@ discard block |
||
| 1097 | 1097 | * |
| 1098 | 1098 | * Method for module developers getting a module config item. This could be from any module requested. |
| 1099 | 1099 | * |
| 1100 | - * @param mixed $option |
|
| 1100 | + * @param string $option |
|
| 1101 | 1101 | * @param string $dirname |
| 1102 | 1102 | * @return bool |
| 1103 | 1103 | @deprecated |
@@ -188,6 +188,9 @@ |
||
| 188 | 188 | 'Xmf\\Yaml' => __DIR__ . '/..' . '/xoops/xmf/src/Xmf/Yaml.php', |
| 189 | 189 | ); |
| 190 | 190 | |
| 191 | + /** |
|
| 192 | + * @return callable |
|
| 193 | + */ |
|
| 191 | 194 | public static function getInitializer(ClassLoader $loader) |
| 192 | 195 | { |
| 193 | 196 | return \Closure::bind(function () use ($loader) { |