@@ -1931,7 +1931,7 @@ |
||
1931 | 1931 | <div class="floatright smalltext righttext"> |
1932 | 1932 | <div class="recipient_to">« <strong>', $txt['to'], ':</strong> ', implode(', ', $draft['recipients']['to']), ' »</div>'; |
1933 | 1933 | |
1934 | - if(!empty($draft['recipients']['bcc'])) |
|
1934 | + if (!empty($draft['recipients']['bcc'])) |
|
1935 | 1935 | echo' |
1936 | 1936 | <div class="pm_bbc">« <strong>', $txt['pm_bcc'], ':</strong> ', implode(', ', $draft['recipients']['bcc']), ' »</div>'; |
1937 | 1937 |
@@ -1241,7 +1241,7 @@ |
||
1241 | 1241 | // File Upload. |
1242 | 1242 | if ($context['can_post_attachment']) |
1243 | 1243 | { |
1244 | - $acceptedFiles = empty($context['allowed_extensions']) ? '' : implode(',', array_map(function ($val) use ($smcFunc) |
|
1244 | + $acceptedFiles = empty($context['allowed_extensions']) ? '' : implode(',', array_map(function($val) use ($smcFunc) |
|
1245 | 1245 | { |
1246 | 1246 | return !empty($val) ? ('.' . $smcFunc['htmltrim']($val)) : ''; |
1247 | 1247 | }, explode(',', $context['allowed_extensions']))); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | display_db_error(); |
74 | 74 | |
75 | 75 | // We need to escape ' and \ |
76 | - $db_passwd = str_replace(array('\\','\''), array('\\\\','\\\''), $db_passwd); |
|
76 | + $db_passwd = str_replace(array('\\', '\''), array('\\\\', '\\\''), $db_passwd); |
|
77 | 77 | |
78 | 78 | if (!empty($db_options['persist'])) |
79 | 79 | $connection = @pg_pconnect((empty($db_server) ? '' : 'host=' . $db_server . ' ') . 'dbname=' . $db_name . ' user=\'' . $db_user . '\' password=\'' . $db_passwd . '\'' . (empty($db_options['port']) ? '' : ' port=\'' . $db_options['port'] . '\'')); |
@@ -925,7 +925,7 @@ discard block |
||
925 | 925 | if (filter_var($error_array[2], FILTER_VALIDATE_IP) === false) |
926 | 926 | $error_array[2] = null; |
927 | 927 | |
928 | - if(empty($db_persist)) |
|
928 | + if (empty($db_persist)) |
|
929 | 929 | { // without pooling |
930 | 930 | if (empty($pg_error_data_prep)) |
931 | 931 | $pg_error_data_prep = pg_prepare($db_connection, 'smf_log_errors', |
@@ -1683,7 +1683,7 @@ discard block |
||
1683 | 1683 | // Prevents warnings about constants that are already defined. |
1684 | 1684 | $settingsText = preg_replace_callback( |
1685 | 1685 | '~\bdefine\s*\(\s*(["\'])(\w+)\1~', |
1686 | - function ($matches) |
|
1686 | + function($matches) |
|
1687 | 1687 | { |
1688 | 1688 | return 'define(\'' . md5(mt_rand()) . '\''; |
1689 | 1689 | }, |
@@ -1693,7 +1693,7 @@ discard block |
||
1693 | 1693 | // Handle eval errors gracefully in both PHP 5 and PHP 7 |
1694 | 1694 | try |
1695 | 1695 | { |
1696 | - if($settingsText !== '' && @eval($settingsText) === false) |
|
1696 | + if ($settingsText !== '' && @eval($settingsText) === false) |
|
1697 | 1697 | throw new ErrorException('eval error'); |
1698 | 1698 | |
1699 | 1699 | unset($mtime, $settingsFile, $settingsText); |
@@ -1900,7 +1900,7 @@ discard block |
||
1900 | 1900 | } |
1901 | 1901 | |
1902 | 1902 | // Everything is simpler if we convert heredocs to normal strings first. |
1903 | - if (preg_match_all('/<<<(\'?)(\w+)\'?'. $line_ending . '(.*?)'. $line_ending . '\2;$/m', $code_str, $matches)) |
|
1903 | + if (preg_match_all('/<<<(\'?)(\w+)\'?' . $line_ending . '(.*?)' . $line_ending . '\2;$/m', $code_str, $matches)) |
|
1904 | 1904 | { |
1905 | 1905 | foreach ($matches[0] as $mkey => $heredoc) |
1906 | 1906 | { |
@@ -1914,7 +1914,7 @@ discard block |
||
1914 | 1914 | } |
1915 | 1915 | |
1916 | 1916 | // Split before everything that could possibly delimit a comment or a string. |
1917 | - $parts = preg_split('~(?=#+|/(?=/|\*)|\*/|'. $line_ending . '|(?<!\\\)[\'"])~m', $code_str); |
|
1917 | + $parts = preg_split('~(?=#+|/(?=/|\*)|\*/|' . $line_ending . '|(?<!\\\)[\'"])~m', $code_str); |
|
1918 | 1918 | |
1919 | 1919 | $in_string = 0; |
1920 | 1920 | $in_comment = 0; |
@@ -282,7 +282,7 @@ |
||
282 | 282 | '{db_prefix}log_notify', |
283 | 283 | array('id_member' => 'int', 'id_topic' => 'int', 'id_board' => 'int'), |
284 | 284 | array($user_info['id'], $log['id_topic'], 0), |
285 | - array('id_member','id_topic', 'id_board') |
|
285 | + array('id_member', 'id_topic', 'id_board') |
|
286 | 286 | ); |
287 | 287 | } |
288 | 288 | else |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if ($type == 'edit') |
119 | 119 | { |
120 | 120 | // Filter out members who have already been notified about this post's topic |
121 | - $unnotified = array_filter($watched, function ($member) |
|
121 | + $unnotified = array_filter($watched, function($member) |
|
122 | 122 | { |
123 | 123 | return empty($member['sent']); |
124 | 124 | }); |
@@ -204,8 +204,7 @@ discard block |
||
204 | 204 | if (!empty($member_data['id_topic']) && $type != 'topic' && !empty($prefs[$member_id])) |
205 | 205 | { |
206 | 206 | $pref = !empty($prefs[$member_id]['topic_notify_' . $topicOptions['id']]) ? |
207 | - $prefs[$member_id]['topic_notify_' . $topicOptions['id']] : |
|
208 | - (!empty($prefs[$member_id]['topic_notify']) ? $prefs[$member_id]['topic_notify'] : 0); |
|
207 | + $prefs[$member_id]['topic_notify_' . $topicOptions['id']] : (!empty($prefs[$member_id]['topic_notify']) ? $prefs[$member_id]['topic_notify'] : 0); |
|
209 | 208 | |
210 | 209 | $message_type = 'notification_' . $type; |
211 | 210 | |
@@ -224,8 +223,7 @@ discard block |
||
224 | 223 | elseif ($type == 'topic') |
225 | 224 | { |
226 | 225 | $pref = !empty($prefs[$member_id]['board_notify_' . $topicOptions['board']]) ? |
227 | - $prefs[$member_id]['board_notify_' . $topicOptions['board']] : |
|
228 | - (!empty($prefs[$member_id]['board_notify']) ? $prefs[$member_id]['board_notify'] : 0); |
|
226 | + $prefs[$member_id]['board_notify_' . $topicOptions['board']] : (!empty($prefs[$member_id]['board_notify']) ? $prefs[$member_id]['board_notify'] : 0); |
|
229 | 227 | |
230 | 228 | $content_type = 'board'; |
231 | 229 |
@@ -355,8 +355,8 @@ |
||
355 | 355 | elseif (isset($_POST['delall']) && isset($filter)) |
356 | 356 | { |
357 | 357 | // ip need a different placeholder type |
358 | - $filter_type = $filter['variable'] == 'ip'? 'inet' : 'string'; |
|
359 | - $filter_op = $filter['variable'] == 'ip'? '=' : 'LIKE'; |
|
358 | + $filter_type = $filter['variable'] == 'ip' ? 'inet' : 'string'; |
|
359 | + $filter_op = $filter['variable'] == 'ip' ? '=' : 'LIKE'; |
|
360 | 360 | $smcFunc['db_query']('', ' |
361 | 361 | DELETE FROM {db_prefix}log_errors |
362 | 362 | WHERE ' . $filter['variable'] . ' ' . $filter_op . ' {' . $filter_type . ':filter}', |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | ); |
93 | 93 | foreach (array('action', 'sa', 'type', 'board', 'boards', 'c', 'u', 'limit', 'offset') as $var) |
94 | 94 | if (isset($_GET[$var])) |
95 | - $feed_meta['self'] .= ($feed_meta['self'] === $scripturl ? '?' : ';' ) . $var . '=' . $_GET[$var]; |
|
95 | + $feed_meta['self'] .= ($feed_meta['self'] === $scripturl ? '?' : ';') . $var . '=' . $_GET[$var]; |
|
96 | 96 | |
97 | 97 | // Handle the cases where a board, boards, or category is asked for. |
98 | 98 | $query_this_board = 1; |
@@ -299,17 +299,17 @@ discard block |
||
299 | 299 | * namespaces, which could cause it to mangle the XML horrifically |
300 | 300 | * during processing. |
301 | 301 | */ |
302 | - $smf_ns = 'htt'.'p:/'.'/ww'.'w.simple'.'machines.o'.'rg/xml/' . $subaction; |
|
302 | + $smf_ns = 'htt' . 'p:/' . '/ww' . 'w.simple' . 'machines.o' . 'rg/xml/' . $subaction; |
|
303 | 303 | |
304 | 304 | // Allow mods to add extra namespaces and tags to the feed/channel |
305 | 305 | $namespaces = array( |
306 | 306 | 'rss' => array(), |
307 | - 'rss2' => array('atom' => 'htt'.'p:/'.'/ww'.'w.w3.o'.'rg/2005/Atom'), |
|
308 | - 'atom' => array('' => 'htt'.'p:/'.'/ww'.'w.w3.o'.'rg/2005/Atom'), |
|
307 | + 'rss2' => array('atom' => 'htt' . 'p:/' . '/ww' . 'w.w3.o' . 'rg/2005/Atom'), |
|
308 | + 'atom' => array('' => 'htt' . 'p:/' . '/ww' . 'w.w3.o' . 'rg/2005/Atom'), |
|
309 | 309 | 'rdf' => array( |
310 | - '' => 'htt'.'p:/'.'/purl.o'.'rg/rss/1.0/', |
|
311 | - 'rdf' => 'htt'.'p:/'.'/ww'.'w.w3.o'.'rg/1999/02/22-rdf-syntax-ns#', |
|
312 | - 'dc' => 'htt'.'p:/'.'/purl.o'.'rg/dc/elements/1.1/', |
|
310 | + '' => 'htt' . 'p:/' . '/purl.o' . 'rg/rss/1.0/', |
|
311 | + 'rdf' => 'htt' . 'p:/' . '/ww' . 'w.w3.o' . 'rg/1999/02/22-rdf-syntax-ns#', |
|
312 | + 'dc' => 'htt' . 'p:/' . '/purl.o' . 'rg/dc/elements/1.1/', |
|
313 | 313 | ), |
314 | 314 | 'smf' => array( |
315 | 315 | 'smf' => $smf_ns, |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | { |
378 | 378 | $val = 'CASE '; |
379 | 379 | foreach ($members as $k => $v) |
380 | - $val .= 'WHEN id_member = ' . $v . ' THEN '. alert_count($v, true) . ' '; |
|
380 | + $val .= 'WHEN id_member = ' . $v . ' THEN ' . alert_count($v, true) . ' '; |
|
381 | 381 | |
382 | 382 | $val = $val . ' END'; |
383 | 383 | $type = 'raw'; |
@@ -1041,11 +1041,11 @@ discard block |
||
1041 | 1041 | // Anything that isn't a specification, punctuation mark, or whitespace. |
1042 | 1042 | '~(?<!%)\p{L}|[^\p{L}\p{P}\s]~u', |
1043 | 1043 | // A series of punctuation marks (except %), possibly separated by whitespace. |
1044 | - '~([^%\P{P}])(\s*)(?'.'>(\1|[^%\P{Po}])\s*(?!$))*~u', |
|
1044 | + '~([^%\P{P}])(\s*)(?' . '>(\1|[^%\P{Po}])\s*(?!$))*~u', |
|
1045 | 1045 | // Unwanted trailing punctuation and whitespace. |
1046 | - '~(?'.'>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u', |
|
1046 | + '~(?' . '>([\p{Pd}\p{Ps}\p{Pi}\p{Pc}]|[^%\P{Po}])\s*)*$~u', |
|
1047 | 1047 | // Unwanted opening punctuation and whitespace. |
1048 | - '~^\s*(?'.'>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u', |
|
1048 | + '~^\s*(?' . '>([\p{Pd}\p{Pe}\p{Pf}\p{Pc}]|[^%\P{Po}])\s*)*~u', |
|
1049 | 1049 | ), |
1050 | 1050 | array( |
1051 | 1051 | '', |
@@ -1460,7 +1460,7 @@ discard block |
||
1460 | 1460 | $width = !empty($width) ? ' width="' . $width . '"' : ''; |
1461 | 1461 | $height = !empty($height) ? ' height="' . $height . '"' : ''; |
1462 | 1462 | |
1463 | - $returnContext .= '<div class="videocontainer"><video controls preload="metadata" src="'. $currentAttachment['href'] . '" playsinline' . $width . $height . '><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : ''); |
|
1463 | + $returnContext .= '<div class="videocontainer"><video controls preload="metadata" src="' . $currentAttachment['href'] . '" playsinline' . $width . $height . '><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></video></div>' . (!empty($data) && $data != $currentAttachment['name'] ? '<div class="smalltext">' . $data . '</div>' : ''); |
|
1464 | 1464 | } |
1465 | 1465 | // Audio. |
1466 | 1466 | elseif (strpos($currentAttachment['mime_type'], 'audio/') === 0) |
@@ -1468,7 +1468,7 @@ discard block |
||
1468 | 1468 | $width = 'max-width:100%; width: ' . (!empty($width) ? $width : '400') . 'px;'; |
1469 | 1469 | $height = !empty($height) ? 'height: ' . $height . 'px;' : ''; |
1470 | 1470 | |
1471 | - $returnContext .= (!empty($data) && $data != $currentAttachment['name'] ? $data . ' ' : '') . '<audio controls preload="none" src="'. $currentAttachment['href'] . '" class="bbc_audio" style="vertical-align:middle;' . $width . $height . '"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></audio>'; |
|
1471 | + $returnContext .= (!empty($data) && $data != $currentAttachment['name'] ? $data . ' ' : '') . '<audio controls preload="none" src="' . $currentAttachment['href'] . '" class="bbc_audio" style="vertical-align:middle;' . $width . $height . '"><a href="' . $currentAttachment['href'] . '" class="bbc_link">' . $smcFunc['htmlspecialchars'](!empty($data) ? $data : $currentAttachment['name']) . '</a></audio>'; |
|
1472 | 1472 | } |
1473 | 1473 | // Anything else. |
1474 | 1474 | else |
@@ -1631,7 +1631,7 @@ discard block |
||
1631 | 1631 | 'type' => 'unparsed_commas_content', |
1632 | 1632 | 'test' => '\d+,\d+\]', |
1633 | 1633 | 'content' => '<a href="$1" target="_blank" rel="noopener">$1</a>', |
1634 | - 'validate' => function (&$tag, &$data, $disabled) |
|
1634 | + 'validate' => function(&$tag, &$data, $disabled) |
|
1635 | 1635 | { |
1636 | 1636 | $scheme = parse_url($data[0], PHP_URL_SCHEME); |
1637 | 1637 | if (empty($scheme)) |
@@ -2169,12 +2169,12 @@ discard block |
||
2169 | 2169 | $codes[] = array( |
2170 | 2170 | 'tag' => 'cowsay', |
2171 | 2171 | 'parameters' => array( |
2172 | - 'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function ($eyes) use ($smcFunc) |
|
2172 | + 'e' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => 'oo', 'validate' => function($eyes) use ($smcFunc) |
|
2173 | 2173 | { |
2174 | 2174 | return $smcFunc['substr']($eyes . 'oo', 0, 2); |
2175 | 2175 | }, |
2176 | 2176 | ), |
2177 | - 't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => ' ', 'validate' => function ($tongue) use ($smcFunc) |
|
2177 | + 't' => array('optional' => true, 'quoted' => true, 'match' => '(.*?)', 'default' => ' ', 'validate' => function($tongue) use ($smcFunc) |
|
2178 | 2178 | { |
2179 | 2179 | return $smcFunc['substr']($tongue . ' ', 0, 2); |
2180 | 2180 | }, |
@@ -3546,7 +3546,7 @@ discard block |
||
3546 | 3546 | if ($fp != false) |
3547 | 3547 | { |
3548 | 3548 | // Send the HEAD request (since we don't have to worry about chunked, HTTP/1.1 is fine here.) |
3549 | - fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'user-agent: '. SMF_USER_AGENT . "\r\n" . 'Connection: close' . "\r\n\r\n"); |
|
3549 | + fwrite($fp, 'HEAD /' . $match[2] . ' HTTP/1.1' . "\r\n" . 'Host: ' . $match[1] . "\r\n" . 'user-agent: ' . SMF_USER_AGENT . "\r\n" . 'Connection: close' . "\r\n\r\n"); |
|
3550 | 3550 | |
3551 | 3551 | // Read in the HTTP/1.1 or whatever. |
3552 | 3552 | $test = substr(fgets($fp, 11), -1); |
@@ -4150,7 +4150,7 @@ discard block |
||
4150 | 4150 | $toMinify = array(); |
4151 | 4151 | $normal = array(); |
4152 | 4152 | |
4153 | - usort($context['css_files'], function ($a, $b) |
|
4153 | + usort($context['css_files'], function($a, $b) |
|
4154 | 4154 | { |
4155 | 4155 | return $a['options']['order_pos'] < $b['options']['order_pos'] ? -1 : ($a['options']['order_pos'] > $b['options']['order_pos'] ? 1 : 0); |
4156 | 4156 | }); |
@@ -5446,7 +5446,7 @@ discard block |
||
5446 | 5446 | { |
5447 | 5447 | fwrite($fp, 'GET ' . ($match[6] !== '/' ? str_replace(' ', '%20', $match[6]) : '') . ' HTTP/1.0' . "\r\n"); |
5448 | 5448 | fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n"); |
5449 | - fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n"); |
|
5449 | + fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n"); |
|
5450 | 5450 | if ($keep_alive) |
5451 | 5451 | fwrite($fp, 'connection: Keep-Alive' . "\r\n\r\n"); |
5452 | 5452 | else |
@@ -5456,7 +5456,7 @@ discard block |
||
5456 | 5456 | { |
5457 | 5457 | fwrite($fp, 'POST ' . ($match[6] !== '/' ? $match[6] : '') . ' HTTP/1.0' . "\r\n"); |
5458 | 5458 | fwrite($fp, 'Host: ' . $match[3] . (empty($match[5]) ? ($match[2] ? ':443' : '') : ':' . $match[5]) . "\r\n"); |
5459 | - fwrite($fp, 'user-agent: '. SMF_USER_AGENT . "\r\n"); |
|
5459 | + fwrite($fp, 'user-agent: ' . SMF_USER_AGENT . "\r\n"); |
|
5460 | 5460 | if ($keep_alive) |
5461 | 5461 | fwrite($fp, 'connection: Keep-Alive' . "\r\n"); |
5462 | 5462 | else |
@@ -5704,13 +5704,13 @@ discard block |
||
5704 | 5704 | |
5705 | 5705 | // UTF-8 occurences of MS special characters |
5706 | 5706 | $findchars_utf8 = array( |
5707 | - "\xe2\x80\x9a", // single low-9 quotation mark |
|
5708 | - "\xe2\x80\x9e", // double low-9 quotation mark |
|
5709 | - "\xe2\x80\xa6", // horizontal ellipsis |
|
5710 | - "\xe2\x80\x98", // left single curly quote |
|
5711 | - "\xe2\x80\x99", // right single curly quote |
|
5712 | - "\xe2\x80\x9c", // left double curly quote |
|
5713 | - "\xe2\x80\x9d", // right double curly quote |
|
5707 | + "\xe2\x80\x9a", // single low-9 quotation mark |
|
5708 | + "\xe2\x80\x9e", // double low-9 quotation mark |
|
5709 | + "\xe2\x80\xa6", // horizontal ellipsis |
|
5710 | + "\xe2\x80\x98", // left single curly quote |
|
5711 | + "\xe2\x80\x99", // right single curly quote |
|
5712 | + "\xe2\x80\x9c", // left double curly quote |
|
5713 | + "\xe2\x80\x9d", // right double curly quote |
|
5714 | 5714 | ); |
5715 | 5715 | |
5716 | 5716 | // windows 1252 / iso equivalents |
@@ -5726,13 +5726,13 @@ discard block |
||
5726 | 5726 | |
5727 | 5727 | // safe replacements |
5728 | 5728 | $replacechars = array( |
5729 | - ',', // ‚ |
|
5730 | - ',,', // „ |
|
5731 | - '...', // … |
|
5732 | - "'", // ‘ |
|
5733 | - "'", // ’ |
|
5734 | - '"', // “ |
|
5735 | - '"', // ” |
|
5729 | + ',', // ‚ |
|
5730 | + ',,', // „ |
|
5731 | + '...', // … |
|
5732 | + "'", // ‘ |
|
5733 | + "'", // ’ |
|
5734 | + '"', // “ |
|
5735 | + '"', // ” |
|
5736 | 5736 | ); |
5737 | 5737 | |
5738 | 5738 | if ($context['utf8']) |
@@ -6917,7 +6917,7 @@ discard block |
||
6917 | 6917 | EXISTS ( |
6918 | 6918 | SELECT bpv.id_board |
6919 | 6919 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
6920 | - WHERE bpv.id_group IN ('. implode(',', $groups) .') |
|
6920 | + WHERE bpv.id_group IN ('. implode(',', $groups) . ') |
|
6921 | 6921 | AND bpv.deny = 0 |
6922 | 6922 | AND bpv.id_board = b.id_board |
6923 | 6923 | )'; |
@@ -6927,7 +6927,7 @@ discard block |
||
6927 | 6927 | AND NOT EXISTS ( |
6928 | 6928 | SELECT bpv.id_board |
6929 | 6929 | FROM ' . $db_prefix . 'board_permissions_view AS bpv |
6930 | - WHERE bpv.id_group IN ( '. implode(',', $groups) .') |
|
6930 | + WHERE bpv.id_group IN ( '. implode(',', $groups) . ') |
|
6931 | 6931 | AND bpv.deny = 1 |
6932 | 6932 | AND bpv.id_board = b.id_board |
6933 | 6933 | )'; |
@@ -7198,8 +7198,8 @@ discard block |
||
7198 | 7198 | $i = 0; |
7199 | 7199 | while (empty($done)) |
7200 | 7200 | { |
7201 | - if (strpos($format, '{'. --$i . '}') !== false) |
|
7202 | - $replacements['{'. $i . '}'] = array_pop($list); |
|
7201 | + if (strpos($format, '{' . --$i . '}') !== false) |
|
7202 | + $replacements['{' . $i . '}'] = array_pop($list); |
|
7203 | 7203 | else |
7204 | 7204 | $done = true; |
7205 | 7205 | } |
@@ -7209,8 +7209,8 @@ discard block |
||
7209 | 7209 | $i = 0; |
7210 | 7210 | while (empty($done)) |
7211 | 7211 | { |
7212 | - if (strpos($format, '{'. ++$i . '}') !== false) |
|
7213 | - $replacements['{'. $i . '}'] = array_shift($list); |
|
7212 | + if (strpos($format, '{' . ++$i . '}') !== false) |
|
7213 | + $replacements['{' . $i . '}'] = array_shift($list); |
|
7214 | 7214 | else |
7215 | 7215 | $done = true; |
7216 | 7216 | } |