@@ -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) |
@@ -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) { |
@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | var $phpThumbObject = null; |
| 19 | 19 | |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $message |
|
| 23 | + */ |
|
| 21 | 24 | function DebugMessage($message, $file='', $line='') { |
| 22 | 25 | if (is_object($this->phpThumbObject)) { |
| 23 | 26 | return $this->phpThumbObject->DebugMessage($message, $file, $line); |
@@ -752,6 +755,9 @@ discard block |
||
| 752 | 755 | } |
| 753 | 756 | |
| 754 | 757 | |
| 758 | + /** |
|
| 759 | + * @param phpthumb $phpThumbObject |
|
| 760 | + */ |
|
| 755 | 761 | public static function ImprovedImageRotate(&$gdimg_source, $rotate_angle=0, $config_background_hexcolor='FFFFFF', $bg=null, &$phpThumbObject) { |
| 756 | 762 | while ($rotate_angle < 0) { |
| 757 | 763 | $rotate_angle += 360; |
@@ -1049,6 +1055,10 @@ discard block |
||
| 1049 | 1055 | } |
| 1050 | 1056 | |
| 1051 | 1057 | |
| 1058 | + /** |
|
| 1059 | + * @param boolean $dither |
|
| 1060 | + * @param integer $ncolors |
|
| 1061 | + */ |
|
| 1052 | 1062 | public function ImageTrueColorToPalette2(&$image, $dither, $ncolors) { |
| 1053 | 1063 | // http://www.php.net/manual/en/function.imagetruecolortopalette.php |
| 1054 | 1064 | // zmorris at zsculpt dot com (17-Aug-2004 06:58) |