Passed
Pull Request — development (#3792)
by Spuds
06:41
created
SSI.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
 			'num_recent' => $num_recent,
498 498
 		)
499 499
 	)->fetch_callback(
500
-		static function ($row) use (&$topics) {
500
+		static function($row) use (&$topics) {
501 501
 			$topics[$row['id_topic']] = $row;
502 502
 		}
503 503
 	);
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
 				'topic_list' => $topic_list
529 529
 			)
530 530
 		)->fetch_callback(
531
-			static function ($row) use (&$topics) {
531
+			static function($row) use (&$topics) {
532 532
 				$topics[$row['id_topic']] += $row;
533 533
 			}
534 534
 		);
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
 			'current_poll' => $row['id_poll'],
1286 1286
 		)
1287 1287
 	)->fetch_callback(
1288
-		static function ($rowChoice) use (&$options) {
1288
+		static function($rowChoice) use (&$options) {
1289 1289
 			$rowChoice['label'] = censor($rowChoice['label']);
1290 1290
 			$options[$rowChoice['id_choice']] = array($rowChoice['label'], $rowChoice['votes']);
1291 1291
 		}
@@ -2100,7 +2100,7 @@  discard block
 block discarded – undo
2100 2100
 			'is_approved' => 1,
2101 2101
 		)
2102 2102
 	)->fetch_callback(
2103
-		static function ($row) use (&$attachments, $scripturl, $modSettings) {
2103
+		static function($row) use (&$attachments, $scripturl, $modSettings) {
2104 2104
 			// We have something.
2105 2105
 			$filename = preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', htmlspecialchars($row['filename'], ENT_COMPAT, 'UTF-8'));
2106 2106
 
Please login to merge, or discard this patch.
themes/default/Register.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
 			if ($field['show_reg'] > 1)
235 235
 			{
236 236
 				echo '
237
-					<div class="form_field">', preg_replace_callback('~<(input|select|textarea) ~', static function ($matches) {
237
+					<div class="form_field">', preg_replace_callback('~<(input|select|textarea) ~', static function($matches) {
238 238
 					global $context;
239 239
 
240 240
 					return '<' . $matches[1] . ' tabindex="' . ($context['tabindex']++) . '"';
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Giphy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,10 +159,10 @@  discard block
 block discarded – undo
159 159
 			return $this->sendResults([], []);
160 160
 		}
161 161
 
162
-		$images =  $this->prepareImageResults($result);
162
+		$images = $this->prepareImageResults($result);
163 163
 		$result['pagination']['limit'] = $this->config['limit'];
164 164
 
165
-		return $this->sendResults($images,$result);
165
+		return $this->sendResults($images, $result);
166 166
 	}
167 167
 
168 168
 	/**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	{
203 203
 		$result = [];
204 204
 		$params = ['api_key' => $this->apiKey] + $params;
205
-		$path .= '?' . http_build_query($params, '','&');
205
+		$path .= '?' . http_build_query($params, '', '&');
206 206
 
207 207
 		require_once(SUBSDIR . '/Package.subs.php');
208 208
 		$body = fetch_web_data($this->baseApiUrl . $path);
Please login to merge, or discard this patch.
sources/ElkArte/UserNotificationIntegrate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
 		// $hook, $function, $file
39 39
 		return [
40
-			['integrate_load_theme', '\\ElkArte\\UserNotificationIntegrate::integrate_load_theme'],];
40
+			['integrate_load_theme', '\\ElkArte\\UserNotificationIntegrate::integrate_load_theme'], ];
41 41
 	}
42 42
 
43 43
 	/**
Please login to merge, or discard this patch.
sources/subs/ManageFeatures.subs.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 			'admin_group' => 11,
42 42
 		)
43 43
 	)->fetch_callback(
44
-		function ($row) use (&$members) {
44
+		function($row) use (&$members) {
45 45
 			$members[$row['id_member']]['id_member'] = $row['id_member'];
46 46
 			$members[$row['id_member']]['signature'] = $row['signature'];
47 47
 		}
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 				'items_per_page' => $items_per_page,
403 403
 			)
404 404
 		)->fetch_callback(
405
-			function ($row) use (&$list) {
405
+			function($row) use (&$list) {
406 406
 				$list[$row['id_field']] = $row;
407 407
 			}
408 408
 		);
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 			'current_field' => $id_field,
455 455
 		)
456 456
 	)->fetch_callback(
457
-		function ($row) use (&$field) {
457
+		function($row) use (&$field) {
458 458
 			$field = array(
459 459
 				'name' => $row['field_name'],
460 460
 				'desc' => $row['field_desc'],
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 			'not_admin_only' => 3,
753 753
 		)
754 754
 	)->fetch_callback(
755
-		function ($row) {
755
+		function($row) {
756 756
 			return array(
757 757
 				'colname' => strtr($row['col_name'], array('|' => '', ';' => '')),
758 758
 				'title' => strtr($row['field_name'], array('|' => '', ';' => '')),
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
 		FROM {db_prefix}custom_fields',
783 783
 		array()
784 784
 	)->fetch_callback(
785
-		function ($row) use (&$custom_field_titles) {
785
+		function($row) use (&$custom_field_titles) {
786 786
 			$custom_field_titles['customfield_' . $row['col_name']] = array(
787 787
 				'title' => $row['field_name'],
788 788
 				'parse_bbc' => $row['bbc'],
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 
898 898
 	foreach ($iterator as $file)
899 899
 	{
900
-		$fileName =  $file->getBasename('.php');
900
+		$fileName = $file->getBasename('.php');
901 901
 		$className = $namespace . $fileName;
902 902
 
903 903
 		if (!class_exists($className))
Please login to merge, or discard this patch.
sources/ElkArte/Attachments/TemporaryAttachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
 		else
164 164
 		{
165 165
 			// Move the file to the attachment folder with a temp name for now.
166
-			set_error_handler(static function () { /* ignore warnings */ });
166
+			set_error_handler(static function() { /* ignore warnings */ });
167 167
 			try
