@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * Returns "false" if the process should be canceled. Otherwise "true". |
| 98 | 98 | * |
| 99 | 99 | * @throws XenForo_Exception |
| 100 | - * @return bool |
|
| 100 | + * @return false|null |
|
| 101 | 101 | */ |
| 102 | 102 | protected function preProcessPending() |
| 103 | 103 | { |
@@ -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 | } |
@@ -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 | { |
@@ -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 |
@@ -349,7 +349,7 @@ |
||
| 349 | 349 | * essential! |
| 350 | 350 | * |
| 351 | 351 | * @throws XenForo_Exception |
| 352 | - * @return bool |
|
| 352 | + * @return false|null |
|
| 353 | 353 | */ |
| 354 | 354 | protected function preProcessPending() |
| 355 | 355 | { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * Returns "false" if the process should be canceled. Otherwise "true". |
| 98 | 98 | * |
| 99 | 99 | * @throws XenForo_Exception |
| 100 | - * @return bool |
|
| 100 | + * @return false|null |
|
| 101 | 101 | */ |
| 102 | 102 | protected function preProcessPending() |
| 103 | 103 | { |