Passed
Push — release-2.1 ( a83b3f...ffbb0b )
by Mathias
08:31 queued 12s
created
Sources/Help.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,8 @@
 block discarded – undo
117 117
 	else
118 118
 		fatal_lang_error('not_found', false, array(), 404);
119 119
 
120
-	switch ($_GET['help']) {
120
+	switch ($_GET['help'])
121
+	{
121 122
 		case 'cal_short_months':
122 123
 			$context['help_text'] = sprintf($context['help_text'], $txt['months_short'][1], $txt['months_titles'][1]);
123 124
 			break;
Please login to merge, or discard this patch.
Sources/Subs.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 			{
380 380
 				$val = 'CASE ';
381 381
 				foreach ($members as $k => $v)
382
-					$val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' ';
382
+					$val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' ';
383 383
 
384 384
 				$val = $val . ' END';
385 385
 				$type = 'raw';
@@ -851,12 +851,12 @@  discard block
 block discarded – undo
851 851
 			// Anything that isn't a specification, punctuation mark, or whitespace.
852 852
 			'~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u',
853 853
 			// Repeated punctuation marks (except %), possibly separated by whitespace.
854
-			'~(?'.'>([^%\P{P}])\s*(?=\1))*~u',
855
-			'~([^%\P{P}])(?'.'>\1(?!$))*~u',
854
+			'~(?' . '>([^%\P{P}])\s*(?=\1))*~u',
855
+			'~([^%\P{P}])(?' . '>\1(?!$))*~u',
856 856
 			// Unwanted trailing punctuation and whitespace.
857
-			'~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
857
+			'~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u',
858 858
 			// Unwanted opening punctuation and whitespace.
859
-			'~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
859
+			'~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u',
860 860
 			// Runs of horizontal whitespace.
861 861
 			'~\s+~',
862 862
 		),
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
 	{
1164 1164
 		$dates[$tzid . '_' . $timestamp]['results'][$format] = preg_replace_callback(
1165 1165
 			'/\xEE\x84\xA0([\d_]+)(\xEE\x84(?:[\xA1-\xAF]))/',
1166
-			function ($matches)
1166
+			function($matches)
1167 1167
 			{
1168 1168
 				switch ($matches[2])
1169 1169
 				{
@@ -1297,7 +1297,7 @@  discard block
 block discarded – undo
1297 1297
 	elseif (!empty($context['character_set']) && is_callable('mb_decode_numericentity'))
1298 1298
 	{
1299 1299
 		// Get whatever the default replacement character is for this encoding.
1300
-		$substitute = mb_decode_numericentity('&#xFFFD;', array(0xFFFD,0xFFFD,0,0xFFFF), $context['character_set']);
1300
+		$substitute = mb_decode_numericentity('&#xFFFD;', array(0xFFFD, 0xFFFD, 0, 0xFFFF), $context['character_set']);
1301 1301
 	}
1302 1302
 	else
1303 1303
 		$substitute = '?';
@@ -1747,7 +1747,7 @@  discard block
 block discarded – undo
1747 1747
 
1748 1748
 					// parseAttachBBC will return a string ($txt key) rather than dying with a fatal_error. Up to you to decide what to do.
1749 1749
 					if (is_string($currentAttachment))
1750
-						return $data = '<span style="display:inline-block" class="errorbox">' . (!empty($txt[$currentAttachment]) ? $txt[$currentAttachment] : $currentAttachment)  . '</span>';
1750
+						return $data = '<span style="display:inline-block" class="errorbox">' . (!empty($txt[$currentAttachment]) ? $txt[$currentAttachment] : $currentAttachment) . '</span>';
1751 1751
 
1752 1752
 					// We need a display mode.
1753 1753
 					if (empty($params['{display}']))
@@ -1773,7 +1773,7 @@  discard block
 block discarded – undo
1773 1773
 								$returnContext .= '<img src="' . $currentAttachment['href'] . '"' . $alt . $title . ' class="bbc_img">';
1774 1774
 							else
1775 1775
 							{
1776
-								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"': '';
1776
+								$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1777 1777
 								$height = !empty($params['{height}']) ? 'height="' . $params['{height}'] . '"' : '';
1778 1778
 								$returnContext .= '<img src="' . $currentAttachment['href'] . ';image"' . $alt . $title . $width . $height . ' class="bbc_img resized"/>';
1779 1779
 							}
@@ -1784,7 +1784,7 @@  discard block
 block discarded – undo
1784 1784
 							$width = !empty($params['{width}']) ? ' width="' . $params['{width}'] . '"' : '';
1785 1785
 							$height = !empty($params['{height}']) ? ' height="' . $params['{height}'] . '"' : '';
1786 1786
 
1787
-							$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>' : '');
1787
+							$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>' : '');
1788 1788
 						}
1789 1789
 						// Audio.
1790 1790
 						elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0)
@@ -1792,7 +1792,7 @@  discard block
 block discarded – undo
1792 1792
 							$width = 'max-width:100%; width: ' . (!empty($params['{width}']) ? $params['{width}'] : '400') . 'px;';
1793 1793
 							$height = !empty($params['{height}']) ? 'height: ' . $params['{height}'] . 'px;' : '';
1794 1794
 
1795
-							$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>';
1795
+							$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>';
1796 1796
 						}
1797 1797
 						// Anything else.
1798 1798
 						else
@@ -1961,7 +1961,7 @@  discard block
 block discarded – undo
1961 1961
 				'type' => 'unparsed_commas_content',
1962 1962
 				'test' => '\d+,\d+\]',
1963 1963
 				'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>',
1964
-				'validate' => function (&$tag, &$data, $disabled)
1964
+				'validate' => function(&$tag, &$data, $disabled)
1965 1965
 				{
1966 1966
 					$data[0] = normalize_iri(strtr(trim($data[0]), array('<br>' => '', ' ' => '%20')));
1967 1967
 
@@ -2087,8 +2087,8 @@  discard block
 block discarded – undo
2087 2087
 					else
2088 2088
 						$url = get_proxied_url($url);
2089 2089
 
2090
-					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}']. '"' : ' alt=""';
2091
-					$title = !empty($params['{title}']) ? ' title="' . $params['{title}']. '"' : '';
2090
+					$alt = !empty($params['{alt}']) ? ' alt="' . $params['{alt}'] . '"' : ' alt=""';
2091
+					$title = !empty($params['{title}']) ? ' title="' . $params['{title}'] . '"' : '';
2092 2092
 
2093 2093
 					$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">';
2094 2094
 				},
@@ -2526,12 +2526,12 @@  discard block
 block discarded – undo
2526 2526
 		$codes[] = array(
2527 2527
 			'tag' => 'cowsay',
2528 2528
 			'parameters' => array(
2529
-				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc)
2529
+				'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc)
2530 2530
 					{
2531 2531
 						return $smcFunc['substr']($eyes . 'oo', 0, 2);
2532 2532
 					},
2533 2533
 				),
2534
-				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function ($tongue) use ($smcFunc)
2534
+				't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => '  ', 'validate' => function($tongue) use ($smcFunc)
2535 2535
 					{
2536 2536
 						return $smcFunc['substr']($tongue . '  ', 0, 2);
2537 2537
 					},
@@ -4236,7 +4236,7 @@  discard block
 block discarded – undo
4236 4236
 		if ($fp != false)
4237 4237
 		{
4238 4238
 			// Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.)
4239
-			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");
4239
+			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");
4240 4240
 
4241 4241
 			// Read in the HTTP/1.1 or whatever.
4242 4242
 			$test = substr(fgets($fp, 11), -1);
@@ -4832,7 +4832,7 @@  discard block
 block discarded – undo
4832 4832
 
4833 4833
 	uasort(
4834 4834
 		$context['css_files'],
4835
-		function ($a, $b)
4835
+		function($a, $b)
4836 4836
 		{
4837 4837
 			return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0);
4838 4838
 		}
@@ -6152,7 +6152,7 @@  discard block
 block discarded – undo
6152 6152
 			{
6153 6153
 				fwrite($fp, 'GET ' . ($match[6] !== '/' ? str_replace(' ', '%20', $match[6]) : '') . ' HTTP/1.0' . "\r\n");
6154 6154
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
6155
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
6155
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
6156 6156
 				if ($keep_alive)
6157 6157
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n\r\n");
6158 6158
 				else
@@ -6162,7 +6162,7 @@  discard block
 block discarded – undo
6162 6162
 			{
6163 6163
 				fwrite($fp, 'POST ' . ($match[6] !== '/' ? $match[6] : '') . ' HTTP/1.0' . "\r\n");
6164 6164
 				fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n");
6165
-				fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n");
6165
+				fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n");
6166 6166
 				if ($keep_alive)
6167 6167
 					fwrite($fp, 'connection: Keep-Alive' . "\r\n");
6168 6168
 				else
@@ -6411,13 +6411,13 @@  discard block
 block discarded – undo
6411 6411
 
6412 6412
 	// UTF-8 occurences of MS special characters
6413 6413
 	$findchars_utf8 = array(
6414
-		"\xe2\x80\x9a",	// single low-9 quotation mark
6415
-		"\xe2\x80\x9e",	// double low-9 quotation mark
6416
-		"\xe2\x80\xa6",	// horizontal ellipsis
6417
-		"\xe2\x80\x98",	// left single curly quote
6418
-		"\xe2\x80\x99",	// right single curly quote
6419
-		"\xe2\x80\x9c",	// left double curly quote
6420
-		"\xe2\x80\x9d",	// right double curly quote
6414
+		"\xe2\x80\x9a", // single low-9 quotation mark
6415
+		"\xe2\x80\x9e", // double low-9 quotation mark
6416
+		"\xe2\x80\xa6", // horizontal ellipsis
6417
+		"\xe2\x80\x98", // left single curly quote
6418
+		"\xe2\x80\x99", // right single curly quote
6419
+		"\xe2\x80\x9c", // left double curly quote
6420
+		"\xe2\x80\x9d", // right double curly quote
6421 6421
 	);
6422 6422
 
6423 6423
 	// windows 1252 / iso equivalents
@@ -6433,13 +6433,13 @@  discard block
 block discarded – undo
6433 6433
 
6434 6434
 	// safe replacements
6435 6435
 	$replacechars = array(
6436
-		',',	// &sbquo;
6437
-		',,',	// &bdquo;
6438
-		'...',	// &hellip;
6439
-		"'",	// &lsquo;
6440
-		"'",	// &rsquo;
6441
-		'"',	// &ldquo;
6442
-		'"',	// &rdquo;
6436
+		',', // &sbquo;
6437
+		',,', // &bdquo;
6438
+		'...', // &hellip;
6439
+		"'", // &lsquo;
6440
+		"'", // &rsquo;
6441
+		'"', // &ldquo;
6442
+		'"', // &rdquo;
6443 6443
 	);
6444 6444
 
6445 6445
 	if ($context['utf8'])
@@ -6802,7 +6802,7 @@  discard block
 block discarded – undo
6802 6802
 		// We don't want abbreviations like '+03' or '-11'.
6803 6803
 		$abbrs = array_filter(
6804 6804
 			$tzvalue['abbrs'],
6805
-			function ($abbr)
6805
+			function($abbr)
6806 6806
 			{
6807 6807
 				return !strspn($abbr, '+-');
6808 6808
 			}
@@ -7791,7 +7791,7 @@  discard block
 block discarded – undo
7791 7791
 			EXISTS (
7792 7792
 				SELECT bpv.id_board
7793 7793
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7794
-				WHERE bpv.id_group IN ('. implode(',', $groups) .')
7794
+				WHERE bpv.id_group IN ('. implode(',', $groups) . ')
7795 7795
 					AND bpv.deny = 0
7796 7796
 					AND bpv.id_board = b.id_board
7797 7797
 			)';
@@ -7801,7 +7801,7 @@  discard block
 block discarded – undo
7801 7801
 			AND NOT EXISTS (
7802 7802
 				SELECT bpv.id_board
7803 7803
 				FROM ' . $db_prefix . 'board_permissions_view AS bpv
7804
-				WHERE bpv.id_group IN ( '. implode(',', $groups) .')
7804
+				WHERE bpv.id_group IN ( '. implode(',', $groups) . ')
7805 7805
 					AND bpv.deny = 1
7806 7806
 					AND bpv.id_board = b.id_board
7807 7807
 			)';
@@ -8214,8 +8214,8 @@  discard block
 block discarded – undo
8214 8214
 	$i = 0;
8215 8215
 	while (empty($done))
8216 8216
 	{
8217
-		if (strpos($format, '{'. --$i . '}') !== false)
8218
-			$replacements['{'. $i . '}'] = array_pop($list);
8217
+		if (strpos($format, '{' . --$i . '}') !== false)
8218
+			$replacements['{' . $i . '}'] = array_pop($list);
8219 8219
 		else
8220 8220
 			$done = true;
8221 8221
 	}
@@ -8225,8 +8225,8 @@  discard block
 block discarded – undo
8225 8225
 	$i = 0;
8226 8226
 	while (empty($done))
8227 8227
 	{
8228
-		if (strpos($format, '{'. ++$i . '}') !== false)
8229
-			$replacements['{'. $i . '}'] = array_shift($list);
8228
+		if (strpos($format, '{' . ++$i . '}') !== false)
8229
+			$replacements['{' . $i . '}'] = array_shift($list);
8230 8230
 		else
8231 8231
 			$done = true;
8232 8232
 	}
@@ -8407,7 +8407,7 @@  discard block
 block discarded – undo
8407 8407
 	if (empty($stringSubject))
8408 8408
 		return '';
8409 8409
 
8410
-	$translatable_tokens = preg_match_all('/{(.*?)}/' , $stringSubject, $matches);
8410
+	$translatable_tokens = preg_match_all('/{(.*?)}/', $stringSubject, $matches);
8411 8411
 	$toFind = array();
8412 8412
 	$replaceWith = array();
8413 8413
 
Please login to merge, or discard this patch.
Sources/Subs-Db-postgresql.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		display_db_error();
76 76
 
77 77
 	// We need to escape ' and \
78
-	$db_passwd = str_replace(array('\\','\''), array('\\\\','\\\''), $db_passwd);
78
+	$db_passwd = str_replace(array('\\', '\''), array('\\\\', '\\\''), $db_passwd);
79 79
 
80 80
 	// Since pg_connect doesn't feed error info to pg_last_error, we have to catch issues with a try/catch.
81 81
 	set_error_handler(
@@ -926,7 +926,7 @@  discard block
 block discarded – undo
926 926
 	if (!empty($inTransaction))
927 927
 		smf_db_transaction('rollback');
928 928
 
929
-	if(empty($db_persist))
929
+	if (empty($db_persist))
930 930
 	{ // without pooling
931 931
 		if (empty($pg_error_data_prep))
932 932
 			$pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors',
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -927,7 +927,8 @@  discard block
 block discarded – undo
927 927
 		smf_db_transaction('rollback');
928 928
 
929 929
 	if(empty($db_persist))
930
-	{ // without pooling
930
+	{
931
+// without pooling
931 932
 		if (empty($pg_error_data_prep))
932 933
 			$pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors',
933 934
 				'INSERT INTO ' . $db_prefix . 'log_errors
@@ -938,7 +939,8 @@  discard block
 block discarded – undo
938 939
 		pg_execute($db_connection, 'smf_log_errors', $error_array);
939 940
 	}
940 941
 	else
941
-	{ //with pooling
942
+	{
943
+//with pooling
942 944
 		$pg_error_data_prep = pg_prepare($db_connection, '',
943 945
 			'INSERT INTO ' . $db_prefix . 'log_errors
944 946
 				(id_member, log_time, ip, url, message, session, error_type, file, line, backtrace)
Please login to merge, or discard this patch.
Sources/Class-Punycode.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 				}
242 242
 				if ($c === $n) {
243 243
 					$q = $delta;
244
-					for ($k = static::BASE;; $k += static::BASE) {
244
+					for ($k = static::BASE; ; $k += static::BASE) {
245 245
 						$t = $this->calculateThreshold($k, $bias);
246 246
 						if ($q < $t) {
247 247
 							break;
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 			$oldi = $i;
345 345
 			$w = 1;
346 346
 
347
-			for ($k = static::BASE;; $k += static::BASE)
347
+			for ($k = static::BASE; ; $k += static::BASE)
348 348
 			{
349 349
 				if (!isset($input[$pos]) || !isset(static::$decodeTable[$input[$pos]]))
350 350
 					return false;
Please login to merge, or discard this patch.
Braces   +22 added lines, -11 removed lines patch added patch discarded remove patch
@@ -157,12 +157,14 @@  discard block
 block discarded – undo
157 157
 		}
158 158
 
159 159
 		$parts = explode('.', $preprocessed);
160
-		foreach ($parts as $p => &$part) {
160
+		foreach ($parts as $p => &$part)
161
+		{
161 162
 			$part = $this->encodePart($part);
162 163
 
163 164
 			$validation_status = $this->validateLabel($part, true);
164 165
 
165
-			switch ($validation_status) {
166
+			switch ($validation_status)
167
+			{
166 168
 				case self::IDNA_ERROR_LABEL_TOO_LONG:
167 169
 				case self::IDNA_ERROR_LEADING_HYPHEN:
168 170
 				case self::IDNA_ERROR_TRAILING_HYPHEN:
@@ -215,13 +217,16 @@  discard block
 block discarded – undo
215 217
 		$h = $b = count($codePoints['basic']);
216 218
 
217 219
 		$output = '';
218
-		foreach ($codePoints['basic'] as $code) {
220
+		foreach ($codePoints['basic'] as $code)
221
+		{
219 222
 			$output .= $this->codePointToChar($code);
220 223
 		}
221
-		if ($input === $output) {
224
+		if ($input === $output)
225
+		{
222 226
 			return $output;
223 227
 		}
224
-		if ($b > 0) {
228
+		if ($b > 0)
229
+		{
225 230
 			$output .= static::DELIMITER;
226 231
 		}
227 232
 
@@ -230,20 +235,26 @@  discard block
 block discarded – undo
230 235
 
231 236
 		$i = 0;
232 237
 		$length = mb_strlen($input, $this->encoding);
233
-		while ($h < $length) {
238
+		while ($h < $length)
239
+		{
234 240
 			$m = $codePoints['nonBasic'][$i++];
235 241
 			$delta = $delta + ($m - $n) * ($h + 1);
236 242
 			$n = $m;
237 243
 
238
-			foreach ($codePoints['all'] as $c) {
239
-				if ($c < $n || $c < static::INITIAL_N) {
244
+			foreach ($codePoints['all'] as $c)
245
+			{
246
+				if ($c < $n || $c < static::INITIAL_N)
247
+				{
240 248
 					$delta++;
241 249
 				}
242
-				if ($c === $n) {
250
+				if ($c === $n)
251
+				{
243 252
 					$q = $delta;
244
-					for ($k = static::BASE;; $k += static::BASE) {
253
+					for ($k = static::BASE;; $k += static::BASE)
254
+					{
245 255
 						$t = $this->calculateThreshold($k, $bias);
246
-						if ($q < $t) {
256
+						if ($q < $t)
257
+						{
247 258
 							break;
248 259
 						}
249 260
 
Please login to merge, or discard this patch.