168 168
 			{
169 169
 				$result = move_uploaded_file($this->data['tmp_name'], $destName);
Please login to merge, or discard this patch.
sources/ElkArte/Attachments/TemporaryAttachmentChunk.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 		$in = $_FILES['attachment']['tmp_name'][0];
348 348
 
349 349
 		// Move the file to the attachment folder with a temp name for now.
350
-		set_error_handler(static function () { /* ignore warnings */ });
350
+		set_error_handler(static function() { /* ignore warnings */ });
351 351
 		try
352 352
 		{
353 353
 			$result = move_uploaded_file($in, $out);
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	 */
404 404
 	public function action_combineChunks()
405 405
 	{
406
-		[$uuid, , $totalChunkCount] = $this->extractPostData();
406
+		[$uuid,, $totalChunkCount] = $this->extractPostData();
407 407
 		$user_ident = $this->getUserIdentifier();
408 408
 		$in = $this->getPathWithChunks($user_ident, $uuid);
409 409
 
Please login to merge, or discard this patch.
sources/ElkArte/Modules/Drafts/Post.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -396,7 +396,9 @@
 block discarded – undo
396 396
 		// @todo handle topic=0 board <> 0 indicating a new topic, we need a new sub to load those drafts.
397 397
 		$board = $req->getPost('board', 'intval', 0);
398 398
 		if (empty($topic) && !empty($board))
399
-			return false;
399
+		{
400
+					return false;
401
+		}
400 402
 
401 403
 		// Validate the request
402 404
 		if (!empty($topic) && $this->getApi() !== false && !$post_errors->hasError('session_timeout'))
Please login to merge, or discard this patch.
themes/default/Emailmoderator.template.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,13 @@
 block discarded – undo
19 19
 {
20 20
 	global $context, $txt;
21 21
 
22
-	 if (empty($context['sub_template'])) {
22
+	 if (empty($context['sub_template']))
23
+	 {
23 24
 		 return;
24 25
 	 }
25 26
 
26
-	 if ($context['sub_template'] !== 'report') {
27
+	 if ($context['sub_template'] !== 'report')
28
+	 {
27 29
 		 return;
28 30
 	 }
29 31
 
Please login to merge, or discard this patch.