Completed
Push — release-2.1 ( 3c29ac...c0ce3f )
by Mathias
07:06
created
Sources/minify/src/CSS.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             }
84 84
 
85 85
             // add to top
86
-            $content = implode('', $matches[0]).$content;
86
+            $content = implode('', $matches[0]) . $content;
87 87
         };
88 88
 
89 89
         return $content;
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         // loop the matches
209 209
         foreach ($matches as $match) {
210 210
             // get the path for the file that will be imported
211
-            $importPath = dirname($source).'/'.$match['path'];
211
+            $importPath = dirname($source) . '/' . $match['path'];
212 212
 
213 213
             // only replace the import with the content if we can grab the
214 214
             // content of the file
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 // check if current file was not imported previously in the same
217 217
                 // import chain.
218 218
                 if (in_array($importPath, $parents)) {
219
-                    throw new FileImportException('Failed to import file "'.$importPath.'": circular reference detected.');
219
+                    throw new FileImportException('Failed to import file "' . $importPath . '": circular reference detected.');
220 220
                 }
221 221
 
222 222
                 // grab referenced file & minify it (which may include importing
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
                 // check if this is only valid for certain media
228 228
                 if (!empty($match['media'])) {
229
-                    $importContent = '@media '.$match['media'].'{'.$importContent.'}';
229
+                    $importContent = '@media ' . $match['media'] . '{' . $importContent . '}';
230 230
                 }
231 231
 
232 232
                 // add to replacement array
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     protected function importFiles($source, $content)
256 256
     {
257 257
         $extensions = array_keys($this->importExtensions);
258
-        $regex = '/url\((["\']?)((?!["\']?data:).*?\.('.implode('|', $extensions).'))\\1\)/i';
258
+        $regex = '/url\((["\']?)((?!["\']?data:).*?\.(' . implode('|', $extensions) . '))\\1\)/i';
259 259
         if ($extensions && preg_match_all($regex, $content, $matches, PREG_SET_ORDER)) {
260 260
             $search = array();
261 261
             $replace = array();
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             foreach ($matches as $match) {
265 265
                 // get the path for the file that will be imported
266 266
                 $path = $match[2];
267
-                $path = dirname($source).'/'.$path;
267
+                $path = dirname($source) . '/' . $path;
268 268
                 $extension = $match[3];
269 269
 
270 270
                 // only replace the import with the content if we're able to get
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 
277 277
                     // build replacement
278 278
                     $search[] = $match[0];
279
-                    $replace[] = 'url('.$this->importExtensions[$extension].';base64,'.$importContent.')';
279
+                    $replace[] = 'url(' . $this->importExtensions[$extension] . ';base64,' . $importContent . ')';
280 280
                 }
281 281
             }
282 282
 
@@ -463,9 +463,9 @@  discard block
 block discarded – undo
463 463
             // build replacement
464 464
             $search[] = $match[0];
465 465
             if ($type == 'url') {
466
-                $replace[] = 'url('.$url.')';
466
+                $replace[] = 'url(' . $url . ')';
467 467
             } elseif ($type == 'import') {
468
-                $replace[] = '@import "'.$url.'"';
468
+                $replace[] = '@import "' . $url . '"';
469 469
             }
470 470
         }
471 471
 
@@ -513,19 +513,19 @@  discard block
 block discarded – undo
513 513
         // practice, Webkit (especially Safari) seems to stumble over at least
514 514
         // 0%, potentially other units as well. Only stripping 'px' for now.
515 515
         // @see https://github.com/matthiasmullie/minify/issues/60
516
-        $content = preg_replace('/'.$before.'(-?0*(\.0+)?)(?<=0)px'.$after.'/', '\\1', $content);
516
+        $content = preg_replace('/' . $before . '(-?0*(\.0+)?)(?<=0)px' . $after . '/', '\\1', $content);
517 517
 
518 518
         // strip 0-digits (.0 -> 0)
519
-        $content = preg_replace('/'.$before.'\.0+'.$units.'?'.$after.'/', '0\\1', $content);
519
+        $content = preg_replace('/' . $before . '\.0+' . $units . '?' . $after . '/', '0\\1', $content);
520 520
         // strip trailing 0: 50.10 -> 50.1, 50.10px -> 50.1px
521
-        $content = preg_replace('/'.$before.'(-?[0-9]+\.[0-9]+)0+'.$units.'?'.$after.'/', '\\1\\2', $content);
521
+        $content = preg_replace('/' . $before . '(-?[0-9]+\.[0-9]+)0+' . $units . '?' . $after . '/', '\\1\\2', $content);
522 522
         // strip trailing 0: 50.00 -> 50, 50.00px -> 50px
523
-        $content = preg_replace('/'.$before.'(-?[0-9]+)\.0+'.$units.'?'.$after.'/', '\\1\\2', $content);
523
+        $content = preg_replace('/' . $before . '(-?[0-9]+)\.0+' . $units . '?' . $after . '/', '\\1\\2', $content);
524 524
         // strip leading 0: 0.1 -> .1, 01.1 -> 1.1
525
-        $content = preg_replace('/'.$before.'(-?)0+([0-9]*\.[0-9]+)'.$units.'?'.$after.'/', '\\1\\2\\3', $content);
525
+        $content = preg_replace('/' . $before . '(-?)0+([0-9]*\.[0-9]+)' . $units . '?' . $after . '/', '\\1\\2\\3', $content);
526 526
 
527 527
         // strip negative zeroes (-0 -> 0) & truncate zeroes (00 -> 0)
528
-        $content = preg_replace('/'.$before.'-?0+'.$units.'?'.$after.'/', '0\\1', $content);
528
+        $content = preg_replace('/' . $before . '-?0+' . $units . '?' . $after . '/', '0\\1', $content);
529 529
 
530 530
         return $content;
531 531
     }
