@@ -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 |
@@ -50,7 +50,6 @@ |
||
50 | 50 | /** |
51 | 51 | * Verifies whether the dir of the file is valid (can be created) and is writable. |
52 | 52 | * |
53 | - * @param string $filepath Input |
|
54 | 53 | * @param XenForo_DataWriter $dw |
55 | 54 | * @param string $fieldName Name of field/option |
56 | 55 | * |
@@ -53,7 +53,6 @@ |
||
53 | 53 | /** |
54 | 54 | * Verifies the Threema Gateway Secret format. |
55 | 55 | * |
56 | - * @param string $threemaid Input threema ID |
|
57 | 56 | * @param XenForo_DataWriter $dw |
58 | 57 | * @param string $fieldName Name of field/option |
59 | 58 | * |
@@ -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 | */ |
@@ -422,8 +422,8 @@ |
||
422 | 422 | abstract protected function generateDefaultData(); |
423 | 423 | |
424 | 424 | /** |
425 | - * Adjust the view params for managing the 2FA mode, e.g. add special |
|
426 | - * params needed by your template. |
|
425 | + * Adjust the view params for managing the 2FA mode, e.g. add special |
|
426 | + * params needed by your template. |
|
427 | 427 | * |
428 | 428 | * @param array $viewParams |
429 | 429 | * @param string $context |
@@ -726,7 +726,7 @@ |
||
726 | 726 | $displayTime = floor($hours / 24) . ' ' . new XenForo_Phrase('threemagw_days'); |
727 | 727 | } |
728 | 728 | |
729 | - return (string)$displayTime; |
|
729 | + return (string) $displayTime; |
|
730 | 730 | } |
731 | 731 | |
732 | 732 | /** |
@@ -340,8 +340,8 @@ |
||
340 | 340 | } |
341 | 341 | |
342 | 342 | /** |
343 | - * Adjust the view params for managing the 2FA mode, e.g. add special |
|
344 | - * params needed by your template. |
|
343 | + * Adjust the view params for managing the 2FA mode, e.g. add special |
|
344 | + * params needed by your template. |
|
345 | 345 | * |
346 | 346 | * @param array $viewParams |
347 | 347 | * @param string $context |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $db->query('INSERT INTO `xf_tfa_provider` |
56 | 56 | (`provider_id`, `provider_class`, `priority`, `active`) |
57 | 57 | VALUES (?, ?, ?, ?)', |
58 | - [$this->TfaId, $this->TfaClass, $this->TfaPriority, (int) $enabled]); |
|
58 | + [$this->TfaId, $this->TfaClass, $this->TfaPriority, (int) $enabled]); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** @var mixed $result result of SQL query */ |
38 | 38 | $result = $this->_getDb()->fetchRow('SELECT * FROM `' . self::DB_TABLE . '` |
39 | 39 | WHERE `request_id` = ?', |
40 | - $requestId); |
|
40 | + $requestId); |
|
41 | 41 | |
42 | 42 | if (!$result) { |
43 | 43 | return null; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** @var mixed $result result of SQL query */ |
80 | 80 | $result = $this->fetchAllKeyed('SELECT * FROM `' . self::DB_TABLE . '` |
81 | 81 | WHERE ' . $this->getConditionsForClause($conditionsArray), |
82 | - 'request_id', $paramsArray); |
|
82 | + 'request_id', $paramsArray); |
|
83 | 83 | |
84 | 84 | if (!$result) { |
85 | 85 | return null; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** @var mixed $result result of SQL query */ |
29 | 29 | $result = $this->_getDb()->fetchRow('SELECT * FROM `' . self::DB_TABLE . '` |
30 | 30 | WHERE `threema_id` = ?', |
31 | - $threemaId); |
|
31 | + $threemaId); |
|
32 | 32 | |
33 | 33 | if (is_array($result) && array_key_exists('public_key', $result)) { |
34 | 34 | return (string) $result['public_key']; |