Passed
Pull Request — development (#3789)
by Spuds
06:26
created
sources/ext/ClassLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
sources/ElkArte/SettingsForm/SettingsFormAdapter/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -486,7 +486,7 @@
 block discarded – undo
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
 				{
Please login to merge, or discard this patch.
sources/ElkArte/Search/API/Sphinxql.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
sources/ElkArte/Http/FsockFetchWebdata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
sources/ElkArte/Emoji.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	public function emojiFromHTML($string)
164 164
 	{
165 165
 		// If there are 4byte encoded values &#x1f123, 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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
sources/ElkArte/Controller/MessageIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -777,7 +777,7 @@
 block discarded – undo
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
 		{
Please login to merge, or discard this patch.
themes/default/Display.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
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>';
Please login to merge, or discard this patch.
themes/default/PersonalMessage.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
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 '
Please login to merge, or discard this patch.
sources/ElkArte/Mail/Mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.