@@ -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 | { |
@@ -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 | { |
@@ -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 | /** |
@@ -57,7 +57,7 @@ |
||
57 | 57 | public static function getOldestPossibleReplayAttackDate() |
58 | 58 | { |
59 | 59 | /** @var XenForo_Options $options */ |
60 | - $options = XenForo_Application::getOptions(); |
|
60 | + $options = XenForo_Application::getOptions(); |
|
61 | 61 | /** @var int $rejectOlDefault the default maximum age of a message according*/ |
62 | 62 | $rejectOlDefault = strtotime('-14 days', XenForo_Application::$time); |
63 | 63 | /* @var int $rejectOld the maximum age of a message according to the options */ |
@@ -65,6 +65,7 @@ |
||
65 | 65 | * Initiate PHP-SDK. |
66 | 66 | * |
67 | 67 | * @param ThreemaGateway_Handler_Settings |
68 | + * @param ThreemaGateway_Handler_Settings|null $settings |
|
68 | 69 | * @throws XenForo_Exception |
69 | 70 | */ |
70 | 71 | private function __construct($settings) |
@@ -358,7 +358,7 @@ |
||
358 | 358 | * In case nothing could be found, this returns "null". |
359 | 359 | * |
360 | 360 | * @param string $key |
361 | - * @return string|array|null |
|
361 | + * @return string |
|
362 | 362 | */ |
363 | 363 | public function getRequest($key = null) |
364 | 364 | { |
@@ -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 | { |
@@ -60,7 +60,6 @@ |
||
60 | 60 | * |
61 | 61 | * XenForo template helper: threemaisvalidpubkey. |
62 | 62 | * |
63 | - * @param string $threemaid Threema ID |
|
64 | 63 | * @return bool |
65 | 64 | */ |
66 | 65 | public static function checkPublic($pubKey) |
@@ -10,15 +10,15 @@ |
||
10 | 10 | |
11 | 11 | class ThreemaGateway_Helper_Emoji |
12 | 12 | { |
13 | - /** |
|
14 | - * Replaces unicode escape sequence with the correct UNICODE character. |
|
15 | - * |
|
16 | - * XenForo template helper: emojiparseunicode. |
|
17 | - * You need to pass it as surrogate pairs, e.g. \ud83d\udd11. |
|
18 | - * |
|
19 | - * @param string $string |
|
20 | - * @return string |
|
21 | - */ |
|
13 | + /** |
|
14 | + * Replaces unicode escape sequence with the correct UNICODE character. |
|
15 | + * |
|
16 | + * XenForo template helper: emojiparseunicode. |
|
17 | + * You need to pass it as surrogate pairs, e.g. \ud83d\udd11. |
|
18 | + * |
|
19 | + * @param string $string |
|
20 | + * @return string |
|
21 | + */ |
|
22 | 22 | public static function parseUnicode($string) |
23 | 23 | { |
24 | 24 | // uses json_decode as a hackish way to encode unicode strings |