@@ -687,7 +687,7 @@ |
||
| 687 | 687 | * Additional custom filters can be specified for the named asset if needed. |
| 688 | 688 | * |
| 689 | 689 | * @param string $name the name of the reference to be added |
| 690 | - * @param mixed $assets a string asset path, or an array of asset paths, may include wildcard |
|
| 690 | + * @param string $assets a string asset path, or an array of asset paths, may include wildcard |
|
| 691 | 691 | * @param string $filters comma separated list of filters |
| 692 | 692 | * |
| 693 | 693 | * @return boolean true if asset registers, false on error |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @param XoopsModule $module |
| 24 | 24 | * @param string|null $oldversion |
| 25 | - * @return bool|void |
|
| 25 | + * @return boolean |
|
| 26 | 26 | * @todo this should be removed, it is now handled by schema |
| 27 | 27 | */ |
| 28 | 28 | function xoops_module_update_pm(&$module, $oldversion = null) |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @param XoopsModule $module |
| 24 | 24 | * @param string|null $oldversion |
| 25 | - * @return bool|void |
|
| 25 | + * @return boolean |
|
| 26 | 26 | * @todo this should be removed, it is now handled by schema |
| 27 | 27 | */ |
| 28 | 28 | function xoops_module_update_pm(&$module, $oldversion = null) |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * |
| 81 | 81 | * @internal intended for module developers only |
| 82 | 82 | * |
| 83 | - * @return int|false count of bytes written or false on error |
|
| 83 | + * @return null|false count of bytes written or false on error |
|
| 84 | 84 | */ |
| 85 | 85 | public function saveCurrentSchema() |
| 86 | 86 | { |
@@ -479,6 +479,11 @@ |
||
| 479 | 479 | trigger_error("Smarty error: $error_msg", $error_type); |
| 480 | 480 | } |
| 481 | 481 | |
| 482 | + /** |
|
| 483 | + * @param string $function |
|
| 484 | + * @param string $file |
|
| 485 | + * @param integer $line |
|
| 486 | + */ |
|
| 482 | 487 | protected function deprecated($function, $file, $line) |
| 483 | 488 | { |
| 484 | 489 | $xoops = \Xoops::getInstance(); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * |
| 54 | 54 | * @param string $color 24 bit RGB color as hex digit (i.e. 'FFFFFF') |
| 55 | 55 | * |
| 56 | - * @return int relative brightness of color 1-255001 |
|
| 56 | + * @return double relative brightness of color 1-255001 |
|
| 57 | 57 | */ |
| 58 | 58 | function getBrightness($color) |
| 59 | 59 | { |
@@ -712,7 +712,7 @@ |
||
| 712 | 712 | * @param string $table table |
| 713 | 713 | * @param bool $prefixed true to return with table name prefixed |
| 714 | 714 | * |
| 715 | - * @return string|false string SQL to create table, or false if errors encountered |
|
| 715 | + * @return string|boolean string SQL to create table, or false if errors encountered |
|
| 716 | 716 | */ |
| 717 | 717 | protected function renderTableCreate($table, $prefixed = false) |
| 718 | 718 | { |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * @param string $pre insert before needle |
| 63 | 63 | * @param string $post insert after needle |
| 64 | 64 | * |
| 65 | - * @return mixed return from preg_replace_callback() |
|
| 65 | + * @return string return from preg_replace_callback() |
|
| 66 | 66 | */ |
| 67 | 67 | protected static function splitOnTag($needle, $haystack, $pre, $post) |
| 68 | 68 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * information see FilterInput::clean(). |
| 78 | 78 | * @param int $mask Filter mask for the variable |
| 79 | 79 | * |
| 80 | - * @return mixed Requested variable |
|
| 80 | + * @return string|null Requested variable |
|
| 81 | 81 | */ |
| 82 | 82 | public static function getVar($name, $default = null, $hash = 'default', $type = 'none', $mask = 0) |
| 83 | 83 | { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * @param int $default Default value if the variable does not exist |
| 140 | 140 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 141 | 141 | * |
| 142 | - * @return int Requested variable |
|
| 142 | + * @return string|null Requested variable |
|
| 143 | 143 | */ |
| 144 | 144 | public static function getInt($name, $default = 0, $hash = 'default') |
| 145 | 145 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * @param float $default Default value if the variable does not exist |
| 158 | 158 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 159 | 159 | * |
| 160 | - * @return float Requested variable |
|
| 160 | + * @return string|null Requested variable |
|
| 161 | 161 | */ |
| 162 | 162 | public static function getFloat($name, $default = 0.0, $hash = 'default') |
| 163 | 163 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param bool $default Default value if the variable does not exist |
| 176 | 176 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 177 | 177 | * |
| 178 | - * @return bool Requested variable |
|
| 178 | + * @return string|null Requested variable |
|
| 179 | 179 | */ |
| 180 | 180 | public static function getBool($name, $default = false, $hash = 'default') |
| 181 | 181 | { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | * @param mixed $default Default value if the variable does not exist |
| 245 | 245 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 246 | 246 | * |
| 247 | - * @return array |
|
| 247 | + * @return string|null |
|
| 248 | 248 | */ |
| 249 | 249 | public static function getArray($name, $default = array(), $hash = 'default') |
| 250 | 250 | { |