@@ -261,7 +261,7 @@ |
||
| 261 | 261 | * Gets SQL condition to update the existing record. |
| 262 | 262 | * |
| 263 | 263 | * @see XenForo_DataWriter::_getUpdateCondition() |
| 264 | - * @return bool |
|
| 264 | + * @return string |
|
| 265 | 265 | */ |
| 266 | 266 | protected function _getUpdateCondition($tableName) |
| 267 | 267 | { |
@@ -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 | { |
@@ -85,35 +85,35 @@ |
||
| 85 | 85 | */ |
| 86 | 86 | protected $pendingRequests; |
| 87 | 87 | |
| 88 | - /** |
|
| 89 | - * Checks whether text messages contain code used for the receiver 2FA. |
|
| 90 | - * |
|
| 91 | - * You should set the "event hint" to "1" to only pass text messages to the |
|
| 92 | - * listener. Otherwise errors may happen. |
|
| 93 | - * |
|
| 94 | - * @param ThreemaGateway_Handler_Action_Callback $handler |
|
| 95 | - * @param Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult |
|
| 96 | - * @param Threema\MsgApi\Messages\ThreemaMessage $threemaMsg |
|
| 97 | - * @param array|string $output [$logType, $debugLog, $publicLog] |
|
| 98 | - * @param bool $saveMessage |
|
| 99 | - * @param bool $debugMode |
|
| 100 | - * |
|
| 101 | - * @throws XenForo_Exception |
|
| 102 | - */ |
|
| 103 | - public function __construct(ThreemaGateway_Handler_Action_Callback $handler, |
|
| 104 | - Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult, |
|
| 105 | - Threema\MsgApi\Messages\ThreemaMessage $threemaMsg, |
|
| 106 | - &$output, |
|
| 107 | - &$saveMessage, |
|
| 108 | - $debugMode) |
|
| 109 | - { |
|
| 110 | - $this->callback = $handler; |
|
| 111 | - $this->log = $output; |
|
| 112 | - $this->receiveResult = $receiveResult; |
|
| 113 | - $this->threemaMsg = $threemaMsg; |
|
| 114 | - $this->saveMessage = $saveMessage; |
|
| 115 | - $this->debugMode = $debugMode; |
|
| 116 | - } |
|
| 88 | + /** |
|
| 89 | + * Checks whether text messages contain code used for the receiver 2FA. |
|
| 90 | + * |
|
| 91 | + * You should set the "event hint" to "1" to only pass text messages to the |
|
| 92 | + * listener. Otherwise errors may happen. |
|
| 93 | + * |
|
| 94 | + * @param ThreemaGateway_Handler_Action_Callback $handler |
|
| 95 | + * @param Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult |
|
| 96 | + * @param Threema\MsgApi\Messages\ThreemaMessage $threemaMsg |
|
| 97 | + * @param array|string $output [$logType, $debugLog, $publicLog] |
|
| 98 | + * @param bool $saveMessage |
|
| 99 | + * @param bool $debugMode |
|
| 100 | + * |
|
| 101 | + * @throws XenForo_Exception |
|
| 102 | + */ |
|
| 103 | + public function __construct(ThreemaGateway_Handler_Action_Callback $handler, |
|
| 104 | + Threema\MsgApi\Helpers\ReceiveMessageResult $receiveResult, |
|
| 105 | + Threema\MsgApi\Messages\ThreemaMessage $threemaMsg, |
|
| 106 | + &$output, |
|
| 107 | + &$saveMessage, |
|
| 108 | + $debugMode) |
|
| 109 | + { |
|
| 110 | + $this->callback = $handler; |
|
| 111 | + $this->log = $output; |
|
| 112 | + $this->receiveResult = $receiveResult; |
|
| 113 | + $this->threemaMsg = $threemaMsg; |
|
| 114 | + $this->saveMessage = $saveMessage; |
|
| 115 | + $this->debugMode = $debugMode; |
|
| 116 | + } |
|
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * Prepare the message handling. |
@@ -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 | { |
@@ -101,6 +101,7 @@ discard block |
||
| 101 | 101 | * @param ThreemaGateway_Handler_Settings If you already used the settings |
| 102 | 102 | * you can pass them here, so the |
| 103 | 103 | * class can reuse them. |
| 104 | + * @param ThreemaGateway_Handler_Settings $settings |
|
| 104 | 105 | * @throws XenForo_Exception |
| 105 | 106 | * @return void |
| 106 | 107 | */ |
@@ -126,7 +127,7 @@ discard block |
||
| 126 | 127 | /** |
| 127 | 128 | * Returns the feature level of the SDK. |
| 128 | 129 | * |
| 129 | - * @return string |
|
| 130 | + * @return integer |
|
| 130 | 131 | */ |
| 131 | 132 | public function getFeatureLevel() |
| 132 | 133 | { |
@@ -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) |