@@ -296,6 +296,7 @@ discard block |
||
296 | 296 | * |
297 | 297 | * @param array|string $log string or array |
298 | 298 | * @param string $stringToAdd |
299 | + * @param string $stringToAddDetail |
|
299 | 300 | */ |
300 | 301 | public function addLog(&$log, $stringToAdd, $stringToAddDetail = null) |
301 | 302 | { |
@@ -358,7 +359,7 @@ discard block |
||
358 | 359 | * In case nothing could be found, this returns "null". |
359 | 360 | * |
360 | 361 | * @param string $key |
361 | - * @return string|array|null |
|
362 | + * @return string |
|
362 | 363 | */ |
363 | 364 | public function getRequest($key = null) |
364 | 365 | { |
@@ -263,7 +263,6 @@ discard block |
||
263 | 263 | * @param mixed $filterData any data the filter uses |
264 | 264 | * @param bool $failOnError whether the filter should fail on errors (true) |
265 | 265 | * or silently ignore them (false) |
266 | - * @param bool $saveMessage |
|
267 | 266 | */ |
268 | 267 | public function addFilter($filterType, $filterData, $failOnError = true) |
269 | 268 | { |
@@ -332,7 +331,6 @@ discard block |
||
332 | 331 | * |
333 | 332 | * @param array $confirmRequest the confirm request |
334 | 333 | * @param array $providerData old data read |
335 | - * @param array $setData new data to set |
|
336 | 334 | * @param array $processOptions custom options (optional) |
337 | 335 | * |
338 | 336 | * @throws XenForo_Exception |
@@ -351,7 +349,7 @@ discard block |
||
351 | 349 | * essential! |
352 | 350 | * |
353 | 351 | * @throws XenForo_Exception |
354 | - * @return bool |
|
352 | + * @return false|null |
|
355 | 353 | */ |
356 | 354 | protected function preProcessPending() |
357 | 355 | { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | * Returns "false" if the process should be canceled. Otherwise "true". |
90 | 90 | * |
91 | 91 | * @throws XenForo_Exception |
92 | - * @return bool |
|
92 | + * @return false|null |
|
93 | 93 | */ |
94 | 94 | protected function preProcessPending() |
95 | 95 | { |
@@ -250,7 +250,7 @@ |
||
250 | 250 | * Checks whether the string actually is a private key. |
251 | 251 | * |
252 | 252 | * @param string $privateKey The string to check. |
253 | - * @return bool |
|
253 | + * @return integer |
|
254 | 254 | */ |
255 | 255 | protected function isPrivateKey($privateKey) |
256 | 256 | { |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * XenForo template helper: threemaisvalidpubkey. |
62 | 62 | * |
63 | - * @param string $threemaid Threema ID |
|
64 | - * @return string |
|
63 | + * @return integer |
|
65 | 64 | */ |
66 | 65 | public static function checkPublic($pubKey) |
67 | 66 | { |
@@ -76,7 +75,7 @@ discard block |
||
76 | 75 | * @param string the public key |
77 | 76 | * @param string optional suffix (usually 'private:' or 'public:') (default: '') |
78 | 77 | * |
79 | - * @return bool whether the key is valid (true) or not (false) |
|
78 | + * @return integer whether the key is valid (true) or not (false) |
|
80 | 79 | */ |
81 | 80 | public static function check($publicKey, $suffix = '') |
82 | 81 | { |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * Generates some random bytes. |
87 | 87 | * |
88 | 88 | * @link https://paragonie.com/book/pecl-libsodium/read/02-random-data.md |
89 | - * @param int $bytes Number of bytes to return |
|
89 | + * @param integer $number |
|
90 | 90 | * @return string |
91 | 91 | */ |
92 | 92 | public static function getRandomBytes($number) |
@@ -61,7 +61,7 @@ |
||
61 | 61 | public static function getRandomString($length, $keyspace = 'abcdefghijklmnopqrstuvwxyz01234567') |
62 | 62 | { |
63 | 63 | /** @var string $output */ |
64 | - $output = ''; |
|
64 | + $output = ''; |
|
65 | 65 | if (self::canUseLibsodium()) { |
66 | 66 | /** @var int $keysize */ |
67 | 67 | $keysize = strlen($keyspace); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * 2 = registered |
27 | 27 | * 3 = administrator |
28 | 28 | * 4 = moderator |
29 | - * @param string $applyPermissionId The permission id |
|
29 | + * @param string $permissionId The permission id |
|
30 | 30 | * @param string $permissionValue (optional) The value of the permission: allow, deny |
31 | 31 | * use_int |
32 | 32 | * @param int $permissionValueInt (optional) When using an integer (use_int) |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | * option call it this way: injectFetchOption('where', []). |
85 | 85 | * |
86 | 86 | * @param string $option The option name to inject |
87 | - * @param mixed $value The value of the option to set. |
|
88 | - * @param mixed $append If set to true, the value is not overriden, but |
|
87 | + * @param string $value The value of the option to set. |
|
88 | + * @param boolean $append If set to true, the value is not overriden, but |
|
89 | 89 | * just appended as an array. (default: false) |
90 | 90 | */ |
91 | 91 | public function injectFetchOption($option, $value, $append = false) |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * If you want to limit the types you want to query this method would be a |
148 | 148 | * good way for you to use. |
149 | 149 | * |
150 | - * @param string $typeCode one (string) or more (array) mtype codes |
|
150 | + * @param string $typeCodes one (string) or more (array) mtype codes |
|
151 | 151 | */ |
152 | 152 | public function setTypeCode($typeCodes) |
153 | 153 | { |
@@ -197,7 +197,6 @@ discard block |
||
197 | 197 | * Limit the result to a number of datasets. |
198 | 198 | * |
199 | 199 | * @param int $limit oldest date of messages |
200 | - * @param int $date_max latest date of messages (optional) |
|
201 | 200 | */ |
202 | 201 | public function setResultLimit($limit) |
203 | 202 | { |
@@ -518,9 +517,9 @@ discard block |
||
518 | 517 | * submit additional conditions with the first parameter. |
519 | 518 | * Attention: This ignores the limit/offset clause for simplicity. |
520 | 519 | * |
521 | - * @param array $additionalConditions Add additional where conditions if |
|
520 | + * @param string[] $additionalConditions Add additional where conditions if |
|
522 | 521 | * neccessary. |
523 | - * @param array $removeOnlyField When set only the passed fields are |
|
522 | + * @param string[] $removeOnlyField When set only the passed fields are |
|
524 | 523 | * updated to "null" rather than deleting |
525 | 524 | * the whole record. |
526 | 525 | */ |
@@ -582,7 +581,7 @@ discard block |
||
582 | 581 | * |
583 | 582 | * @param array $baseArray the main array, where the key/value pairs get to |
584 | 583 | * @param array $subArray the array, which keys should be removed |
585 | - * @param array $removeKeys an array of keys, which should be removed |
|
584 | + * @param string[] $removeKeys an array of keys, which should be removed |
|
586 | 585 | * |
587 | 586 | * @throws XenForo_Exception |
588 | 587 | * @return false|array |
@@ -611,7 +610,7 @@ discard block |
||
611 | 610 | * Groups an array by using the value of a specific index in it. |
612 | 611 | * |
613 | 612 | * @param array $array the array, which is sued as the base |
614 | - * @param string|int $indexKey the value of the key, which should be used |
|
613 | + * @param string $indexKey the value of the key, which should be used |
|
615 | 614 | * for indexing |
616 | 615 | * @param bool $ignoreIndex Set to true to ignore multiple values in |
617 | 616 | * $array. If activated only the last key of |
@@ -207,9 +207,7 @@ discard block |
||
207 | 207 | * Currently this is not correctly implemented in XenForo. |
208 | 208 | * See {@link https://xenforo.com/community/threads/1-5-documentation-for-two-step-authentication.102846/#post-1031047} |
209 | 209 | * |
210 | - * @param XenForo_Input $input |
|
211 | 210 | * @param array $user |
212 | - * @param array $error |
|
213 | 211 | * |
214 | 212 | * @return string HTML code |
215 | 213 | */ |
@@ -392,8 +390,6 @@ discard block |
||
392 | 390 | /** |
393 | 391 | * Called when verifying displaying the choose 2FA mode. |
394 | 392 | * |
395 | - * @param array $user |
|
396 | - * @param object $error |
|
397 | 393 | * |
398 | 394 | * @return bool |
399 | 395 | */ |