@@ -279,7 +279,6 @@ discard block |
||
279 | 279 | $condition = 'id_member IN ({array_int:members})'; |
280 | 280 | $parameters['members'] = $members; |
281 | 281 | } |
282 | - |
|
283 | 282 | elseif ($members === null) |
284 | 283 | $condition = '1=1'; |
285 | 284 | |
@@ -382,11 +381,9 @@ discard block |
||
382 | 381 | $val = $val . ' END'; |
383 | 382 | $type = 'raw'; |
384 | 383 | } |
385 | - |
|
386 | 384 | else |
387 | 385 | $val = alert_count($members, true); |
388 | 386 | } |
389 | - |
|
390 | 387 | elseif ($type == 'int' && ($val === '+' || $val === '-')) |
391 | 388 | { |
392 | 389 | $val = $var . ' ' . $val . ' 1'; |
@@ -2202,12 +2199,12 @@ discard block |
||
2202 | 2199 | 'tag' => 'cowsay', |
2203 | 2200 | 'parameters' => array( |
2204 | 2201 | 'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc) |
2205 | - { |
|
2202 | + { |
|
2206 | 2203 | return $smcFunc['substr']($eyes . 'oo', 0, 2); |
2207 | 2204 | }, |
2208 | 2205 | ), |
2209 | 2206 | 't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => ' ', 'validate' => function ($tongue) use ($smcFunc) |
2210 | - { |
|
2207 | + { |
|
2211 | 2208 | return $smcFunc['substr']($tongue . ' ', 0, 2); |
2212 | 2209 | }, |
2213 | 2210 | ), |
@@ -3314,7 +3311,7 @@ discard block |
||
3314 | 3311 | |
3315 | 3312 | // Replace away! |
3316 | 3313 | $message = preg_replace_callback($smileyPregSearch, function($matches) use ($smileyPregReplacements) |
3317 | - { |
|
3314 | + { |
|
3318 | 3315 | return $smileyPregReplacements[$matches[1]]; |
3319 | 3316 | }, $message); |
3320 | 3317 | } |
@@ -4112,7 +4109,6 @@ discard block |
||
4112 | 4109 | if (!isset($minSeed) && isset($js_file['options']['seed'])) |
4113 | 4110 | $minSeed = $js_file['options']['seed']; |
4114 | 4111 | } |
4115 | - |
|
4116 | 4112 | else |
4117 | 4113 | { |
4118 | 4114 | echo ' |
@@ -6029,7 +6025,8 @@ discard block |
||
6029 | 6025 | $zones[$tzkey]['tzid'] = $tzid; |
6030 | 6026 | $zones[$tzkey]['dst_type'] = count($tzinfo) > 1 ? 1 : ($tzinfo[0]['isdst'] ? 2 : 0); |
6031 | 6027 | |
6032 | - foreach ($tzinfo as $transition) { |
|
6028 | + foreach ($tzinfo as $transition) |
|
6029 | + { |
|
6033 | 6030 | $zones[$tzkey]['abbrs'][] = $transition['abbr']; |
6034 | 6031 | } |
6035 | 6032 | |
@@ -6114,7 +6111,8 @@ discard block |
||
6114 | 6111 | $desc = implode(', ', array_slice(array_unique($tzvalue['locations']), 0, 5)) . (count($tzvalue['locations']) > 5 ? ', ' . $txt['etc'] : ''); |
6115 | 6112 | |
6116 | 6113 | // We don't want abbreviations like '+03' or '-11'. |
6117 | - $abbrs = array_filter($tzvalue['abbrs'], function ($abbr) { |
|
6114 | + $abbrs = array_filter($tzvalue['abbrs'], function ($abbr) |
|
6115 | + { |
|
6118 | 6116 | return !strspn($abbr, '+-'); |
6119 | 6117 | }); |
6120 | 6118 | $abbrs = count($abbrs) == count($tzvalue['abbrs']) ? array_unique($abbrs) : array(); |
@@ -6462,7 +6460,6 @@ discard block |
||
6462 | 6460 | $isWritable = true; |
6463 | 6461 | break; |
6464 | 6462 | } |
6465 | - |
|
6466 | 6463 | else |
6467 | 6464 | @chmod($file, $val); |
6468 | 6465 | } |