@@ -302,7 +302,6 @@ discard block |
||
| 302 | 302 | $condition = 'id_member IN ({array_int:members})'; |
| 303 | 303 | $parameters['members'] = $members; |
| 304 | 304 | } |
| 305 | - |
|
| 306 | 305 | elseif ($members === null) |
| 307 | 306 | $condition = '1=1'; |
| 308 | 307 | |
@@ -1739,7 +1738,7 @@ discard block |
||
| 1739 | 1738 | 'before' => '<span style="text-shadow: $1 $2">', |
| 1740 | 1739 | 'after' => '</span>', |
| 1741 | 1740 | 'validate' => function(&$tag, &$data, $disabled) |
| 1742 | - { |
|
| 1741 | + { |
|
| 1743 | 1742 | |
| 1744 | 1743 | if ($data[1] == 'top' || (is_numeric($data[1]) && $data[1] < 50)) |
| 1745 | 1744 | $data[1] = '0 -2px 1px'; |
@@ -1901,7 +1900,8 @@ discard block |
||
| 1901 | 1900 | { |
| 1902 | 1901 | if (isset($temp_bbc)) |
| 1903 | 1902 | $bbc_codes = $temp_bbc; |
| 1904 | - usort($codes, function ($a, $b) { |
|
| 1903 | + usort($codes, function ($a, $b) |
|
| 1904 | + { |
|
| 1905 | 1905 | return strcmp($a['tag'], $b['tag']); |
| 1906 | 1906 | }); |
| 1907 | 1907 | return $codes; |
@@ -2185,7 +2185,8 @@ discard block |
||
| 2185 | 2185 | )? |
| 2186 | 2186 | '; |
| 2187 | 2187 | |
| 2188 | - $data = preg_replace_callback('~' . $url_regex . '~xi' . ($context['utf8'] ? 'u' : ''), function ($matches) { |
|
| 2188 | + $data = preg_replace_callback('~' . $url_regex . '~xi' . ($context['utf8'] ? 'u' : ''), function ($matches) |
|
| 2189 | + { |
|
| 2189 | 2190 | $url = array_shift($matches); |
| 2190 | 2191 | |
| 2191 | 2192 | // If this isn't a clean URL, bail out |
@@ -2274,7 +2275,9 @@ discard block |
||
| 2274 | 2275 | $look_for = strtolower(substr($message, $pos + 2, $pos2 - $pos - 2)); |
| 2275 | 2276 | |
| 2276 | 2277 | // A closing tag that doesn't match any open tags? Skip it. |
| 2277 | - if (!in_array($look_for, array_map(function($code){return $code['tag'];}, $open_tags))) |
|
| 2278 | + if (!in_array($look_for, array_map(function($code) |
|
| 2279 | + { |
|
| 2280 | +return $code['tag'];}, $open_tags))) |
|
| 2278 | 2281 | continue; |
| 2279 | 2282 | |
| 2280 | 2283 | $to_close = array(); |
@@ -3759,7 +3762,6 @@ discard block |
||
| 3759 | 3762 | if (!isset($minSeed) && isset($js_file['options']['seed'])) |
| 3760 | 3763 | $minSeed = $js_file['options']['seed']; |
| 3761 | 3764 | } |
| 3762 | - |
|
| 3763 | 3765 | else |
| 3764 | 3766 | echo ' |
| 3765 | 3767 | <script src="', $js_file['fileUrl'], '"', !empty($js_file['options']['async']) ? ' async' : '', !empty($js_file['options']['defer']) ? ' defer' : '', '></script>'; |
@@ -3909,7 +3911,9 @@ discard block |
||
| 3909 | 3911 | return $data; |
| 3910 | 3912 | |
| 3911 | 3913 | // Different pages include different files, so we use a hash to label the different combinations |
| 3912 | - $hash = md5(implode(' ', array_map(function($file) { return $file['filePath'] . (int) @filesize($file['filePath']) . (int) @filemtime($file['filePath']); }, $data))); |
|
| 3914 | + $hash = md5(implode(' ', array_map(function($file) |
|
| 3915 | + { |
|
| 3916 | +return $file['filePath'] . (int) @filesize($file['filePath']) . (int) @filemtime($file['filePath']); }, $data))); |
|
| 3913 | 3917 | |
| 3914 | 3918 | // Is this a deferred or asynchonous JavaScript file? |
| 3915 | 3919 | $async = $type === 'js'; |
@@ -5910,7 +5914,6 @@ discard block |
||
| 5910 | 5914 | $isWritable = true; |
| 5911 | 5915 | break; |
| 5912 | 5916 | } |
| 5913 | - |
|
| 5914 | 5917 | else |
| 5915 | 5918 | @chmod($file, $val); |
| 5916 | 5919 | } |
@@ -6080,7 +6083,8 @@ discard block |
||
| 6080 | 6083 | if (!empty($tlds)) |
| 6081 | 6084 | { |
| 6082 | 6085 | // Clean $tlds and convert it to an array |
| 6083 | - $tlds = array_filter(explode("\n", strtolower($tlds)), function($line) { |
|
| 6086 | + $tlds = array_filter(explode("\n", strtolower($tlds)), function($line) |
|
| 6087 | + { |
|
| 6084 | 6088 | $line = trim($line); |
| 6085 | 6089 | if (empty($line) || strpos($line, '#') !== false || strpos($line, ' ') !== false) |
| 6086 | 6090 | return false; |
@@ -6091,7 +6095,9 @@ discard block |
||
| 6091 | 6095 | // Convert Punycode to Unicode |
| 6092 | 6096 | require_once($sourcedir . '/Class-Punycode.php'); |
| 6093 | 6097 | $Punycode = new Punycode(); |
| 6094 | - $tlds = array_map(function ($input) use ($Punycode) { return $Punycode->decode($input); }, $tlds); |
|
| 6098 | + $tlds = array_map(function ($input) use ($Punycode) |
|
| 6099 | + { |
|
| 6100 | +return $Punycode->decode($input); }, $tlds); |
|
| 6095 | 6101 | } |
| 6096 | 6102 | // Otherwise, use the 2012 list of gTLDs and ccTLDs for now and schedule a background update |
| 6097 | 6103 | else |
@@ -6258,7 +6264,8 @@ discard block |
||
| 6258 | 6264 | } |
| 6259 | 6265 | |
| 6260 | 6266 | // Sort by key length and then alphabetically |
| 6261 | - uksort($regex, function($k1, $k2) use (&$strlen) { |
|
| 6267 | + uksort($regex, function($k1, $k2) use (&$strlen) |
|
| 6268 | + { |
|
| 6262 | 6269 | $l1 = $strlen($k1); |
| 6263 | 6270 | $l2 = $strlen($k2); |
| 6264 | 6271 | |
@@ -6512,7 +6519,8 @@ discard block |
||
| 6512 | 6519 | function sanitize_iri($iri) |
| 6513 | 6520 | { |
| 6514 | 6521 | // Encode any non-ASCII characters (but not space or control characters of any sort) |
| 6515 | - $iri = preg_replace_callback('~[^\x00-\x7F\pZ\pC]~u', function ($matches) { |
|
| 6522 | + $iri = preg_replace_callback('~[^\x00-\x7F\pZ\pC]~u', function ($matches) |
|
| 6523 | + { |
|
| 6516 | 6524 | return rawurlencode($matches[0]); |
| 6517 | 6525 | }, $iri); |
| 6518 | 6526 | |