@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * |
| 108 | 108 | * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called |
| 109 | 109 | * |
| 110 | - * @return mixed |
|
| 110 | + * @return string |
|
| 111 | 111 | */ |
| 112 | 112 | public static function trace( $trace = null ) |
| 113 | 113 | { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * |
| 151 | 151 | * @param mixed $data |
| 152 | 152 | * |
| 153 | - * @return void|string |
|
| 153 | + * @return string |
|
| 154 | 154 | */ |
| 155 | 155 | public static function dump( $data = null ) |
| 156 | 156 | { |
@@ -305,6 +305,9 @@ discard block |
||
| 305 | 305 | return $shortenedName; |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | + /** |
|
| 309 | + * @return string |
|
| 310 | + */ |
|
| 308 | 311 | public static function getIdeLink( $file, $line ) |
| 309 | 312 | { |
| 310 | 313 | return str_replace( array( '%f', '%l' ), array( $file, $line ), self::$fileLinkFormat ); |
@@ -317,7 +320,7 @@ discard block |
||
| 317 | 320 | * @param int $lineNumber the line to display |
| 318 | 321 | * @param int $padding surrounding lines to show besides the main one |
| 319 | 322 | * |
| 320 | - * @return bool|string |
|
| 323 | + * @return false|string |
|
| 321 | 324 | */ |
| 322 | 325 | private static function _showSource( $file, $lineNumber, $padding = 7 ) |
| 323 | 326 | { |
@@ -590,7 +593,7 @@ discard block |
||
| 590 | 593 | * |
| 591 | 594 | * @param $step |
| 592 | 595 | * |
| 593 | - * @return array |
|
| 596 | + * @return boolean |
|
| 594 | 597 | */ |
| 595 | 598 | private static function _stepIsInternal( $step ) |
| 596 | 599 | { |
@@ -195,6 +195,7 @@ |
||
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | 197 | * Helper function for _color_hsl2rgb(). |
| 198 | + * @param double $h |
|
| 198 | 199 | */ |
| 199 | 200 | private static function _hue2rgb( $m1, $m2, $h ) |
| 200 | 201 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param string $value A PHP value |
| 46 | 46 | * |
| 47 | - * @return bool True if the value would require double quotes. |
|
| 47 | + * @return integer True if the value would require double quotes. |
|
| 48 | 48 | */ |
| 49 | 49 | public static function requiresDoubleQuoting($value) |
| 50 | 50 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @param string $value A PHP value |
| 70 | 70 | * |
| 71 | - * @return bool True if the value would require single quotes. |
|
| 71 | + * @return integer True if the value would require single quotes. |
|
| 72 | 72 | */ |
| 73 | 73 | public static function requiresSingleQuoting($value) |
| 74 | 74 | { |
@@ -182,9 +182,9 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * Parses a scalar to a YAML string. |
| 184 | 184 | * |
| 185 | - * @param scalar $scalar |
|
| 185 | + * @param string $scalar |
|
| 186 | 186 | * @param string $delimiters |
| 187 | - * @param array $stringDelimiters |
|
| 187 | + * @param string[] $stringDelimiters |
|
| 188 | 188 | * @param int &$i |
| 189 | 189 | * @param bool $evaluate |
| 190 | 190 | * @param array $references |
@@ -235,6 +235,7 @@ discard block |
||
| 235 | 235 | * |
| 236 | 236 | * @param string $scalar |
| 237 | 237 | * @param int &$i |
| 238 | + * @param integer $i |
|
| 238 | 239 | * |
| 239 | 240 | * @return string A YAML string |
| 240 | 241 | * |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | * @param string $table table |
| 725 | 725 | * @param bool $prefixed true to return with table name prefixed |
| 726 | 726 | * |
| 727 | - * @return string|false string SQL to create table, or false if errors encountered |
|
| 727 | + * @return string|boolean string SQL to create table, or false if errors encountered |
|
| 728 | 728 | */ |
| 729 | 729 | protected function renderTableCreate($table, $prefixed = false) |
| 730 | 730 | { |
@@ -761,7 +761,7 @@ discard block |
||
| 761 | 761 | * @param string $sql SQL statement to execute |
| 762 | 762 | * @param bool $force true to use force updates even in safe requests |
| 763 | 763 | * |
| 764 | - * @return mixed result resource if no error, |
|
| 764 | + * @return resource result resource if no error, |
|
| 765 | 765 | * true if no error but no result |
| 766 | 766 | * false if error encountered. |
| 767 | 767 | * Any error message is in $this->lastError; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * |
| 61 | 61 | * @param string $ip ip address to normalize |
| 62 | 62 | * |
| 63 | - * @return string|false normalized address or false on failure |
|
| 63 | + * @return string normalized address or false on failure |
|
| 64 | 64 | */ |
| 65 | 65 | protected function normalize($ip) |
| 66 | 66 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * get the module object |
| 72 | 72 | * |
| 73 | - * @return XoopsModule |
|
| 73 | + * @return \XoopsModule |
|
| 74 | 74 | */ |
| 75 | 75 | public function getModule() |
| 76 | 76 | { |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | /** |
| 162 | 162 | * Delete all permissions for an item and a specific name or array of names |
| 163 | 163 | * |
| 164 | - * @param string|string[] $gperm_name name(s) of the permission to delete |
|
| 164 | + * @param string $gperm_name name(s) of the permission to delete |
|
| 165 | 165 | * @param int $gperm_itemid id of the object to check |
| 166 | 166 | * |
| 167 | 167 | * @return bool true if no errors |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * @param int $size size of list |
| 193 | 193 | * @param bool $multiple true to allow multiple selections |
| 194 | 194 | * |
| 195 | - * @return object XoopsFormSelectGroup |
|
| 195 | + * @return \XoopsFormSelectGroup XoopsFormSelectGroup |
|
| 196 | 196 | */ |
| 197 | 197 | public function getGroupSelectFormForItem( |
| 198 | 198 | $gperm_name, |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * Get a reference to the only instance of this class |
| 84 | 84 | * |
| 85 | - * @return object XoopsLogger reference to the only instance |
|
| 85 | + * @return XoopsLogger XoopsLogger reference to the only instance |
|
| 86 | 86 | */ |
| 87 | 87 | public static function getInstance() |
| 88 | 88 | { |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | * |
| 262 | 262 | * @param string $path |
| 263 | 263 | * |
| 264 | - * @return mixed|string |
|
| 264 | + * @return string |
|
| 265 | 265 | */ |
| 266 | 266 | public function sanitizePath($path) |
| 267 | 267 | { |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | * @param $errFile |
| 421 | 421 | * @param $errLine |
| 422 | 422 | * @param null $errContext |
| 423 | - * @return bool |
|
| 423 | + * @return boolean|null |
|
| 424 | 424 | */ |
| 425 | 425 | function XoopsErrorHandler_HandleError($errNo, $errStr, $errFile, $errLine, $errContext = null) |
| 426 | 426 | { |