Failed Conditions
Branch release-2.1 (74931e)
by Rick
05:07
created
other/upgrade.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3516,7 +3516,7 @@  discard block
 block discarded – undo
3516 3516
 
3517 3517
 	$regex = <<<'EOT'
3518 3518
 (\s*#\s*Make\s+sure\s+the\s+paths\s+are\s+correct\.\.\.\s+at\s+least\s+try\s+to\s+fix\s+them\.\s+)?if\s*\(\!file_exists\(\$boarddir\)\s+&&\s+file_exists\(dirname\(__FILE__\)\s+\.\s+'/agreement\.txt'\)\)\s+\$boarddir\s*\=\s*dirname\(__FILE__\);\s+if\s*\(\!file_exists\(\$sourcedir\)\s+&&\s+file_exists\(\$boarddir\s*\.\s*'/Sources'\)\)\s+\$sourcedir\s*\=\s*\$boarddir\s*\.\s*'/Sources';\s+if\s*\(\!file_exists\(\$cachedir\)\s+&&\s+file_exists\(\$boarddir\s*\.\s*'/cache'\)\)\s+\$cachedir\s*\=\s*\$boarddir\s*\.\s*'/cache';
3519
-EOT;
3519
+eot;
3520 3520
 
3521 3521
 	$replacement = <<<'EOT'
3522 3522
 # Make sure the paths are correct... at least try to fix them.
@@ -3528,7 +3528,7 @@  discard block
 block discarded – undo
3528 3528
 	$cachedir = $boarddir . '/cache';
3529 3529
 
3530 3530
 
3531
-EOT;
3531
+eot;
3532 3532
 
3533 3533
 	if (preg_match('~' . $regex . '~', $settings) && preg_match('~(#+\s*Error-Catching\s*#+)~', $settings))
3534 3534
 	{
Please login to merge, or discard this patch.
Sources/Subs-Graphics.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
419 419
 
420 420
 		if (checkImagick())
421 421
 		{
422
-			$imagick = New Imagick($destName);
422
+			$imagick = new Imagick($destName);
423 423
 			$src_width = empty($src_width) ? $imagick->getImageWidth() : $src_width;
424 424
 			$src_height = empty($src_height) ? $imagick->getImageHeight() : $src_height;
425 425
 			$dest_width = empty($max_width) ? $src_width : $max_width;
Please login to merge, or discard this patch.
Sources/Subs-Admin.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 	{
43 43
 		if (class_exists('Imagick'))
44 44
 		{
45
-			$temp = New Imagick;
45
+			$temp = new Imagick;
46 46
 			$temp2 = $temp->getVersion();
47 47
 			$im_version = $temp2['versionString'];
48 48
 			$extension_version = 'Imagick ' . phpversion('Imagick');
Please login to merge, or discard this patch.
Sources/Subs-Db-postgresql.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -669,12 +669,12 @@
 block discarded – undo
669 669
 		$where = '';
670 670
 		$count_pk = 0;
671 671
 
672
-		If ($replace_support)
672
+		if ($replace_support)
673 673
 		{
674 674
 			foreach ($columns as $columnName => $type)
675 675
 			{
676 676
 				//check pk fiel
677
-				IF (in_array($columnName, $keys))
677
+				if (in_array($columnName, $keys))
678 678
 				{
679 679
 					$key_str .= ($count_pk > 0 ? ',' : '');
680 680
 					$key_str .= $columnName;
Please login to merge, or discard this patch.
Sources/PersonalMessage.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3267,7 +3267,7 @@  discard block
 block discarded – undo
3267 3267
 		// Deleting an existing label?
3268 3268
 		elseif (isset($_POST['delete'], $_POST['delete_label']))
3269 3269
 		{
3270
-			foreach ($_POST['delete_label'] AS $label => $dummy)
3270
+			foreach ($_POST['delete_label'] as $label => $dummy)
3271 3271
 			{
3272 3272
 				unset($the_labels[$label]);
3273 3273
 				$labels_to_remove[] = $label;
@@ -3308,7 +3308,7 @@  discard block
 block discarded – undo
3308 3308
 		if (!empty($labels_to_add))
3309 3309
 		{
3310 3310
 			$inserts = array();
3311
-			foreach ($labels_to_add AS $label)
3311
+			foreach ($labels_to_add as $label)
3312 3312
 				$inserts[] = array($user_info['id'], $label);
3313 3313
 
3314 3314
 			$smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'int', 'name' => 'string-30'), $inserts, array());
@@ -3317,7 +3317,7 @@  discard block
 block discarded – undo
3317 3317
 		// Update existing labels as needed
3318 3318
 		if (!empty($label_upates))
3319 3319
 		{
3320
-			foreach ($label_updates AS $id => $name)
3320
+			foreach ($label_updates as $id => $name)
3321 3321
 			{
3322 3322
 				$smcFunc['db_query']('', '
3323 3323
 					UPDATE {db_prefix}labels
Please login to merge, or discard this patch.