Completed
Push — master ( 66fe64...b57115 )
by rugk
02:43
created
src/library/ThreemaGateway/DataWriter/Messages.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@
 block discarded – undo
477 477
         // round unix time to day (00:00)
478 478
         $receiveDate = ThreemaGateway_Helper_General::roundToDay($receiveDate);
479 479
 
480
-        return (int)$receiveDate;
480
+        return (int) $receiveDate;
481 481
     }
482 482
 
483 483
     /**
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Action/Callback.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,6 +296,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Action/TfaCallback/Abstract.php 2 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -263,7 +263,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -85,35 +85,35 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Action/TfaCallback/TextMessage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/PhpSdk.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,6 +101,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Settings.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Helper/Key.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Helper/Random.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Installer/Permissions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.