@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | return false; |
| 343 | 343 | } |
| 344 | 344 | if (null !== $this->apcuPrefix) { |
| 345 | - $file = apcu_fetch($this->apcuPrefix.$class, $hit); |
|
| 345 | + $file = apcu_fetch($this->apcuPrefix . $class, $hit); |
|
| 346 | 346 | if ($hit) { |
| 347 | 347 | return $file; |
| 348 | 348 | } |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | if (null !== $this->apcuPrefix) { |
| 359 | - apcu_add($this->apcuPrefix.$class, $file); |
|
| 359 | + apcu_add($this->apcuPrefix . $class, $file); |
|
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | if (false === $file) { |
@@ -486,7 +486,7 @@ |
||
| 486 | 486 | { |
| 487 | 487 | // Now loop through the remaining (database-based) settings. |
| 488 | 488 | $this->configVars = array_map( |
| 489 | - static function ($configVar) { |
|
| 489 | + static function($configVar) { |
|
| 490 | 490 | // We just saved the file-based settings, so skip their definitions. |
| 491 | 491 | if (!is_array($configVar) || $configVar[2] === 'file') |
| 492 | 492 | { |
@@ -275,7 +275,7 @@ |
||
| 275 | 275 | { |
| 276 | 276 | global $modSettings; |
| 277 | 277 | |
| 278 | - set_error_handler(static function () { /* ignore errors */ }); |
|
| 278 | + set_error_handler(static function() { /* ignore errors */ }); |
|
| 279 | 279 | try |
| 280 | 280 | { |
| 281 | 281 | $mySphinx = mysqli_connect(($modSettings['sphinx_searchd_server'] === 'localhost' ? '127.0.0.1' : $modSettings['sphinx_searchd_server']), '', '', '', (int) $modSettings['sphinxql_searchd_port']); |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | // no socket, then we need to open one to do much |
| 211 | 211 | if (!is_resource($this->_fp)) |
| 212 | 212 | { |
| 213 | - set_error_handler(static function () { /* ignore errors */ }); |
|
| 213 | + set_error_handler(static function() { /* ignore errors */ }); |
|
| 214 | 214 | try |
| 215 | 215 | { |
| 216 | 216 | $this->_fp = fsockopen($this->_url['host'], $this->_url['port'], $errno, $errstr, 5); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | public function emojiFromHTML($string) |
| 164 | 164 | { |
| 165 | 165 | // If there are 4byte encoded values 🄣, change those back to utf8 characters |
| 166 | - return preg_replace_callback(self::POSSIBLE_HTML_EMOJI, static function ($match) { |
|
| 166 | + return preg_replace_callback(self::POSSIBLE_HTML_EMOJI, static function($match) { |
|
| 167 | 167 | $replace = html_entity_decode($match[0], ENT_NOQUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8'); |
| 168 | 168 | |
| 169 | 169 | // The Fitzpatrick Scale modifiers are not (well) supported across all graphics sets. For now |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | return $string; |
| 265 | 265 | } |
| 266 | 266 | |
| 267 | - $result = preg_replace_callback($this->emoji_regex, function ($match) { |
|
| 267 | + $result = preg_replace_callback($this->emoji_regex, function($match) { |
|
| 268 | 268 | $hex_str = $this->unicodeCharacterToNumber($match[0]); |
| 269 | 269 | $found = $this->findEmojiByCode($hex_str); |
| 270 | 270 | |
@@ -777,7 +777,7 @@ |
||
| 777 | 777 | updateTopicStats(); |
| 778 | 778 | require_once(SUBSDIR . '/Messages.subs.php'); |
| 779 | 779 | updateMessageStats(); |
| 780 | - updateSettings(['calendar_updated' => time(),]); |
|
| 780 | + updateSettings(['calendar_updated' => time(), ]); |
|
| 781 | 781 | |
| 782 | 782 | if (!empty($affectedBoards)) |
| 783 | 783 | { |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | |
| 213 | 213 | // Show the post itself, finally! |
| 214 | 214 | echo ' |
| 215 | - <section id="msg_', $message['id'], '" data-msgid="',$message['id'], '" class="messageContent', $ignoring ? ' hide"' : '"', '>', |
|
| 215 | + <section id="msg_', $message['id'], '" data-msgid="', $message['id'], '" class="messageContent', $ignoring ? ' hide"' : '"', '>', |
|
| 216 | 216 | $message['body'], ' |
| 217 | 217 | </section> |
| 218 | 218 | <footer>'; |
@@ -230,7 +230,7 @@ |
||
| 230 | 230 | </div>'; |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | - $has_top_border =(!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled']) |
|
| 233 | + $has_top_border = (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled']) |
|
| 234 | 234 | || (!empty($message['member']['custom_fields']) && empty($options['show_no_signatures']) && $context['signature_enabled']); |
| 235 | 235 | |
| 236 | 236 | echo ' |
@@ -274,7 +274,7 @@ |
||
| 274 | 274 | global $txt; |
| 275 | 275 | |
| 276 | 276 | // Try to connect to the SMTP server... if it doesn't exist, only wait three seconds. |
| 277 | - set_error_handler(static function () { /* ignore errors */ }); |
|
| 277 | + set_error_handler(static function() { /* ignore errors */ }); |
|
| 278 | 278 | try |
| 279 | 279 | { |
| 280 | 280 | $socket = fsockopen($smtp_host, $smtp_port, $errno, $errstr, 3); |