@@ -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; |
@@ -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 | { |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | * Connect to a POP3 server. |
| 201 | 201 | * @access public |
| 202 | 202 | * @param string $host |
| 203 | - * @param integer|boolean $port |
|
| 203 | + * @param integer $port |
|
| 204 | 204 | * @param integer $tval |
| 205 | 205 | * @return boolean |
| 206 | 206 | */ |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * @param string $table_link table of linked object for JOIN; deprecated, for backward compatibility |
| 45 | 45 | * @param string $field_link field of linked object for JOIN; deprecated, for backward compatibility |
| 46 | 46 | * @param string $field_object field of current object for JOIN; deprecated, for backward compatibility |
| 47 | - * @return bool true on success |
|
| 47 | + * @return null|boolean true on success |
|
| 48 | 48 | */ |
| 49 | 49 | public function cleanOrphan($table_link = '', $field_link = '', $field_object = '') |
| 50 | 50 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * Synchronizing objects |
| 85 | 85 | * @deprecated |
| 86 | 86 | * |
| 87 | - * @return bool true on success |
|
| 87 | + * @return null|boolean true on success |
|
| 88 | 88 | */ |
| 89 | 89 | public function synchronization() |
| 90 | 90 | { |