@@ -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 | { |
@@ -25,7 +25,7 @@ |
||
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 | } |
@@ -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 | /** |
@@ -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 | { |
@@ -604,7 +604,7 @@ |
||
604 | 604 | * Groups an array by using the value of a specific index in it. |
605 | 605 | * |
606 | 606 | * @param array $array the array, which is sued as the base |
607 | - * @param string|int $indexKey the value of the key, which should be used |
|
607 | + * @param string $indexKey the value of the key, which should be used |
|
608 | 608 | * for indexing |
609 | 609 | * @param bool $ignoreIndex Set to true to ignore multiple values in |
610 | 610 | * $array. If activated only the last key of |