Completed
Push — master ( 99c4a8...14d377 )
by rugk
10:44 queued 04:11
created
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/Model/Messages.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Action/TfaCallback/DeliveryReceipt.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/Installer/TfaProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Helper/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/PhpSdk.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Action/Callback.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Handler/Action/TfaCallback/Abstract.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/Helper/Key.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,6 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.