@@ -1965,7 +1965,7 @@ |
||
1965 | 1965 | // Remove anything that isn't actually new from our list of files |
1966 | 1966 | foreach ($to_unset as $key => $ids) |
1967 | 1967 | { |
1968 | - if (array_reduce($ids, function ($carry, $item) { return $carry * $item; }, true) == true) |
|
1968 | + if (array_reduce($ids, function($carry, $item) { return $carry * $item; }, true) == true) |
|
1969 | 1969 | unset($smiley_files[$key]); |
1970 | 1970 | } |
1971 | 1971 |
@@ -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 | }, |
@@ -5382,15 +5382,15 @@ discard block |
||
5382 | 5382 | |
5383 | 5383 | // UTF-8 occurences of MS special characters |
5384 | 5384 | $findchars_utf8 = array( |
5385 | - "\xe2\x80\x9a", // single low-9 quotation mark |
|
5386 | - "\xe2\x80\x9e", // double low-9 quotation mark |
|
5387 | - "\xe2\x80\xa6", // horizontal ellipsis |
|
5388 | - "\xe2\x80\x98", // left single curly quote |
|
5389 | - "\xe2\x80\x99", // right single curly quote |
|
5390 | - "\xe2\x80\x9c", // left double curly quote |
|
5391 | - "\xe2\x80\x9d", // right double curly quote |
|
5392 | - "\xe2\x80\x93", // en dash |
|
5393 | - "\xe2\x80\x94", // em dash |
|
5385 | + "\xe2\x80\x9a", // single low-9 quotation mark |
|
5386 | + "\xe2\x80\x9e", // double low-9 quotation mark |
|
5387 | + "\xe2\x80\xa6", // horizontal ellipsis |
|
5388 | + "\xe2\x80\x98", // left single curly quote |
|
5389 | + "\xe2\x80\x99", // right single curly quote |
|
5390 | + "\xe2\x80\x9c", // left double curly quote |
|
5391 | + "\xe2\x80\x9d", // right double curly quote |
|
5392 | + "\xe2\x80\x93", // en dash |
|
5393 | + "\xe2\x80\x94", // em dash |
|
5394 | 5394 | ); |
5395 | 5395 | |
5396 | 5396 | // windows 1252 / iso equivalents |
@@ -5408,15 +5408,15 @@ discard block |
||
5408 | 5408 | |
5409 | 5409 | // safe replacements |
5410 | 5410 | $replacechars = array( |
5411 | - ',', // ‚ |
|
5412 | - ',,', // „ |
|
5413 | - '...', // … |
|
5414 | - "'", // ‘ |
|
5415 | - "'", // ’ |
|
5416 | - '"', // “ |
|
5417 | - '"', // ” |
|
5418 | - '-', // – |
|
5419 | - '--', // — |
|
5411 | + ',', // ‚ |
|
5412 | + ',,', // „ |
|
5413 | + '...', // … |
|
5414 | + "'", // ‘ |
|
5415 | + "'", // ’ |
|
5416 | + '"', // “ |
|
5417 | + '"', // ” |
|
5418 | + '-', // – |
|
5419 | + '--', // — |
|
5420 | 5420 | ); |
5421 | 5421 | |
5422 | 5422 | if ($context['utf8']) |
@@ -6584,7 +6584,7 @@ discard block |
||
6584 | 6584 | EXISTS ( |
6585 | 6585 | SELECT bpv.id_board |
6586 | 6586 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
6587 | - WHERE bpv.id_group IN ('. implode(',', $groups) .') |
|
6587 | + WHERE bpv.id_group IN ('. implode(',', $groups) . ') |
|
6588 | 6588 | AND bpv.deny = 0 |
6589 | 6589 | AND bpv.id_board = b.id_board |
6590 | 6590 | )'; |
@@ -6594,7 +6594,7 @@ discard block |
||
6594 | 6594 | AND NOT EXISTS ( |
6595 | 6595 | SELECT bpv.id_board |
6596 | 6596 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
6597 | - WHERE bpv.id_group IN ( '. implode(',', $groups) .') |
|
6597 | + WHERE bpv.id_group IN ( '. implode(',', $groups) . ') |
|
6598 | 6598 | AND bpv.deny = 1 |
6599 | 6599 | AND bpv.id_board = b.id_board |
6600 | 6600 | )'; |
@@ -6854,8 +6854,8 @@ discard block |
||
6854 | 6854 | $i = 0; |
6855 | 6855 | while (empty($done)) |
6856 | 6856 | { |
6857 | - if (strpos($format, '{'. --$i . '}') !== false) |
|
6858 | - $replacements['{'. $i . '}'] = array_pop($list); |
|
6857 | + if (strpos($format, '{' . --$i . '}') !== false) |
|
6858 | + $replacements['{' . $i . '}'] = array_pop($list); |
|
6859 | 6859 | else |
6860 | 6860 | $done = true; |
6861 | 6861 | } |
@@ -6865,8 +6865,8 @@ discard block |
||
6865 | 6865 | $i = 0; |
6866 | 6866 | while (empty($done)) |
6867 | 6867 | { |
6868 | - if (strpos($format, '{'. ++$i . '}') !== false) |
|
6869 | - $replacements['{'. $i . '}'] = array_shift($list); |
|
6868 | + if (strpos($format, '{' . ++$i . '}') !== false) |
|
6869 | + $replacements['{' . $i . '}'] = array_shift($list); |
|
6870 | 6870 | else |
6871 | 6871 | $done = true; |
6872 | 6872 | } |