@@ -152,7 +152,9 @@ |
||
152 | 152 | |
153 | 153 | $feed_meta = array( |
154 | 154 | 'title' => sprintf($txt['profile_of_username'], $user_profile[$uid]['real_name']), |
155 | - 'desc' => sentence_list(array_map(function ($datatype) use ($txt) { return $txt[$datatype]; }, array_keys($included))), |
|
155 | + 'desc' => sentence_list(array_map(function ($datatype) use ($txt) |
|
156 | + { |
|
157 | +return $txt[$datatype]; }, array_keys($included))), |
|
156 | 158 | 'author' => $mbname, |
157 | 159 | 'source' => $scripturl . '?action=profile;u=' . $uid, |
158 | 160 | 'self' => '', // Unused, but can't be null. |
@@ -163,7 +163,8 @@ |
||
163 | 163 | else |
164 | 164 | $context['help_text'] = $_GET['help']; |
165 | 165 | |
166 | - switch ($_GET['help']) { |
|
166 | + switch ($_GET['help']) |
|
167 | + { |
|
167 | 168 | case 'cal_short_months': |
168 | 169 | $context['help_text'] = sprintf($context['help_text'], $txt['months_short'][1], $txt['months_titles'][1]); |
169 | 170 | break; |
@@ -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'; |
@@ -2176,12 +2173,12 @@ discard block |
||
2176 | 2173 | 'tag' => 'cowsay', |
2177 | 2174 | 'parameters' => array( |
2178 | 2175 | 'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc) |
2179 | - { |
|
2176 | + { |
|
2180 | 2177 | return $smcFunc['substr']($eyes . 'oo', 0, 2); |
2181 | 2178 | }, |
2182 | 2179 | ), |
2183 | 2180 | 't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => ' ', 'validate' => function ($tongue) use ($smcFunc) |
2184 | - { |
|
2181 | + { |
|
2185 | 2182 | return $smcFunc['substr']($tongue . ' ', 0, 2); |
2186 | 2183 | }, |
2187 | 2184 | ), |
@@ -3279,7 +3276,7 @@ discard block |
||
3279 | 3276 | |
3280 | 3277 | // Replace away! |
3281 | 3278 | $message = preg_replace_callback($smileyPregSearch, function($matches) use ($smileyPregReplacements) |
3282 | - { |
|
3279 | + { |
|
3283 | 3280 | return $smileyPregReplacements[$matches[1]]; |
3284 | 3281 | }, $message); |
3285 | 3282 | } |
@@ -4077,7 +4074,6 @@ discard block |
||
4077 | 4074 | if (!isset($minSeed) && isset($js_file['options']['seed'])) |
4078 | 4075 | $minSeed = $js_file['options']['seed']; |
4079 | 4076 | } |
4080 | - |
|
4081 | 4077 | else |
4082 | 4078 | { |
4083 | 4079 | echo ' |
@@ -6360,7 +6356,6 @@ discard block |
||
6360 | 6356 | $isWritable = true; |
6361 | 6357 | break; |
6362 | 6358 | } |
6363 | - |
|
6364 | 6359 | else |
6365 | 6360 | @chmod($file, $val); |
6366 | 6361 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | // Set a list of common functions. |
105 | 105 | $ent_list = '&(?:#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . '|quot|amp|lt|gt|nbsp);'; |
106 | 106 | $ent_check = empty($modSettings['disableEntityCheck']) ? function($string) |
107 | - { |
|
107 | + { |
|
108 | 108 | $string = preg_replace_callback('~(&#(\d{1,7}|x[0-9a-fA-F]{1,6});)~', 'entity_fix__callback', $string); |
109 | 109 | return $string; |
110 | 110 | } : function($string) |
@@ -929,7 +929,6 @@ discard block |
||
929 | 929 | $user_info_min[$row['id_member']]['time_offset'] = ($tz_user->getOffset($time_user) - |
930 | 930 | $tz_system->getOffset($time_system)) / 3600; |
931 | 931 | } |
932 | - |
|
933 | 932 | else |
934 | 933 | $user_info_min[$row['id_member']]['time_offset'] = empty($row['time_offset']) ? 0 : $row['time_offset']; |
935 | 934 | } |
@@ -1657,7 +1656,6 @@ discard block |
||
1657 | 1656 | $time_user = new DateTime('now', $tz_user); |
1658 | 1657 | $profile['time_offset'] = ($tz_user->getOffset($time_user) - $tz_system->getOffset($time_system)) / 3600; |
1659 | 1658 | } |
1660 | - |
|
1661 | 1659 | else |
1662 | 1660 | { |
1663 | 1661 | // !!! Compatibility. |
@@ -2322,7 +2320,6 @@ discard block |
||
2322 | 2320 | loadLanguage('index+Modifications'); |
2323 | 2321 | $context['template_layers'] = array(); |
2324 | 2322 | } |
2325 | - |
|
2326 | 2323 | else |
2327 | 2324 | { |
2328 | 2325 | // Custom templates to load, or just default? |