Completed
Push — master ( 3af7c9...98d162 )
by rugk
03:13
created
src/library/ThreemaGateway/Helper/Emoji.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@  discard block
 block discarded – undo
8 8
  * @license MIT
9 9
  */
10 10
 
11
- class ThreemaGateway_Helper_Emoji
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
-     */
11
+    class ThreemaGateway_Helper_Emoji
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
+         */
22 22
     public static function parseUnicode($string)
23 23
     {
24 24
         // uses json_decode as a hackish way to encode unicode strings
@@ -47,4 +47,4 @@  discard block
 block discarded – undo
47 47
         // https://regex101.com/r/aQ3eA3/1
48 48
         return preg_replace('/(\d)/', '\1\\u20e3', $string);
49 49
     }
50
- }
50
+    }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         // https://stackoverflow.com/questions/6058394/unicode-character-in-php-string
26 26
 
27 27
         // RegEx: https://regex101.com/r/yS2zX8/3
28
-        return preg_replace_callback('/(\\\\u([0-9a-fA-F]{4}))+/', function ($match) {
28
+        return preg_replace_callback('/(\\\\u([0-9a-fA-F]{4}))+/', function($match) {
29 29
             return json_decode('"' . $match[0] . '"');
30 30
         }, $string);
31 31
     }
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/Option/Status.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      * requirements are not fullfilled.
93 93
      *
94 94
      * @param  array $status     Will be filled with required statuses (sic)
95
-     * @param  array $extraError Optional other errors may be added here
95
+     * @param  string $extraError Optional other errors may be added here
96 96
      * @return bool
97 97
      */
98 98
     protected static function checkTecRequire(&$status, &$extraError)
Please login to merge, or discard this patch.
src/library/ThreemaGateway/Option/ThreemaGatewaySecret.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,6 @@
 block discarded – undo
53 53
     /**
54 54
      * Verifies the Threema Gateway Secret format.
55 55
      *
56
-     * @param string             $threemaid  Input threema ID
57 56
      * @param XenForo_DataWriter $dataWriter
58 57
      * @param string             $fieldName  Name of field/option
59 58
      *
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.