@@ -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 | }, |
@@ -5381,15 +5381,15 @@ discard block |
||
| 5381 | 5381 | |
| 5382 | 5382 | // UTF-8 occurences of MS special characters |
| 5383 | 5383 | $findchars_utf8 = array( |
| 5384 | - "\xe2\x80\x9a", // single low-9 quotation mark |
|
| 5385 | - "\xe2\x80\x9e", // double low-9 quotation mark |
|
| 5386 | - "\xe2\x80\xa6", // horizontal ellipsis |
|
| 5387 | - "\xe2\x80\x98", // left single curly quote |
|
| 5388 | - "\xe2\x80\x99", // right single curly quote |
|
| 5389 | - "\xe2\x80\x9c", // left double curly quote |
|
| 5390 | - "\xe2\x80\x9d", // right double curly quote |
|
| 5391 | - "\xe2\x80\x93", // en dash |
|
| 5392 | - "\xe2\x80\x94", // em dash |
|
| 5384 | + "\xe2\x80\x9a", // single low-9 quotation mark |
|
| 5385 | + "\xe2\x80\x9e", // double low-9 quotation mark |
|
| 5386 | + "\xe2\x80\xa6", // horizontal ellipsis |
|
| 5387 | + "\xe2\x80\x98", // left single curly quote |
|
| 5388 | + "\xe2\x80\x99", // right single curly quote |
|
| 5389 | + "\xe2\x80\x9c", // left double curly quote |
|
| 5390 | + "\xe2\x80\x9d", // right double curly quote |
|
| 5391 | + "\xe2\x80\x93", // en dash |
|
| 5392 | + "\xe2\x80\x94", // em dash |
|
| 5393 | 5393 | ); |
| 5394 | 5394 | |
| 5395 | 5395 | // windows 1252 / iso equivalents |
@@ -5407,15 +5407,15 @@ discard block |
||
| 5407 | 5407 | |
| 5408 | 5408 | // safe replacements |
| 5409 | 5409 | $replacechars = array( |
| 5410 | - ',', // ‚ |
|
| 5411 | - ',,', // „ |
|
| 5412 | - '...', // … |
|
| 5413 | - "'", // ‘ |
|
| 5414 | - "'", // ’ |
|
| 5415 | - '"', // “ |
|
| 5416 | - '"', // ” |
|
| 5417 | - '-', // – |
|
| 5418 | - '--', // — |
|
| 5410 | + ',', // ‚ |
|
| 5411 | + ',,', // „ |
|
| 5412 | + '...', // … |
|
| 5413 | + "'", // ‘ |
|
| 5414 | + "'", // ’ |
|
| 5415 | + '"', // “ |
|
| 5416 | + '"', // ” |
|
| 5417 | + '-', // – |
|
| 5418 | + '--', // — |
|
| 5419 | 5419 | ); |
| 5420 | 5420 | |
| 5421 | 5421 | if ($context['utf8']) |
@@ -6583,7 +6583,7 @@ discard block |
||
| 6583 | 6583 | EXISTS ( |
| 6584 | 6584 | SELECT bpv.id_board |
| 6585 | 6585 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
| 6586 | - WHERE bpv.id_group IN ('. implode(',', $groups) .') |
|
| 6586 | + WHERE bpv.id_group IN ('. implode(',', $groups) . ') |
|
| 6587 | 6587 | AND bpv.deny = 0 |
| 6588 | 6588 | AND bpv.id_board = b.id_board |
| 6589 | 6589 | )'; |
@@ -6593,7 +6593,7 @@ discard block |
||
| 6593 | 6593 | AND NOT EXISTS ( |
| 6594 | 6594 | SELECT bpv.id_board |
| 6595 | 6595 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
| 6596 | - WHERE bpv.id_group IN ( '. implode(',', $groups) .') |
|
| 6596 | + WHERE bpv.id_group IN ( '. implode(',', $groups) . ') |
|
| 6597 | 6597 | AND bpv.deny = 1 |
| 6598 | 6598 | AND bpv.id_board = b.id_board |
| 6599 | 6599 | )'; |
@@ -6853,8 +6853,8 @@ discard block |
||
| 6853 | 6853 | $i = 0; |
| 6854 | 6854 | while (empty($done)) |
| 6855 | 6855 | { |
| 6856 | - if (strpos($format, '{'. --$i . '}') !== false) |
|
| 6857 | - $replacements['{'. $i . '}'] = array_pop($list); |
|
| 6856 | + if (strpos($format, '{' . --$i . '}') !== false) |
|
| 6857 | + $replacements['{' . $i . '}'] = array_pop($list); |
|
| 6858 | 6858 | else |
| 6859 | 6859 | $done = true; |
| 6860 | 6860 | } |
@@ -6864,8 +6864,8 @@ discard block |
||
| 6864 | 6864 | $i = 0; |
| 6865 | 6865 | while (empty($done)) |
| 6866 | 6866 | { |
| 6867 | - if (strpos($format, '{'. ++$i . '}') !== false) |
|
| 6868 | - $replacements['{'. $i . '}'] = array_shift($list); |
|
| 6867 | + if (strpos($format, '{' . ++$i . '}') !== false) |
|
| 6868 | + $replacements['{' . $i . '}'] = array_shift($list); |
|
| 6869 | 6869 | else |
| 6870 | 6870 | $done = true; |
| 6871 | 6871 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | </div>'; |
| 108 | 108 | |
| 109 | 109 | // Show the last post if there is one. |
| 110 | - if(!empty($board['last_post']['id'])) |
|
| 110 | + if (!empty($board['last_post']['id'])) |
|
| 111 | 111 | echo' |
| 112 | 112 | <div class="lastpost lpr_border"> |
| 113 | 113 | ', function_exists('template_bi_' . $board['type'] . '_lastpost') ? call_user_func('template_bi_' . $board['type'] . '_lastpost', $board) : template_bi_board_lastpost($board), ' |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | </div>'; |
| 51 | 51 | |
| 52 | 52 | // Show the last post if there is one. |
| 53 | - if(!empty($board['last_post']['id'])) |
|
| 53 | + if (!empty($board['last_post']['id'])) |
|
| 54 | 54 | echo ' |
| 55 | 55 | <div class="lastpost lpr_border"> |
| 56 | 56 | ', function_exists('template_bi_' . $board['type'] . '_lastpost') ? call_user_func('template_bi_' . $board['type'] . '_lastpost', $board) : template_bi_board_lastpost($board), ' |
@@ -1826,7 +1826,7 @@ |
||
| 1826 | 1826 | if (!empty($excluded_groups)) |
| 1827 | 1827 | { |
| 1828 | 1828 | // Make sure this is an array of integers |
| 1829 | - $excluded_groups = array_filter((array) $excluded_groups, function ($v) |
|
| 1829 | + $excluded_groups = array_filter((array) $excluded_groups, function($v) |
|
| 1830 | 1830 | { |
| 1831 | 1831 | return is_int($v) || is_string($v) && (string) intval($v) === $v; |
| 1832 | 1832 | }); |
@@ -975,7 +975,7 @@ |
||
| 975 | 975 | else |
| 976 | 976 | { |
| 977 | 977 | $return = array(); |
| 978 | - while($row = mysqli_fetch_assoc($request)) |
|
| 978 | + while ($row = mysqli_fetch_assoc($request)) |
|
| 979 | 979 | $return[] = $row; |
| 980 | 980 | } |
| 981 | 981 | return !empty($return) ? $return : array(); |