@@ -143,7 +143,7 @@ |
||
143 | 143 | |
144 | 144 | // Redirect to the selector if they chose selective. |
145 | 145 | if ($_POST['step2'] == 'selective') |
146 | - redirectexit ('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0'); |
|
146 | + redirectexit('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0'); |
|
147 | 147 | |
148 | 148 | $_POST['at'] = (int) $_POST['at']; |
149 | 149 | $messagesToBeSplit = array(); |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | { |
392 | 392 | $val = 'CASE '; |
393 | 393 | foreach ($members as $k => $v) |
394 | - $val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' '; |
|
394 | + $val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' '; |
|
395 | 395 | $val = $val . ' END'; |
396 | 396 | $type = 'raw'; |
397 | 397 | } |
@@ -1407,7 +1407,7 @@ discard block |
||
1407 | 1407 | 'type' => 'unparsed_commas_content', |
1408 | 1408 | 'test' => '\d+,\d+\]', |
1409 | 1409 | 'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>', |
1410 | - 'validate' => function (&$tag, &$data, $disabled) |
|
1410 | + 'validate' => function(&$tag, &$data, $disabled) |
|
1411 | 1411 | { |
1412 | 1412 | $scheme = parse_url($data[0], PHP_URL_SCHEME); |
1413 | 1413 | if (empty($scheme)) |
@@ -1969,7 +1969,7 @@ discard block |
||
1969 | 1969 | $codes[] = array( |
1970 | 1970 | 'tag' => 'cowsay', |
1971 | 1971 | 'parameters' => array( |
1972 | - 'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc) |
|
1972 | + 'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc) |
|
1973 | 1973 | { |
1974 | 1974 | static $css_added; |
1975 | 1975 | |
@@ -1986,7 +1986,7 @@ discard block |
||
1986 | 1986 | return $smcFunc['substr']($eyes . 'oo', 0, 2); |
1987 | 1987 | }, |
1988 | 1988 | ), |
1989 | - 't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => ' ', 'validate' => function ($tongue) use ($smcFunc) |
|
1989 | + 't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => ' ', 'validate' => function($tongue) use ($smcFunc) |
|
1990 | 1990 | { |
1991 | 1991 | return $smcFunc['substr']($tongue . ' ', 0, 2); |
1992 | 1992 | }, |
@@ -3938,7 +3938,7 @@ discard block |
||
3938 | 3938 | $toMinify = array(); |
3939 | 3939 | $normal = array(); |
3940 | 3940 | |
3941 | - usort($context['css_files'], function ($a, $b) |
|
3941 | + usort($context['css_files'], function($a, $b) |
|
3942 | 3942 | { |
3943 | 3943 | return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0); |
3944 | 3944 | }); |
@@ -5386,15 +5386,15 @@ discard block |
||
5386 | 5386 | |
5387 | 5387 | // UTF-8 occurences of MS special characters |
5388 | 5388 | $findchars_utf8 = array( |
5389 | - "\xe2\x80\x9a", // single low-9 quotation mark |
|
5390 | - "\xe2\x80\x9e", // double low-9 quotation mark |
|
5391 | - "\xe2\x80\xa6", // horizontal ellipsis |
|
5392 | - "\xe2\x80\x98", // left single curly quote |
|
5393 | - "\xe2\x80\x99", // right single curly quote |
|
5394 | - "\xe2\x80\x9c", // left double curly quote |
|
5395 | - "\xe2\x80\x9d", // right double curly quote |
|
5396 | - "\xe2\x80\x93", // en dash |
|
5397 | - "\xe2\x80\x94", // em dash |
|
5389 | + "\xe2\x80\x9a", // single low-9 quotation mark |
|
5390 | + "\xe2\x80\x9e", // double low-9 quotation mark |
|
5391 | + "\xe2\x80\xa6", // horizontal ellipsis |
|
5392 | + "\xe2\x80\x98", // left single curly quote |
|
5393 | + "\xe2\x80\x99", // right single curly quote |
|
5394 | + "\xe2\x80\x9c", // left double curly quote |
|
5395 | + "\xe2\x80\x9d", // right double curly quote |
|
5396 | + "\xe2\x80\x93", // en dash |
|
5397 | + "\xe2\x80\x94", // em dash |
|
5398 | 5398 | ); |
5399 | 5399 | |
5400 | 5400 | // windows 1252 / iso equivalents |
@@ -5412,15 +5412,15 @@ discard block |
||
5412 | 5412 | |
5413 | 5413 | // safe replacements |
5414 | 5414 | $replacechars = array( |
5415 | - ',', // ‚ |
|
5416 | - ',,', // „ |
|
5417 | - '...', // … |
|
5418 | - "'", // ‘ |
|
5419 | - "'", // ’ |
|
5420 | - '"', // “ |
|
5421 | - '"', // ” |
|
5422 | - '-', // – |
|
5423 | - '--', // — |
|
5415 | + ',', // ‚ |
|
5416 | + ',,', // „ |
|
5417 | + '...', // … |
|
5418 | + "'", // ‘ |
|
5419 | + "'", // ’ |
|
5420 | + '"', // “ |
|
5421 | + '"', // ” |
|
5422 | + '-', // – |
|
5423 | + '--', // — |
|
5424 | 5424 | ); |
5425 | 5425 | |
5426 | 5426 | if ($context['utf8']) |
@@ -6550,7 +6550,7 @@ discard block |
||
6550 | 6550 | EXISTS ( |
6551 | 6551 | SELECT bpv.id_board |
6552 | 6552 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
6553 | - WHERE bpv.id_group IN ('. implode(',', $groups) .') |
|
6553 | + WHERE bpv.id_group IN ('. implode(',', $groups) . ') |
|
6554 | 6554 | AND bpv.deny = 0 |
6555 | 6555 | AND bpv.id_board = b.id_board |
6556 | 6556 | )'; |
@@ -6560,7 +6560,7 @@ discard block |
||
6560 | 6560 | AND NOT EXISTS ( |
6561 | 6561 | SELECT bpv.id_board |
6562 | 6562 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
6563 | - WHERE bpv.id_group IN ( '. implode(',', $groups) .') |
|
6563 | + WHERE bpv.id_group IN ( '. implode(',', $groups) . ') |
|
6564 | 6564 | AND bpv.deny = 1 |
6565 | 6565 | AND bpv.id_board = b.id_board |
6566 | 6566 | )'; |
@@ -6820,8 +6820,8 @@ discard block |
||
6820 | 6820 | $i = 0; |
6821 | 6821 | while (empty($done)) |
6822 | 6822 | { |
6823 | - if (strpos($format, '{'. --$i . '}') !== false) |
|
6824 | - $replacements['{'. $i . '}'] = array_pop($list); |
|
6823 | + if (strpos($format, '{' . --$i . '}') !== false) |
|
6824 | + $replacements['{' . $i . '}'] = array_pop($list); |
|
6825 | 6825 | else |
6826 | 6826 | $done = true; |
6827 | 6827 | } |
@@ -6831,8 +6831,8 @@ discard block |
||
6831 | 6831 | $i = 0; |
6832 | 6832 | while (empty($done)) |
6833 | 6833 | { |
6834 | - if (strpos($format, '{'. ++$i . '}') !== false) |
|
6835 | - $replacements['{'. $i . '}'] = array_shift($list); |
|
6834 | + if (strpos($format, '{' . ++$i . '}') !== false) |
|
6835 | + $replacements['{' . $i . '}'] = array_shift($list); |
|
6836 | 6836 | else |
6837 | 6837 | $done = true; |
6838 | 6838 | } |
@@ -1282,7 +1282,7 @@ |
||
1282 | 1282 | // File Upload. |
1283 | 1283 | if ($context['can_post_attachment']) |
1284 | 1284 | { |
1285 | - $acceptedFiles = implode(',', array_map(function ($val) use ($smcFunc) |
|
1285 | + $acceptedFiles = implode(',', array_map(function($val) use ($smcFunc) |
|
1286 | 1286 | { |
1287 | 1287 | return '.' . $smcFunc['htmltrim']($val); |
1288 | 1288 | }, explode(',', $context['allowed_extensions']))); |