Passed
Push — release-2.1 ( 908430...ab1855 )
by Mathias
11:01 queued 11s
created
other/install.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 				return false;
91 91
 		},
92 92
 		'utf8_version' => '8.0',
93
-		'utf8_version_check' => function (){
93
+		'utf8_version_check' => function() {
94 94
 			$request = pg_query('SELECT version()');
95 95
 			list ($version) = pg_fetch_row($request);
96 96
 			list($pgl, $version) = explode(' ', $version);
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
 	$incontext['continue'] = 1;
982 982
 
983 983
 	// Check Postgres setting
984
-	if ( $db_type === 'postgresql')
984
+	if ($db_type === 'postgresql')
985 985
 	{
986 986
 		load_database();
987 987
 		$result = $smcFunc['db_query']('', '
Please login to merge, or discard this patch.
other/upgrade.php 1 patch
Spacing   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 		$to = explode('/', $lang_dir);
547 547
 		$relPath = $to;
548 548
 
549
-		foreach($from as $depth => $dir)
549
+		foreach ($from as $depth => $dir)
550 550
 		{
551 551
 			if ($dir === $to[$depth])
552 552
 				array_shift($relPath);
@@ -3067,94 +3067,94 @@  discard block
 block discarded – undo
3067 3067
 		// Translation table for the character sets not native for MySQL.
3068 3068
 		$translation_tables = array(
3069 3069
 			'windows-1255' => array(
3070
-				'0x81' => '\'\'',		'0x8A' => '\'\'',		'0x8C' => '\'\'',
3071
-				'0x8D' => '\'\'',		'0x8E' => '\'\'',		'0x8F' => '\'\'',
3072
-				'0x90' => '\'\'',		'0x9A' => '\'\'',		'0x9C' => '\'\'',
3073
-				'0x9D' => '\'\'',		'0x9E' => '\'\'',		'0x9F' => '\'\'',
3074
-				'0xCA' => '\'\'',		'0xD9' => '\'\'',		'0xDA' => '\'\'',
3075
-				'0xDB' => '\'\'',		'0xDC' => '\'\'',		'0xDD' => '\'\'',
3076
-				'0xDE' => '\'\'',		'0xDF' => '\'\'',		'0xFB' => '0xD792',
3077
-				'0xFC' => '0xE282AC',		'0xFF' => '0xD6B2',		'0xC2' => '0xFF',
3078
-				'0x80' => '0xFC',		'0xE2' => '0xFB',		'0xA0' => '0xC2A0',
3079
-				'0xA1' => '0xC2A1',		'0xA2' => '0xC2A2',		'0xA3' => '0xC2A3',
3080
-				'0xA5' => '0xC2A5',		'0xA6' => '0xC2A6',		'0xA7' => '0xC2A7',
3081
-				'0xA8' => '0xC2A8',		'0xA9' => '0xC2A9',		'0xAB' => '0xC2AB',
3082
-				'0xAC' => '0xC2AC',		'0xAD' => '0xC2AD',		'0xAE' => '0xC2AE',
3083
-				'0xAF' => '0xC2AF',		'0xB0' => '0xC2B0',		'0xB1' => '0xC2B1',
3084
-				'0xB2' => '0xC2B2',		'0xB3' => '0xC2B3',		'0xB4' => '0xC2B4',
3085
-				'0xB5' => '0xC2B5',		'0xB6' => '0xC2B6',		'0xB7' => '0xC2B7',
3086
-				'0xB8' => '0xC2B8',		'0xB9' => '0xC2B9',		'0xBB' => '0xC2BB',
3087
-				'0xBC' => '0xC2BC',		'0xBD' => '0xC2BD',		'0xBE' => '0xC2BE',
3088
-				'0xBF' => '0xC2BF',		'0xD7' => '0xD7B3',		'0xD1' => '0xD781',
3089
-				'0xD4' => '0xD7B0',		'0xD5' => '0xD7B1',		'0xD6' => '0xD7B2',
3090
-				'0xE0' => '0xD790',		'0xEA' => '0xD79A',		'0xEC' => '0xD79C',
3091
-				'0xED' => '0xD79D',		'0xEE' => '0xD79E',		'0xEF' => '0xD79F',
3092
-				'0xF0' => '0xD7A0',		'0xF1' => '0xD7A1',		'0xF2' => '0xD7A2',
3093
-				'0xF3' => '0xD7A3',		'0xF5' => '0xD7A5',		'0xF6' => '0xD7A6',
3094
-				'0xF7' => '0xD7A7',		'0xF8' => '0xD7A8',		'0xF9' => '0xD7A9',
3095
-				'0x82' => '0xE2809A',	'0x84' => '0xE2809E',	'0x85' => '0xE280A6',
3096
-				'0x86' => '0xE280A0',	'0x87' => '0xE280A1',	'0x89' => '0xE280B0',
3097
-				'0x8B' => '0xE280B9',	'0x93' => '0xE2809C',	'0x94' => '0xE2809D',
3098
-				'0x95' => '0xE280A2',	'0x97' => '0xE28094',	'0x99' => '0xE284A2',
3099
-				'0xC0' => '0xD6B0',		'0xC1' => '0xD6B1',		'0xC3' => '0xD6B3',
3100
-				'0xC4' => '0xD6B4',		'0xC5' => '0xD6B5',		'0xC6' => '0xD6B6',
3101
-				'0xC7' => '0xD6B7',		'0xC8' => '0xD6B8',		'0xC9' => '0xD6B9',
3102
-				'0xCB' => '0xD6BB',		'0xCC' => '0xD6BC',		'0xCD' => '0xD6BD',
3103
-				'0xCE' => '0xD6BE',		'0xCF' => '0xD6BF',		'0xD0' => '0xD780',
3104
-				'0xD2' => '0xD782',		'0xE3' => '0xD793',		'0xE4' => '0xD794',
3105
-				'0xE5' => '0xD795',		'0xE7' => '0xD797',		'0xE9' => '0xD799',
3106
-				'0xFD' => '0xE2808E',	'0xFE' => '0xE2808F',	'0x92' => '0xE28099',
3107
-				'0x83' => '0xC692',		'0xD3' => '0xD783',		'0x88' => '0xCB86',
3108
-				'0x98' => '0xCB9C',		'0x91' => '0xE28098',	'0x96' => '0xE28093',
3109
-				'0xBA' => '0xC3B7',		'0x9B' => '0xE280BA',	'0xAA' => '0xC397',
3110
-				'0xA4' => '0xE282AA',	'0xE1' => '0xD791',		'0xE6' => '0xD796',
3111
-				'0xE8' => '0xD798',		'0xEB' => '0xD79B',		'0xF4' => '0xD7A4',
3070
+				'0x81' => '\'\'', '0x8A' => '\'\'', '0x8C' => '\'\'',
3071
+				'0x8D' => '\'\'', '0x8E' => '\'\'', '0x8F' => '\'\'',
3072
+				'0x90' => '\'\'', '0x9A' => '\'\'', '0x9C' => '\'\'',
3073
+				'0x9D' => '\'\'', '0x9E' => '\'\'', '0x9F' => '\'\'',
3074
+				'0xCA' => '\'\'', '0xD9' => '\'\'', '0xDA' => '\'\'',
3075
+				'0xDB' => '\'\'', '0xDC' => '\'\'', '0xDD' => '\'\'',
3076
+				'0xDE' => '\'\'', '0xDF' => '\'\'', '0xFB' => '0xD792',
3077
+				'0xFC' => '0xE282AC', '0xFF' => '0xD6B2', '0xC2' => '0xFF',
3078
+				'0x80' => '0xFC', '0xE2' => '0xFB', '0xA0' => '0xC2A0',
3079
+				'0xA1' => '0xC2A1', '0xA2' => '0xC2A2', '0xA3' => '0xC2A3',
3080
+				'0xA5' => '0xC2A5', '0xA6' => '0xC2A6', '0xA7' => '0xC2A7',
3081
+				'0xA8' => '0xC2A8', '0xA9' => '0xC2A9', '0xAB' => '0xC2AB',
3082
+				'0xAC' => '0xC2AC', '0xAD' => '0xC2AD', '0xAE' => '0xC2AE',
3083
+				'0xAF' => '0xC2AF', '0xB0' => '0xC2B0', '0xB1' => '0xC2B1',
3084
+				'0xB2' => '0xC2B2', '0xB3' => '0xC2B3', '0xB4' => '0xC2B4',
3085
+				'0xB5' => '0xC2B5', '0xB6' => '0xC2B6', '0xB7' => '0xC2B7',
3086
+				'0xB8' => '0xC2B8', '0xB9' => '0xC2B9', '0xBB' => '0xC2BB',
3087
+				'0xBC' => '0xC2BC', '0xBD' => '0xC2BD', '0xBE' => '0xC2BE',
3088
+				'0xBF' => '0xC2BF', '0xD7' => '0xD7B3', '0xD1' => '0xD781',
3089
+				'0xD4' => '0xD7B0', '0xD5' => '0xD7B1', '0xD6' => '0xD7B2',
3090
+				'0xE0' => '0xD790', '0xEA' => '0xD79A', '0xEC' => '0xD79C',
3091
+				'0xED' => '0xD79D', '0xEE' => '0xD79E', '0xEF' => '0xD79F',
3092
+				'0xF0' => '0xD7A0', '0xF1' => '0xD7A1', '0xF2' => '0xD7A2',
3093
+				'0xF3' => '0xD7A3', '0xF5' => '0xD7A5', '0xF6' => '0xD7A6',
3094
+				'0xF7' => '0xD7A7', '0xF8' => '0xD7A8', '0xF9' => '0xD7A9',
3095
+				'0x82' => '0xE2809A', '0x84' => '0xE2809E', '0x85' => '0xE280A6',
3096
+				'0x86' => '0xE280A0', '0x87' => '0xE280A1', '0x89' => '0xE280B0',
3097
+				'0x8B' => '0xE280B9', '0x93' => '0xE2809C', '0x94' => '0xE2809D',
3098
+				'0x95' => '0xE280A2', '0x97' => '0xE28094', '0x99' => '0xE284A2',
3099
+				'0xC0' => '0xD6B0', '0xC1' => '0xD6B1', '0xC3' => '0xD6B3',
3100
+				'0xC4' => '0xD6B4', '0xC5' => '0xD6B5', '0xC6' => '0xD6B6',
3101
+				'0xC7' => '0xD6B7', '0xC8' => '0xD6B8', '0xC9' => '0xD6B9',
3102
+				'0xCB' => '0xD6BB', '0xCC' => '0xD6BC', '0xCD' => '0xD6BD',
3103
+				'0xCE' => '0xD6BE', '0xCF' => '0xD6BF', '0xD0' => '0xD780',
3104
+				'0xD2' => '0xD782', '0xE3' => '0xD793', '0xE4' => '0xD794',
3105
+				'0xE5' => '0xD795', '0xE7' => '0xD797', '0xE9' => '0xD799',
3106
+				'0xFD' => '0xE2808E', '0xFE' => '0xE2808F', '0x92' => '0xE28099',
3107
+				'0x83' => '0xC692', '0xD3' => '0xD783', '0x88' => '0xCB86',
3108
+				'0x98' => '0xCB9C', '0x91' => '0xE28098', '0x96' => '0xE28093',
3109
+				'0xBA' => '0xC3B7', '0x9B' => '0xE280BA', '0xAA' => '0xC397',
3110
+				'0xA4' => '0xE282AA', '0xE1' => '0xD791', '0xE6' => '0xD796',
3111
+				'0xE8' => '0xD798', '0xEB' => '0xD79B', '0xF4' => '0xD7A4',
3112 3112
 				'0xFA' => '0xD7AA',
3113 3113
 			),
3114 3114
 			'windows-1253' => array(
3115
-				'0x81' => '\'\'',			'0x88' => '\'\'',			'0x8A' => '\'\'',
3116
-				'0x8C' => '\'\'',			'0x8D' => '\'\'',			'0x8E' => '\'\'',
3117
-				'0x8F' => '\'\'',			'0x90' => '\'\'',			'0x98' => '\'\'',
3118
-				'0x9A' => '\'\'',			'0x9C' => '\'\'',			'0x9D' => '\'\'',
3119
-				'0x9E' => '\'\'',			'0x9F' => '\'\'',			'0xAA' => '\'\'',
3120
-				'0xD2' => '0xE282AC',			'0xFF' => '0xCE92',			'0xCE' => '0xCE9E',
3121
-				'0xB8' => '0xCE88',		'0xBA' => '0xCE8A',		'0xBC' => '0xCE8C',
3122
-				'0xBE' => '0xCE8E',		'0xBF' => '0xCE8F',		'0xC0' => '0xCE90',
3123
-				'0xC8' => '0xCE98',		'0xCA' => '0xCE9A',		'0xCC' => '0xCE9C',
3124
-				'0xCD' => '0xCE9D',		'0xCF' => '0xCE9F',		'0xDA' => '0xCEAA',
3125
-				'0xE8' => '0xCEB8',		'0xEA' => '0xCEBA',		'0xEC' => '0xCEBC',
3126
-				'0xEE' => '0xCEBE',		'0xEF' => '0xCEBF',		'0xC2' => '0xFF',
3127
-				'0xBD' => '0xC2BD',		'0xED' => '0xCEBD',		'0xB2' => '0xC2B2',
3128
-				'0xA0' => '0xC2A0',		'0xA3' => '0xC2A3',		'0xA4' => '0xC2A4',
3129
-				'0xA5' => '0xC2A5',		'0xA6' => '0xC2A6',		'0xA7' => '0xC2A7',
3130
-				'0xA8' => '0xC2A8',		'0xA9' => '0xC2A9',		'0xAB' => '0xC2AB',
3131
-				'0xAC' => '0xC2AC',		'0xAD' => '0xC2AD',		'0xAE' => '0xC2AE',
3132
-				'0xB0' => '0xC2B0',		'0xB1' => '0xC2B1',		'0xB3' => '0xC2B3',
3133
-				'0xB5' => '0xC2B5',		'0xB6' => '0xC2B6',		'0xB7' => '0xC2B7',
3134
-				'0xBB' => '0xC2BB',		'0xE2' => '0xCEB2',		'0x80' => '0xD2',
3135
-				'0x82' => '0xE2809A',	'0x84' => '0xE2809E',	'0x85' => '0xE280A6',
3136
-				'0x86' => '0xE280A0',	'0xA1' => '0xCE85',		'0xA2' => '0xCE86',
3137
-				'0x87' => '0xE280A1',	'0x89' => '0xE280B0',	'0xB9' => '0xCE89',
3138
-				'0x8B' => '0xE280B9',	'0x91' => '0xE28098',	'0x99' => '0xE284A2',
3139
-				'0x92' => '0xE28099',	'0x93' => '0xE2809C',	'0x94' => '0xE2809D',
3140
-				'0x95' => '0xE280A2',	'0x96' => '0xE28093',	'0x97' => '0xE28094',
3141
-				'0x9B' => '0xE280BA',	'0xAF' => '0xE28095',	'0xB4' => '0xCE84',
3142
-				'0xC1' => '0xCE91',		'0xC3' => '0xCE93',		'0xC4' => '0xCE94',
3143
-				'0xC5' => '0xCE95',		'0xC6' => '0xCE96',		'0x83' => '0xC692',
3144
-				'0xC7' => '0xCE97',		'0xC9' => '0xCE99',		'0xCB' => '0xCE9B',
3145
-				'0xD0' => '0xCEA0',		'0xD1' => '0xCEA1',		'0xD3' => '0xCEA3',
3146
-				'0xD4' => '0xCEA4',		'0xD5' => '0xCEA5',		'0xD6' => '0xCEA6',
3147
-				'0xD7' => '0xCEA7',		'0xD8' => '0xCEA8',		'0xD9' => '0xCEA9',
3148
-				'0xDB' => '0xCEAB',		'0xDC' => '0xCEAC',		'0xDD' => '0xCEAD',
3149
-				'0xDE' => '0xCEAE',		'0xDF' => '0xCEAF',		'0xE0' => '0xCEB0',
3150
-				'0xE1' => '0xCEB1',		'0xE3' => '0xCEB3',		'0xE4' => '0xCEB4',
3151
-				'0xE5' => '0xCEB5',		'0xE6' => '0xCEB6',		'0xE7' => '0xCEB7',
3152
-				'0xE9' => '0xCEB9',		'0xEB' => '0xCEBB',		'0xF0' => '0xCF80',
3153
-				'0xF1' => '0xCF81',		'0xF2' => '0xCF82',		'0xF3' => '0xCF83',
3154
-				'0xF4' => '0xCF84',		'0xF5' => '0xCF85',		'0xF6' => '0xCF86',
3155
-				'0xF7' => '0xCF87',		'0xF8' => '0xCF88',		'0xF9' => '0xCF89',
3156
-				'0xFA' => '0xCF8A',		'0xFB' => '0xCF8B',		'0xFC' => '0xCF8C',
3157
-				'0xFD' => '0xCF8D',		'0xFE' => '0xCF8E',
3115
+				'0x81' => '\'\'', '0x88' => '\'\'', '0x8A' => '\'\'',
3116
+				'0x8C' => '\'\'', '0x8D' => '\'\'', '0x8E' => '\'\'',
3117
+				'0x8F' => '\'\'', '0x90' => '\'\'', '0x98' => '\'\'',
3118
+				'0x9A' => '\'\'', '0x9C' => '\'\'', '0x9D' => '\'\'',
3119
+				'0x9E' => '\'\'', '0x9F' => '\'\'', '0xAA' => '\'\'',
3120
+				'0xD2' => '0xE282AC', '0xFF' => '0xCE92', '0xCE' => '0xCE9E',
3121
+				'0xB8' => '0xCE88', '0xBA' => '0xCE8A', '0xBC' => '0xCE8C',
3122
+				'0xBE' => '0xCE8E', '0xBF' => '0xCE8F', '0xC0' => '0xCE90',
3123
+				'0xC8' => '0xCE98', '0xCA' => '0xCE9A', '0xCC' => '0xCE9C',
3124
+				'0xCD' => '0xCE9D', '0xCF' => '0xCE9F', '0xDA' => '0xCEAA',
3125
+				'0xE8' => '0xCEB8', '0xEA' => '0xCEBA', '0xEC' => '0xCEBC',
3126
+				'0xEE' => '0xCEBE', '0xEF' => '0xCEBF', '0xC2' => '0xFF',
3127
+				'0xBD' => '0xC2BD', '0xED' => '0xCEBD', '0xB2' => '0xC2B2',
3128
+				'0xA0' => '0xC2A0', '0xA3' => '0xC2A3', '0xA4' => '0xC2A4',
3129
+				'0xA5' => '0xC2A5', '0xA6' => '0xC2A6', '0xA7' => '0xC2A7',
3130
+				'0xA8' => '0xC2A8', '0xA9' => '0xC2A9', '0xAB' => '0xC2AB',
3131
+				'0xAC' => '0xC2AC', '0xAD' => '0xC2AD', '0xAE' => '0xC2AE',
3132
+				'0xB0' => '0xC2B0', '0xB1' => '0xC2B1', '0xB3' => '0xC2B3',
3133
+				'0xB5' => '0xC2B5', '0xB6' => '0xC2B6', '0xB7' => '0xC2B7',
3134
+				'0xBB' => '0xC2BB', '0xE2' => '0xCEB2', '0x80' => '0xD2',
3135
+				'0x82' => '0xE2809A', '0x84' => '0xE2809E', '0x85' => '0xE280A6',
3136
+				'0x86' => '0xE280A0', '0xA1' => '0xCE85', '0xA2' => '0xCE86',
3137
+				'0x87' => '0xE280A1', '0x89' => '0xE280B0', '0xB9' => '0xCE89',
3138
+				'0x8B' => '0xE280B9', '0x91' => '0xE28098', '0x99' => '0xE284A2',
3139
+				'0x92' => '0xE28099', '0x93' => '0xE2809C', '0x94' => '0xE2809D',
3140
+				'0x95' => '0xE280A2', '0x96' => '0xE28093', '0x97' => '0xE28094',
3141
+				'0x9B' => '0xE280BA', '0xAF' => '0xE28095', '0xB4' => '0xCE84',
3142
+				'0xC1' => '0xCE91', '0xC3' => '0xCE93', '0xC4' => '0xCE94',
3143
+				'0xC5' => '0xCE95', '0xC6' => '0xCE96', '0x83' => '0xC692',
3144
+				'0xC7' => '0xCE97', '0xC9' => '0xCE99', '0xCB' => '0xCE9B',
3145
+				'0xD0' => '0xCEA0', '0xD1' => '0xCEA1', '0xD3' => '0xCEA3',
3146
+				'0xD4' => '0xCEA4', '0xD5' => '0xCEA5', '0xD6' => '0xCEA6',
3147
+				'0xD7' => '0xCEA7', '0xD8' => '0xCEA8', '0xD9' => '0xCEA9',
3148
+				'0xDB' => '0xCEAB', '0xDC' => '0xCEAC', '0xDD' => '0xCEAD',
3149
+				'0xDE' => '0xCEAE', '0xDF' => '0xCEAF', '0xE0' => '0xCEB0',
3150
+				'0xE1' => '0xCEB1', '0xE3' => '0xCEB3', '0xE4' => '0xCEB4',
3151
+				'0xE5' => '0xCEB5', '0xE6' => '0xCEB6', '0xE7' => '0xCEB7',
3152
+				'0xE9' => '0xCEB9', '0xEB' => '0xCEBB', '0xF0' => '0xCF80',
3153
+				'0xF1' => '0xCF81', '0xF2' => '0xCF82', '0xF3' => '0xCF83',
3154
+				'0xF4' => '0xCF84', '0xF5' => '0xCF85', '0xF6' => '0xCF86',
3155
+				'0xF7' => '0xCF87', '0xF8' => '0xCF88', '0xF9' => '0xCF89',
3156
+				'0xFA' => '0xCF8A', '0xFB' => '0xCF8B', '0xFC' => '0xCF8C',
3157
+				'0xFD' => '0xCF8D', '0xFE' => '0xCF8E',
3158 3158
 			),
3159 3159
 		);
3160 3160
 
@@ -3414,7 +3414,7 @@  discard block
 block discarded – undo
3414 3414
 			// This bit fixes incorrect string lengths, which can happen if the character encoding was changed (e.g. conversion to UTF-8)
3415 3415
 			$new_string = preg_replace_callback(
3416 3416
 				'~\bs:(\d+):"(.*?)";(?=$|[bidsaO]:|[{}}]|N;)~s',
3417
-				function ($matches)
3417
+				function($matches)
3418 3418
 				{
3419 3419
 					return 's:' . strlen($matches[2]) . ':"' . $matches[2] . '";';
3420 3420
 				},
Please login to merge, or discard this patch.
Sources/Load.php 1 patch
Spacing   +7 added lines, -10 removed lines patch added patch discarded remove patch
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
 			'filename' => empty($user_settings['filename']) ? '' : $user_settings['filename'],
835 835
 			'custom_dir' => !empty($user_settings['attachment_type']) && $user_settings['attachment_type'] == 1,
836 836
 			'id_attach' => isset($user_settings['id_attach']) ? $user_settings['id_attach'] : 0,
837
-			'width' => isset($user_settings['attachment_width']) > 0 ? $user_settings['attachment_width']: 0,
837
+			'width' => isset($user_settings['attachment_width']) > 0 ? $user_settings['attachment_width'] : 0,
838 838
 			'height' => isset($user_settings['attachment_height']) > 0 ? $user_settings['attachment_height'] : 0,
839 839
 		),
840 840
 		'smiley_set' => isset($user_settings['smiley_set']) ? $user_settings['smiley_set'] : '',
@@ -2492,7 +2492,7 @@  discard block
 block discarded – undo
2492 2492
 	);
2493 2493
 
2494 2494
 	// Add the JQuery library to the list of files to load.
2495
-	$jQueryUrls = array ('cdn' => 'https://ajax.googleapis.com/ajax/libs/jquery/'. JQUERY_VERSION . '/jquery.min.js', 'jquery_cdn' => 'https://code.jquery.com/jquery-'. JQUERY_VERSION . '.min.js', 'microsoft_cdn' => 'https://ajax.aspnetcdn.com/ajax/jQuery/jquery-'. JQUERY_VERSION . '.min.js');
2495
+	$jQueryUrls = array('cdn' => 'https://ajax.googleapis.com/ajax/libs/jquery/' . JQUERY_VERSION . '/jquery.min.js', 'jquery_cdn' => 'https://code.jquery.com/jquery-' . JQUERY_VERSION . '.min.js', 'microsoft_cdn' => 'https://ajax.aspnetcdn.com/ajax/jQuery/jquery-' . JQUERY_VERSION . '.min.js');
2496 2496
 
2497 2497
 	if (isset($modSettings['jquery_source']) && array_key_exists($modSettings['jquery_source'], $jQueryUrls))
2498 2498
 		loadJavaScriptFile($jQueryUrls[$modSettings['jquery_source']], array('external' => true, 'seed' => false), 'smf_jquery');
@@ -2733,8 +2733,7 @@  discard block
 block discarded – undo
2733 2733
 		$context['css_files_order'] = array();
2734 2734
 
2735 2735
 	$params['seed'] = (!array_key_exists('seed', $params) || (array_key_exists('seed', $params) && $params['seed'] === true)) ?
2736
-		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') :
2737
-		(is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2736
+		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2738 2737
 	$params['force_current'] = isset($params['force_current']) ? $params['force_current'] : false;
2739 2738
 	$themeRef = !empty($params['default_theme']) ? 'default_theme' : 'theme';
2740 2739
 	$params['minimize'] = isset($params['minimize']) ? $params['minimize'] : true;
@@ -2849,8 +2848,7 @@  discard block
 block discarded – undo
2849 2848
 	global $settings, $context, $modSettings;
2850 2849
 
2851 2850
 	$params['seed'] = (!array_key_exists('seed', $params) || (array_key_exists('seed', $params) && $params['seed'] === true)) ?
2852
-		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') :
2853
-		(is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2851
+		(array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : '');
2854 2852
 	$params['force_current'] = isset($params['force_current']) ? $params['force_current'] : false;
2855 2853
 	$themeRef = !empty($params['default_theme']) ? 'default_theme' : 'theme';
2856 2854
 	$params['async'] = isset($params['async']) ? $params['async'] : false;
@@ -2955,7 +2953,7 @@  discard block
 block discarded – undo
2955 2953
 					$elements[] = JavaScriptEscape($element);
2956 2954
 			}
2957 2955
 
2958
-			$value = '[' . implode(', ',$elements) . ']';
2956
+			$value = '[' . implode(', ', $elements) . ']';
2959 2957
 		}
2960 2958
 	}
2961 2959
 
@@ -3636,8 +3634,7 @@  discard block
 block discarded – undo
3636 3634
 
3637 3635
 	// What accelerator we are going to try.
3638 3636
 	$cache_class_name = !empty($cache_accelerator) ? $cache_accelerator : CacheApi::APIS_DEFAULT;
3639
-	$fully_qualified_class_name = !empty($overrideCache) ? $overrideCache :
3640
-		CacheApi::APIS_NAMESPACE . $cache_class_name;
3637
+	$fully_qualified_class_name = !empty($overrideCache) ? $overrideCache : CacheApi::APIS_NAMESPACE . $cache_class_name;
3641 3638
 
3642 3639
 	// Do some basic tests.
3643 3640
 	if (class_exists($fully_qualified_class_name))
@@ -3941,7 +3938,7 @@  discard block
 block discarded – undo
3941 3938
 			$auth_secret = hash_file('sha256', $boarddir . '/Settings.php');
3942 3939
 
3943 3940
 			// Set the last error to now, but only every 15 minutes.  Don't need to flood the logs.
3944
-			if (empty($db_last_error) || ($db_last_error + 60*15) <= time())
3941
+			if (empty($db_last_error) || ($db_last_error + 60 * 15) <= time())
3945 3942
 			{
3946 3943
 				updateDbLastError(time());
3947 3944
 				loadLanguage('Errors');
Please login to merge, or discard this patch.
Sources/Subs-Compat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
 			if (!function_exists('mb_encode_numericentity'))
223 223
 				return false;
224 224
 
225
-			$entity = mb_encode_numericentity($string, array(0x0,0x10FFFF,0x0,0xFFFFFF), $encoding);
225
+			$entity = mb_encode_numericentity($string, array(0x0, 0x10FFFF, 0x0, 0xFFFFFF), $encoding);
226 226
 
227 227
 			if (strpos($entity, '&#') !== 0)
228 228
 				return false;
Please login to merge, or discard this patch.
Sources/Register.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@
 block discarded – undo
315 315
 
316 316
 	array_walk_recursive(
317 317
 		$_POST,
318
-		function (&$value, $key) use ($context, $smcFunc)
318
+		function(&$value, $key) use ($context, $smcFunc)
319 319
 		{
320 320
 			// Normalize Unicode characters. (Does nothing if not in UTF-8 mode.)
321 321
 			$value = $smcFunc['normalize']($value);
Please login to merge, or discard this patch.
Sources/ManageMaintenance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2060,7 +2060,7 @@
 block discarded – undo
2060 2060
 		new RecursiveIteratorIterator(
2061 2061
 			new RecursiveCallbackFilterIterator(
2062 2062
 				new RecursiveDirectoryIterator($dirname, FilesystemIterator::UNIX_PATHS),
2063
-				function ($fileInfo, $currentFile, $iterator)
2063
+				function($fileInfo, $currentFile, $iterator)
2064 2064
 				{
2065 2065
 					// Allow recursion
2066 2066
 					if ($iterator->hasChildren())
Please login to merge, or discard this patch.
Sources/Mentions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@
 block discarded – undo
256 256
 			return array();
257 257
 
258 258
 		// preparse code does a few things which might mess with our parsing
259
-		$body = htmlspecialchars_decode(preg_replace('~<br\s*/?'.'>~', "\n", str_replace('&nbsp;', ' ', $body)), ENT_QUOTES);
259
+		$body = htmlspecialchars_decode(preg_replace('~<br\s*/?' . '>~', "\n", str_replace('&nbsp;', ' ', $body)), ENT_QUOTES);
260 260
 
261 261
 		if (empty(self::$excluded_bbc_regex))
262 262
 			self::setExcludedBbcRegex();
Please login to merge, or discard this patch.
Sources/Subs-Charset.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2917,7 +2917,7 @@  discard block
 block discarded – undo
2917 2917
 	$string = preg_split('/(.)/su', $string, 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
2918 2918
 
2919 2919
 	// Replace characters with decomposed forms.
2920
-	for ($i=0; $i < count($string); $i++)
2920
+	for ($i = 0; $i < count($string); $i++)
2921 2921
 	{
2922 2922
 		// Hangul characters.
2923 2923
 		if ($string[$i] >= "\xEA\xB0\x80" && $string[$i] <= "\xED\x9E\xA3")
@@ -2951,7 +2951,7 @@  discard block
 block discarded – undo
2951 2951
 		{
2952 2952
 			$temp = $string[$i];
2953 2953
 			$string[$i] = $string[$i - 1];
2954
-			$string[$i -1] = $temp;
2954
+			$string[$i - 1] = $temp;
2955 2955
 
2956 2956
 			// Backtrack and check again.
2957 2957
 			if ($i > 1)
@@ -3262,7 +3262,7 @@  discard block
 block discarded – undo
3262 3262
 
3263 3263
 		Regex source is https://unicode.org/reports/tr51/#EBNF_and_Regex
3264 3264
 	*/
3265
-	$string  = mb_ereg_replace_callback(
3265
+	$string = mb_ereg_replace_callback(
3266 3266
 		'\p{Regional_Indicator}\p{Regional_Indicator}' .
3267 3267
 		'|' .
3268 3268
 		'\p{Emoji}' .
@@ -3283,7 +3283,7 @@  discard block
 block discarded – undo
3283 3283
 				'[\x{E0020}-\x{E007E}]+\x{E007F}' .
3284 3284
 			')?' .
3285 3285
 		')*',
3286
-		function ($matches) use (&$placeholders)
3286
+		function($matches) use (&$placeholders)
3287 3287
 		{
3288 3288
 			// Skip lone ASCII characters that are not actully part of an emoji sequence.
3289 3289
 			// This can happen because the digits 0-9 and the '*' and '#' characters are
@@ -3658,7 +3658,7 @@  discard block
 block discarded – undo
3658 3658
 			// Do the thing.
3659 3659
 			$temp = @mb_ereg_replace_callback(
3660 3660
 				$pattern,
3661
-				function ($matches) use ($placeholders)
3661
+				function($matches) use ($placeholders)
3662 3662
 				{
3663 3663
 					return strtr($matches[0], $placeholders);
3664 3664
 				},
Please login to merge, or discard this patch.
Sources/Subs.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 			{
379 379
 				$val = 'CASE ';
380 380
 				foreach ($members as $k => $v)
381
-					$val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' ';
381
+					$val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' ';
382 382
 
383 383
 				$val = $val . ' END';
384 384
 				$type = 'raw';
@@ -1045,11 +1045,11 @@  discard block
 block discarded – undo
1045 1045
 			// Anything that isn't a specification, punctuation mark, or whitespace.
1046 1046
 			'~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u',
1047 1047
 			// A series of punctuation marks (except %), possibly separated by whitespace.
1048
-			'~([^%\P{P}])(\s*)(?'.'>(\1|[^%\P{Po}])\s*(?!$))*~u',
1048
+			'~([^%\P{P}])(\s*)(?' . '>(\1|[^%\P{Po}])\s*(?!$))*~u',
1049 1049
 			// Unwanted trailing punctuation and whitespace.
1050
-			'~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1050
+			'~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
1051 1051
 			// Unwanted opening punctuation and whitespace.
1052
-			'~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1052
+			'~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
1053 1053
 		),
1054 1054
 		array(
1055 1055
 			'',
@@ -1139,7 +1139,7 @@  discard block
 block discarded – undo
1139 1139
 	elseif (!empty($context['character_set']) && is_callable('mb_decode_numericentity'))
1140 1140
 	{
1141 1141
 		// Get whatever the default replacement character is for this encoding.
1142
-		$substitute = mb_decode_numericentity('&#xFFFD;', array(0xFFFD,0xFFFD,0,0xFFFF), $context['character_set']);
1142
+		$substitute = mb_decode_numericentity('&#xFFFD;', array(0xFFFD, 0xFFFD, 0, 0xFFFF), $context['character_set']);
1143 1143
 	}
1144 1144
 	else
1145 1145
 		$substitute = '?';
@@ -1624,7 +1624,7 @@  discard block
 block discarded – undo
1624 1624
 								$returnContext .= '<img src="' . $currentAttachment['href'] . '"' . $alt . $title . ' class="bbc_img">';
1625 1625
 							else
1626 1626
 							{
1627
-								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"': '';
1627
+								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1628 1628
 								$height = !empty($params['{height}']) ? 'height="' . $params['{height}'] . '"' : '';
1629 1629
 								$returnContext .= '<img src="' . $currentAttachment['href'] . ';image"' . $alt . $title . $width . $height . ' class="bbc_img resized"/>';
1630 1630
 							}
@@ -1635,7 +1635,7 @@  discard block
 block discarded – undo
1635 1635
 							$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1636 1636
 							$height = !empty($params['{height}']) ? ' height="' . $params['{height}'] . '"' : '';
1637 1637
 
1638
-							$returnContext .= '<div class="videocontainer"><video controls preload="metadata" src="'. $currentAttachment['href'] . '" playsinline' . $width . $height . '><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : '');
1638
+							$returnContext .= '<div class="videocontainer"><video controls preload="metadata" src="' . $currentAttachment['href'] . '" playsinline' . $width . $height . '><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : '');
1639 1639
 						}
1640 1640
 						// Audio.
1641 1641
 						elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0)
@@ -1643,7 +1643,7 @@  discard block
 block discarded – undo
1643 1643
 							$width = 'max-width:100%; width: ' . (!empty($params['{width}']) ? $params['{width}'] : '400') . 'px;';
1644 1644
 							$height = !empty($params['{height}']) ? 'height: ' . $params['{height}'] . 'px;' : '';
1645 1645
 
1646
-							$returnContext .= (!empty($data) && $data != $currentAttachment['name'] ? $data . ' ' : '') . '<audio controls preload="none" src="'. $currentAttachment['href'] . '" class="bbc_audio" style="vertical-align:middle;' . $width . $height . '"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></audio>';
1646
+							$returnContext .= (!empty($data) && $data != $currentAttachment['name'] ? $data . ' ' : '') . '<audio controls preload="none" src="' . $currentAttachment['href'] . '" class="bbc_audio" style="vertical-align:middle;' . $width . $height . '"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></audio>';
1647 1647
 						}
1648 1648
 						// Anything else.
1649 1649
 						else
@@ -1812,7 +1812,7 @@  discard block
 block discarded – undo
1812 1812
 				'type' => 'unparsed_commas_content',
1813 1813
 				'test' => '\d+,\d+\]',
1814 1814
 				'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>',
1815
-				'validate' => function (&$tag, &$data, $disabled)
1815
+				'validate' => function(&$tag, &$data, $disabled)
1816 1816
 				{
1817 1817
 					$scheme = parse_url($data[0], PHP_URL_SCHEME);
1818 1818
 					if (empty($scheme))
@@ -1925,8 +1925,8 @@  discard block
 block discarded – undo
1925 1925
 					else
1926 1926
 						$url = get_proxied_url($url);
1927 1927
 
1928
-					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}']. '"' : ' alt=""';
1929
-					$title = !empty($params['{title}']) ? ' title="' . $params['{title}']. '"' : '';
1928
+					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}'] . '"' : ' alt=""';
1929
+					$title = !empty($params['{title}']) ? ' title="' . $params['{title}'] . '"' : '';
1930 1930
 
1931 1931
 					$data = isset($disabled[$tag['tag']]) ? $url : '<img src="' . $url . '"' . $alt . $title . $params['{width}'] . $params['{height}'] . ' class="bbc_img' . (!empty($params['{width}']) || !empty($params['{height}']) ? ' resized' : '') . '" loading="lazy">';
1932 1932
 				},
@@ -2343,12 +2343,12 @@  discard block
 block discarded – undo
2343 2343
 		$codes[] = array(
2344 2344
 			'tag' => 'cowsay',
2345 2345
 			'parameters' => array(
2346
-				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2346
+				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc)
2347 2347
 					{
2348 2348
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2349 2349
 					},
2350 2350
 				),
2351
-				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2351
+				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function($tongue) use ($smcFunc)
2352 2352
 					{
2353 2353
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2354 2354
 					},
@@ -4073,7 +4073,7 @@  discard block
 block discarded – undo
4073 4073
 		if ($fp != false)
4074 4074
 		{
4075 4075
 			// Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.)
4076
-			fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'user-agent: '. SMF_USER_AGENT . "\r\n" . 'Connection: close' . "\r\n\r\n");
4076
+			fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'user-agent: ' . SMF_USER_AGENT . "\r\n" . 'Connection: close' . "\r\n\r\n");
4077 4077
 
4078 4078
 			// Read in the HTTP/1.1 or whatever.
4079 4079
 			$test = substr(fgets($fp, 11), -1);
@@ -4669,7 +4669,7 @@  discard block
 block discarded – undo
4669 4669
 
4670 4670
 	uasort(
4671 4671
 		$context['css_files'],
4672
-		function ($a, $b)
4672
+		function($a, $b)
4673 4673
 		{
4674 4674
 			return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
4675 4675
 		}
@@ -5966,7 +5966,7 @@  discard block
 block discarded – undo
5966 5966
 			{
5967 5967
 				fwrite($fp, 'GET ' . ($match[6] !== '/' ? str_replace(' ', '%20', $match[6]) : '') . ' HTTP/1.0' . "\r\n");
5968 5968
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
5969
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
5969
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
5970 5970
 				if ($keep_alive)
5971 5971
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n\r\n");
5972 5972
 				else
@@ -5976,7 +5976,7 @@  discard block
 block discarded – undo
5976 5976
 			{
5977 5977
 				fwrite($fp, 'POST ' . ($match[6] !== '/' ? $match[6] : '') . ' HTTP/1.0' . "\r\n");
5978 5978
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
5979
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
5979
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
5980 5980
 				if ($keep_alive)
5981 5981
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n");
5982 5982
 				else
@@ -6225,13 +6225,13 @@  discard block
 block discarded – undo
6225 6225
 
6226 6226
 	// UTF-8 occurences of MS special characters
6227 6227
 	$findchars_utf8 = array(
6228
-		"\xe2\x80\x9a",	// single low-9 quotation mark
6229
-		"\xe2\x80\x9e",	// double low-9 quotation mark
6230
-		"\xe2\x80\xa6",	// horizontal ellipsis
6231
-		"\xe2\x80\x98",	// left single curly quote
6232
-		"\xe2\x80\x99",	// right single curly quote
6233
-		"\xe2\x80\x9c",	// left double curly quote
6234
-		"\xe2\x80\x9d",	// right double curly quote
6228
+		"\xe2\x80\x9a", // single low-9 quotation mark
6229
+		"\xe2\x80\x9e", // double low-9 quotation mark
6230
+		"\xe2\x80\xa6", // horizontal ellipsis
6231
+		"\xe2\x80\x98", // left single curly quote
6232
+		"\xe2\x80\x99", // right single curly quote
6233
+		"\xe2\x80\x9c", // left double curly quote
6234
+		"\xe2\x80\x9d", // right double curly quote
6235 6235
 	);
6236 6236
 
6237 6237
 	// windows 1252 / iso equivalents
@@ -6247,13 +6247,13 @@  discard block
 block discarded – undo
6247 6247
 
6248 6248
 	// safe replacements
6249 6249
 	$replacechars = array(
6250
-		',',	// &sbquo;
6251
-		',,',	// &bdquo;
6252
-		'...',	// &hellip;
6253
-		"'",	// &lsquo;
6254
-		"'",	// &rsquo;
6255
-		'"',	// &ldquo;
6256
-		'"',	// &rdquo;
6250
+		',', // &sbquo;
6251
+		',,', // &bdquo;
6252
+		'...', // &hellip;
6253
+		"'", // &lsquo;
6254
+		"'", // &rsquo;
6255
+		'"', // &ldquo;
6256
+		'"', // &rdquo;
6257 6257
 	);
6258 6258
 
6259 6259
 	if ($context['utf8'])
@@ -6614,7 +6614,7 @@  discard block
 block discarded – undo
6614 6614
 		// We don't want abbreviations like '+03' or '-11'.
6615 6615
 		$abbrs = array_filter(
6616 6616
 			$tzvalue['abbrs'],
6617
-			function ($abbr)
6617
+			function($abbr)
6618 6618
 			{
6619 6619
 				return !strspn($abbr, '+-');
6620 6620
 			}
@@ -7603,7 +7603,7 @@  discard block
 block discarded – undo
7603 7603
 			EXISTS (
7604 7604
 				SELECT bpv.id_board
7605 7605
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7606
-				WHERE bpv.id_group IN ('. implode(',', $groups) .')
7606
+				WHERE bpv.id_group IN ('. implode(',', $groups) . ')
7607 7607
 					AND bpv.deny = 0
7608 7608
 					AND bpv.id_board = b.id_board
7609 7609
 			)';
@@ -7613,7 +7613,7 @@  discard block
 block discarded – undo
7613 7613
 			AND NOT EXISTS (
7614 7614
 				SELECT bpv.id_board
7615 7615
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7616
-				WHERE bpv.id_group IN ( '. implode(',', $groups) .')
7616
+				WHERE bpv.id_group IN ( '. implode(',', $groups) . ')
7617 7617
 					AND bpv.deny = 1
7618 7618
 					AND bpv.id_board = b.id_board
7619 7619
 			)';
@@ -7930,8 +7930,8 @@  discard block
 block discarded – undo
7930 7930
 	$i = 0;
7931 7931
 	while (empty($done))
7932 7932
 	{
7933
-		if (strpos($format, '{'. --$i . '}') !== false)
7934
-			$replacements['{'. $i . '}'] = array_pop($list);
7933
+		if (strpos($format, '{' . --$i . '}') !== false)
7934
+			$replacements['{' . $i . '}'] = array_pop($list);
7935 7935
 		else
7936 7936
 			$done = true;
7937 7937
 	}
@@ -7941,8 +7941,8 @@  discard block
 block discarded – undo
7941 7941
 	$i = 0;
7942 7942
 	while (empty($done))
7943 7943
 	{
7944
-		if (strpos($format, '{'. ++$i . '}') !== false)
7945
-			$replacements['{'. $i . '}'] = array_shift($list);
7944
+		if (strpos($format, '{' . ++$i . '}') !== false)
7945
+			$replacements['{' . $i . '}'] = array_shift($list);
7946 7946
 		else
7947 7947
 			$done = true;
7948 7948
 	}
@@ -8120,7 +8120,7 @@  discard block
 block discarded – undo
8120 8120
 	if (empty($stringSubject))
8121 8121
 		return '';
8122 8122
 
8123
-	$translatable_tokens = preg_match_all('/{(.*?)}/' , $stringSubject, $matches);
8123
+	$translatable_tokens = preg_match_all('/{(.*?)}/', $stringSubject, $matches);
8124 8124
 	$toFind = array();
8125 8125
 	$replaceWith = array();
8126 8126
 
Please login to merge, or discard this patch.