@@ -117,7 +117,7 @@ |
||
| 117 | 117 | * @param string $left The left argument |
| 118 | 118 | * @param string $right The right argument |
| 119 | 119 | * |
| 120 | - * @return string The binary result |
|
| 120 | + * @return string[] The binary result |
|
| 121 | 121 | */ |
| 122 | 122 | protected function subtractBinary($left, $right) { |
| 123 | 123 | $len = max(strlen($left), strlen($right)); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @param mixed $value The value this instance represents |
| 50 | 50 | * @param boolean $strict Not Implemented at this time |
| 51 | 51 | * |
| 52 | - * @return void |
|
| 52 | + * @return Strength |
|
| 53 | 53 | * @throws UnexpectedValueException If the value is not a constant |
| 54 | 54 | */ |
| 55 | 55 | public function __construct($value = null, $strict = false) { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * Cast the current object to a string and return its value |
| 71 | 71 | * |
| 72 | - * @return mixed the current value of the instance |
|
| 72 | + * @return string the current value of the instance |
|
| 73 | 73 | */ |
| 74 | 74 | public function __toString() { |
| 75 | 75 | return (string) $this->value; |
@@ -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 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * Get all global or section variable names. |
| 190 | 190 | * |
| 191 | 191 | * @param string $file_name config file to get info for |
| 192 | - * @param string $section_name (optional) section to get info for |
|
| 192 | + * @param string $section (optional) section to get info for |
|
| 193 | 193 | * @return array an array of variables names from the specified file/section |
| 194 | 194 | */ |
| 195 | 195 | function get_var_names($file_name, $section = NULL) |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | /** |
| 346 | 346 | * @param array &$container |
| 347 | 347 | * @param string $var_name |
| 348 | - * @param mixed $var_value |
|
| 348 | + * @param string $var_value |
|
| 349 | 349 | * @param boolean $booleanize determines whether $var_value is converted to |
| 350 | 350 | * to true/false |
| 351 | 351 | */ |