Passed
Push — release-2.1 ( e31624...391b74 )
by Mathias
26:03 queued 19:58
created
Sources/Subs-Admin.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	{
42 42
 		if (class_exists('Imagick'))
43 43
 		{
44
-			$temp = New Imagick;
44
+			$temp = new Imagick;
45 45
 			$temp2 = $temp->getVersion();
46 46
 			$im_version = $temp2['versionString'];
47 47
 			$extension_version = 'Imagick ' . phpversion('Imagick');
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-Db-postgresql.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -683,7 +683,7 @@
 block discarded – undo
683 683
 		foreach ($columns as $columnName => $type)
684 684
 		{
685 685
 			//check pk fiel
686
-			IF (in_array($columnName, $keys))
686
+			if (in_array($columnName, $keys))
687 687
 			{
688 688
 				$key_str .= ($count_pk > 0 ? ',' : '');
689 689
 				$key_str .= $columnName;
Please login to merge, or discard this patch.
other/upgrade.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1121,7 +1121,7 @@  discard block
 block discarded – undo
1121 1121
 	// An array already?
1122 1122
 	elseif (is_array($modSettings['attachmentUploadDir']))
1123 1123
 	{
1124
-		foreach($modSettings['attachmentUploadDir'] AS $dir)
1124
+		foreach($modSettings['attachmentUploadDir'] as $dir)
1125 1125
 			if (!empty($dir) && !is_dir($dir))
1126 1126
 				$attdr_problem_found = true;
1127 1127
 	}
@@ -1130,7 +1130,7 @@  discard block
 block discarded – undo
1130 1130
 	{
1131 1131
 		if (is_array($ser_test))
1132 1132
 		{
1133
-			foreach($ser_test AS $dir)
1133
+			foreach($ser_test as $dir)
1134 1134
 			{
1135 1135
 				if (!empty($dir) && !is_dir($dir))
1136 1136
 					$attdr_problem_found = true;
@@ -1147,7 +1147,7 @@  discard block
 block discarded – undo
1147 1147
 	{
1148 1148
 		if (is_array($json_test))
1149 1149
 		{
1150
-			foreach($json_test AS $dir)
1150
+			foreach($json_test as $dir)
1151 1151
 			{
1152 1152
 				if (!is_dir($dir))
1153 1153
 					$attdr_problem_found = true;
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
@@ -3309,7 +3309,7 @@  discard block
 block discarded – undo
3309 3309
 		// Deleting an existing label?
3310 3310
 		elseif (isset($_POST['delete'], $_POST['delete_label']))
3311 3311
 		{
3312
-			foreach ($_POST['delete_label'] AS $label => $dummy)
3312
+			foreach ($_POST['delete_label'] as $label => $dummy)
3313 3313
 			{
3314 3314
 				if (array_key_exists($label, $the_labels))
3315 3315
 				{
@@ -3353,7 +3353,7 @@  discard block
 block discarded – undo
3353 3353
 		if (!empty($labels_to_add))
3354 3354
 		{
3355 3355
 			$inserts = array();
3356
-			foreach ($labels_to_add AS $label)
3356
+			foreach ($labels_to_add as $label)
3357 3357
 				$inserts[] = array($user_info['id'], $label);
3358 3358
 
3359 3359
 			$smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'int', 'name' => 'string-30'), $inserts, array());
@@ -3362,7 +3362,7 @@  discard block
 block discarded – undo
3362 3362
 		// Update existing labels as needed
3363 3363
 		if (!empty($label_updates))
3364 3364
 		{
3365
-			foreach ($label_updates AS $id => $name)
3365
+			foreach ($label_updates as $id => $name)
3366 3366
 			{
3367 3367
 				$smcFunc['db_query']('', '
3368 3368
 					UPDATE {db_prefix}pm_labels
Please login to merge, or discard this patch.
other/update_timezones.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 
370 370
 				if (preg_match('~\n\h+\K\'' . $new_tzid . '\'(?=\s+=>\s+\'\w+\',)~', $file_contents))
371 371
 				{
372
-					echo "Renamed $old_tzid to $new_tzid in get_tzid_metazones().\n\n";
372
+					echo "renamed $old_tzid to $new_tzid in get_tzid_metazones().\n\n";
373 373
 
374 374
 					$this->files_updated = true;
375 375
 				}
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 
383 383
 				if (preg_match('~\n\h+\K\'' . $new_tzid . '\'(?=,\n)~', $file_contents))
384 384
 				{
385
-					echo "Renamed $old_tzid to $new_tzid in get_sorted_tzids_for_country().\n\n";
385
+					echo "renamed $old_tzid to $new_tzid in get_sorted_tzids_for_country().\n\n";
386 386
 
387 387
 					$this->files_updated = true;
388 388
 				}
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 
425 425
 					if (preg_match('~\n\h+\K\'' . $tzid . '\'(?=,\n)~', $file_contents))
426 426
 					{
427
-						echo "Added $tzid to $cc in get_sorted_tzids_for_country().\n\n";
427
+						echo "added $tzid to $cc in get_sorted_tzids_for_country().\n\n";
428 428
 
429 429
 						$this->files_updated = true;
430 430
 					}
Please login to merge, or discard this patch.