Please login to merge, or discard this patch.
Sources/minify/src/Minify.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     {
317 317
         // PHP only supports $this inside anonymous functions since 5.4
318 318
         $minifier = $this;
319
-        $callback = function ($match) use ($minifier) {
319
+        $callback = function($match) use ($minifier) {
320 320
             // check the second index here, because the first always contains a quote
321 321
             if (!$match[2]) {
322 322
                 /*
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
             }
330 330
 
331 331
             $count = count($minifier->extracted);
332
-            $placeholder = $match[1].$count.$match[1];
333
-            $minifier->extracted[$placeholder] = $match[1].$match[2].$match[1];
332
+            $placeholder = $match[1] . $count . $match[1];
333
+            $minifier->extracted[$placeholder] = $match[1] . $match[2] . $match[1];
334 334
 
335 335
             return $placeholder;
336 336
         };
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
          * considered as escape-char (times 2) and to get it in the regex,
348 348
          * escaped (times 2)
349 349
          */
350
-        $this->registerPattern('/(['.$chars.'])(.*?(?<!\\\\)(\\\\\\\\)*+)\\1/s', $callback);
350
+        $this->registerPattern('/([' . $chars . '])(.*?(?<!\\\\)(\\\\\\\\)*+)\\1/s', $callback);
351 351
     }
352 352
 
353 353
     /**
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     protected function openFileForWriting($path)
398 398
     {
399 399
         if (($handler = @fopen($path, 'w')) === false) {
400
-            throw new IOException('The file "'.$path.'" could not be opened for writing. Check if PHP has enough permissions.');
400
+            throw new IOException('The file "' . $path . '" could not be opened for writing. Check if PHP has enough permissions.');
401 401
         }
402 402
 
403 403
         return $handler;
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     protected function writeToFile($handler, $content, $path = '')
416 416
     {
417 417
         if (($result = @fwrite($handler, $content)) === false || ($result < strlen($content))) {
418
-            throw new IOException('The file "'.$path.'" could not be written to. Check your disk space and file permissions.');
418
+            throw new IOException('The file "' . $path . '" could not be written to. Check your disk space and file permissions.');
419 419
         }
420 420
     }
421 421
 }
Please login to merge, or discard this patch.
Sources/SplitTopics.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 		)
361 361
 	);
362 362
 	$context['messages'] = array();
363
-	for ($counter = 0; $row = $smcFunc['db_fetch_assoc']($request); $counter ++)
363
+	for ($counter = 0; $row = $smcFunc['db_fetch_assoc']($request); $counter++)
364 364
 	{
365 365
 		censorText($row['subject']);
366 366
 		censorText($row['body']);
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 			)
401 401
 		);
402 402
 		$context['messages'] = array();
403
-		for ($counter = 0; $row = $smcFunc['db_fetch_assoc']($request); $counter ++)
403
+		for ($counter = 0; $row = $smcFunc['db_fetch_assoc']($request); $counter++)
404 404
 		{
405 405
 			censorText($row['subject']);
406 406
 			censorText($row['body']);
@@ -1098,7 +1098,7 @@  discard block
 block discarded – undo
1098 1098
 			$firstTopic = $row['id_topic'];
1099 1099
 
1100 1100
 		// Lowest topic id gets selected as surviving topic id. We need to store this board so we can adjust the topic count (This one will not have a redirect topic)
1101
-		if($row['id_topic'] < $lowestTopicId || empty($lowestTopicId) )
1101
+		if ($row['id_topic'] < $lowestTopicId || empty($lowestTopicId))
1102 1102
 		{
1103 1103
 			$lowestTopicId = $row['id_topic'];
1104 1104
 			$lowestTopicBoard = $row['id_board'];
@@ -1404,7 +1404,7 @@  discard block
 block discarded – undo
1404 1404
 			}
1405 1405
 
1406 1406
 			// Update subject search index
1407
-			updateStats('subject',$this_old_topic,$redirect_subject);
1407
+			updateStats('subject', $this_old_topic, $redirect_subject);
1408 1408
 		}
1409 1409
 	}
1410 1410
 
Please login to merge, or discard this patch.
Sources/Profile-View.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 	// Prepare the pagination vars.
369 369
 	$maxIndex = 10;
370 370
 	$start = (int) isset($_REQUEST['start']) ? $_REQUEST['start'] : 0;
371
-	$count =  alert_count($memID);
371
+	$count = alert_count($memID);
372 372
 
373 373
 	// Get the alerts.
374 374
 	$context['alerts'] = fetch_alerts($memID, true, false, array('start' => $start, 'maxIndex' => $maxIndex));
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
 			),
834 834
 		),
835 835
 		'data_check' => array(
836
-			'class' => function ($data)
836
+			'class' => function($data)
837 837
 			{
838 838
 				return $data['approved'] ? '' : 'approvebg';
839 839
 			}
@@ -1536,7 +1536,7 @@  discard block
 block discarded – undo
1536 1536
 				),
1537 1537
 				'data' => array(
1538 1538
 					'sprintf' => array(
1539
-						'format' => '<a href="' . $scripturl . '?action=profile;area=tracking;sa=ip;searchip=%1$s;u=' . $memID. '">%1$s</a>',
1539
+						'format' => '<a href="' . $scripturl . '?action=profile;area=tracking;sa=ip;searchip=%1$s;u=' . $memID . '">%1$s</a>',
1540 1540
 						'params' => array(
1541 1541
 							'ip' => false,
1542 1542
 						),
Please login to merge, or discard this patch.
Sources/Packages.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -531,14 +531,14 @@  discard block
 block discarded – undo
531 531
 
532 532
 			$thisAction = array(
533 533
 				'type' => $action['reverse'] ? $txt['execute_hook_remove'] : $txt['execute_hook_add'],
534
-				'action' => sprintf($txt['execute_hook_action'. ($action['reverse'] ? '_inverse' : '')],  $smcFunc['htmlspecialchars']($action['hook'])),
534
+				'action' => sprintf($txt['execute_hook_action' . ($action['reverse'] ? '_inverse' : '')], $smcFunc['htmlspecialchars']($action['hook'])),
535 535
 			);
536 536
 		}
537 537
 		elseif ($action['type'] == 'credits')
538 538
 		{
539 539
 			$thisAction = array(
540 540
 				'type' => $txt['execute_credits_add'],
541
-				'action' => sprintf($txt['execute_credits_action'],  $smcFunc['htmlspecialchars']($action['title'])),
541
+				'action' => sprintf($txt['execute_credits_action'], $smcFunc['htmlspecialchars']($action['title'])),
542 542
 			);
543 543
 		}
544 544
 		elseif ($action['type'] == 'requires')
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
 			if ($context['uninstalling'])
655 655
 				$file = in_array($action['type'], array('remove-dir', 'remove-file')) ? $action['filename'] : $packagesdir . '/temp/' . $context['base_path'] . $action['filename'];
656 656
 			else
657
-				$file =  $packagesdir . '/temp/' . $context['base_path'] . $action['filename'];
657
+				$file = $packagesdir . '/temp/' . $context['base_path'] . $action['filename'];
658 658
 		}
659 659
 
660 660
 		// Don't fail if a file/directory we're trying to create doesn't exist...
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 		$context['ftp_needed'] = !empty($ftp_status['files']['notwritable']) && !empty($context['package_ftp']);
759 759
 	}
760 760
 
761
-	$context['post_url'] = $scripturl .'?action=admin;area=packages;sa=' . ($context['uninstalling'] ? 'uninstall' : 'install') . ($context['ftp_needed'] ? '' : '2') . ';package=' . $context['filename'] . ';pid=' . $context['install_id'];
761
+	$context['post_url'] = $scripturl . '?action=admin;area=packages;sa=' . ($context['uninstalling'] ? 'uninstall' : 'install') . ($context['ftp_needed'] ? '' : '2') . ';package=' . $context['filename'] . ';pid=' . $context['install_id'];
762 762
 	checkSubmitOnce('register');
763 763
 }
764 764
 
@@ -1180,7 +1180,7 @@  discard block
 block discarded – undo
1180 1180
 				'{db_prefix}log_packages',
1181 1181
 				array(
1182 1182
 					'filename' => 'string', 'name' => 'string', 'package_id' => 'string', 'version' => 'string',
1183
-					'id_member_installed' => 'int', 'member_installed' => 'string','time_installed' => 'int',
1183
+					'id_member_installed' => 'int', 'member_installed' => 'string', 'time_installed' => 'int',
1184 1184
 					'install_state' => 'int', 'failed_steps' => 'string', 'themes_installed' => 'string',
1185 1185
 					'member_removed' => 'int', 'db_changes' => 'string', 'credits' => 'string',
1186 1186
 				),
@@ -1383,7 +1383,7 @@  discard block
 block discarded – undo
1383 1383
 						'style' => 'width: 40px;',
1384 1384
 					),
1385 1385
 					'data' => array(
1386
-						'function' => function ($package_md5) use ($type, &$context)
1386
+						'function' => function($package_md5) use ($type, &$context)
1387 1387
 						{
1388 1388
 							if (isset($context['available_' . $type . ''][$package_md5]))
1389 1389
 								return $context['available_' . $type . ''][$package_md5]['sort_id'];
@@ -1400,7 +1400,7 @@  discard block
 block discarded – undo
1400 1400
 						'style' => 'width: 25%;',
1401 1401
 					),
1402 1402
 					'data' => array(
1403
-						'function' => function ($package_md5) use ($type, &$context)
1403
+						'function' => function($package_md5) use ($type, &$context)
1404 1404
 						{
1405 1405
 							if (isset($context['available_' . $type . ''][$package_md5]))
1406 1406
 								return $context['available_' . $type . ''][$package_md5]['name'];
@@ -1416,7 +1416,7 @@  discard block
 block discarded – undo
1416 1416
 						'value' => $txt['mod_version'],
1417 1417
 					),
1418 1418
 					'data' => array(
1419
-						'function' => function ($package_md5) use ($type, &$context)
1419
+						'function' => function($package_md5) use ($type, &$context)
1420 1420
 						{
1421 1421
 							if (isset($context['available_' . $type . ''][$package_md5]))
1422 1422
 								return $context['available_' . $type . ''][$package_md5]['version'];
@@ -1432,7 +1432,7 @@  discard block
 block discarded – undo
1432 1432
 						'value' => $txt['mod_installed_time'],
1433 1433
 					),
1434 1434
 					'data' => array(
1435
-						'function' => function ($package_md5) use ($type, $txt, &$context)
1435
+						'function' => function($package_md5) use ($type, $txt, &$context)
1436 1436
 						{
1437 1437
 							if (isset($context['available_' . $type . ''][$package_md5]))
1438 1438
 								return !empty($context['available_' . $type . ''][$package_md5]['time_installed']) ? timeformat($context['available_' . $type . ''][$package_md5]['time_installed']) : $txt['not_applicable'];
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
 						'value' => '',
1450 1450
 					),
1451 1451
 					'data' => array(
1452
-						'function' => function ($package_md5) use ($type, &$context, $scripturl, $txt)
1452
+						'function' => function($package_md5) use ($type, &$context, $scripturl, $txt)
1453 1453
 						{
1454 1454
 							if (!isset($context['available_' . $type . ''][$package_md5]))
1455 1455
 								return '';
@@ -1734,7 +1734,7 @@  discard block
 block discarded – undo
1734 1734
 				{
1735 1735
 					$sort_id['modification']++;
1736 1736
 					$sort_id['mod']++;
1737
-					$packages['modification'][strtolower($packageInfo[$sort]) .  '_' . $sort_id['mod']] = md5($package);
1737
+					$packages['modification'][strtolower($packageInfo[$sort]) . '_' . $sort_id['mod']] = md5($package);
1738 1738
 					$context['available_modification'][md5($package)] = $packageInfo;
1739 1739
 				}
1740 1740
 				// Avatar package.
Please login to merge, or discard this patch.
Sources/Groups.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 					'value' => $txt['name'],
97 97
 				),
98 98
 				'data' => array(
99
-					'function' => function ($rowData) use ($scripturl)
99
+					'function' => function($rowData) use ($scripturl)
100 100
 					{
101 101
 						// Since the moderator group has no explicit members, no link is needed.
102 102
 						if ($rowData['id_group'] == 3)
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 					'value' => $txt['moderators'],
147 147
 				),
148 148
 				'data' => array(
149
-					'function' => function ($group) use ($txt)
149
+					'function' => function($group) use ($txt)
150 150
 					{
151 151
 						return empty($group['moderators']) ? '<em>' . $txt['membergroups_new_copy_none'] . '</em>' : implode(', ', $group['moderators']);
152 152
 					},
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 					'value' => $txt['membergroups_members_top'],
158 158
 				),
159 159
 				'data' => array(
160
-					'function' => function ($rowData) use ($txt)
160
+					'function' => function($rowData) use ($txt)
161 161
 					{
162 162
 						// No explicit members for the moderator group.
163 163
 						return $rowData['id_group'] == 3 ? $txt['membergroups_guests_na'] : comma_format($rowData['num_members']);
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
 	while ($row = $smcFunc['db_fetch_assoc']($request))
746 746
 	{
747 747
 		if (empty($row['reason']))
748
-			$reason = '<em>(' . $txt['mc_groupr_no_reason'] .  ')</em>';
748
+			$reason = '<em>(' . $txt['mc_groupr_no_reason'] . ')</em>';
749 749
 		else
750 750
 			$reason = censorText($row['reason']);
751 751
 
Please login to merge, or discard this patch.
Sources/LogInOut.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,19 +99,19 @@
 block discarded – undo
99 99
 	{
100 100
 		if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;i:\d{1,7};i:1;s:(0|128):"([a-fA-F0-9]{128})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~', $_COOKIE[$cookiename]) === 1)
101 101
 		{
102
-			list (, , $timeout) = smf_json_decode($_COOKIE[$cookiename], true);
102
+			list (,, $timeout) = smf_json_decode($_COOKIE[$cookiename], true);
103 103
 
104 104
 			// That didn't work... Maybe it's using serialize?
105 105
 			if (is_null($timeout))
106
-				list (, , $timeout) = safe_unserialize($_COOKIE[$cookiename]);
106
+				list (,, $timeout) = safe_unserialize($_COOKIE[$cookiename]);
107 107
 		}
108 108
 		elseif (isset($_SESSION['login_' . $cookiename]))
109 109
 		{
110
-			list (, , $timeout) = smf_json_decode($_SESSION['login_' . $cookiename]);
110
+			list (,, $timeout) = smf_json_decode($_SESSION['login_' . $cookiename]);
111 111
 
112 112
 			// Try for old format
113 113
 			if (is_null($timeout))
114
-				list (, , $timeout) = safe_unserialize($_SESSION['login_' . $cookiename]);
114
+				list (,, $timeout) = safe_unserialize($_SESSION['login_' . $cookiename]);
115 115
 		}
116 116
 		else
117 117
 			trigger_error('Login2(): Cannot be logged in without a session or cookie', E_USER_ERROR);
Please login to merge, or discard this patch.
Sources/Subs-BoardIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 					'new' => false,
108 108
 					'css_class' => '',
109 109
 				);
110
-				$categories[$row_board['id_cat']]['link'] = '<a id="c' . $row_board['id_cat'] . '"></a>' . (!$context['user']['is_guest'] ? '<a href="' . $scripturl . '?action=unread;c='. $row_board['id_cat'] . '" title="' . sprintf($txt['new_posts_in_category'], strip_tags($row_board['cat_name'])) . '">' . $row_board['cat_name'] . '</a>' : $row_board['cat_name']);
110
+				$categories[$row_board['id_cat']]['link'] = '<a id="c' . $row_board['id_cat'] . '"></a>' . (!$context['user']['is_guest'] ? '<a href="' . $scripturl . '?action=unread;c=' . $row_board['id_cat'] . '" title="' . sprintf($txt['new_posts_in_category'], strip_tags($row_board['cat_name'])) . '">' . $row_board['cat_name'] . '</a>' : $row_board['cat_name']);
111 111
 			}
112 112
 
113 113
 			// If this board has new posts in it (and isn't the recycle bin!) then the category is new.
Please login to merge, or discard this patch.
Sources/Subs-Themes.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 	);
55 55
 
56 56
 	// Make our known/enable themes a little easier to work with.
57
-	$knownThemes = !empty($modSettings['knownThemes']) ? explode(',',$modSettings['knownThemes']) : array();
58
-	$enableThemes = !empty($modSettings['enableThemes']) ? explode(',',$modSettings['enableThemes']) : array();
57
+	$knownThemes = !empty($modSettings['knownThemes']) ? explode(',', $modSettings['knownThemes']) : array();
58
+	$enableThemes = !empty($modSettings['enableThemes']) ? explode(',', $modSettings['enableThemes']) : array();
59 59
 
60 60
 	$request = $smcFunc['db_query']('', '
61 61
 		SELECT id_theme, variable, value
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	global $modSettings, $context, $smcFunc;
103 103
 
104 104
 	// Make our known/enable themes a little easier to work with.
105
-	$knownThemes = !empty($modSettings['knownThemes']) ? explode(',',$modSettings['knownThemes']) : array();
106
-	$enableThemes = !empty($modSettings['enableThemes']) ? explode(',',$modSettings['enableThemes']) : array();
105
+	$knownThemes = !empty($modSettings['knownThemes']) ? explode(',', $modSettings['knownThemes']) : array();
106
+	$enableThemes = !empty($modSettings['enableThemes']) ? explode(',', $modSettings['enableThemes']) : array();
107 107
 
108 108
 	// List of all possible themes values.
109 109
 	$themeValues = array(
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 				'no_member' => 0,
285 285
 				'name' => 'name',
286 286
 				'version' => 'version',
287
-				'name_value' => '%'. $context['to_install']['name'] .'%',
287
+				'name_value' => '%' . $context['to_install']['name'] . '%',
288 288
 			)
289 289
 		);
290 290
 
@@ -439,11 +439,11 @@  discard block
 block discarded – undo
439 439
 		foreach ($objects as $object)
440 440
 			if ($object != '.' && $object != '..')
441 441
 			{
442
-				if (filetype($path .'/'. $object) == 'dir')
443
-					remove_dir($path .'/'.$object);
442
+				if (filetype($path . '/' . $object) == 'dir')
443
+					remove_dir($path . '/' . $object);
444 444
 
445 445
 				else
446
-					unlink($path .'/'. $object);
446
+					unlink($path . '/' . $object);
447 447
 			}
448 448
 	}
449 449
 
Please login to merge, or discard this patch.