@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | 'board_list' => $boards, |
| 132 | 132 | 'lowest_topic' => $lowest_topic, |
| 133 | 133 | ), |
| 134 | - function ($row) use (&$delete_topics, &$update_topics, $user_info, $modSettings) |
|
| 134 | + function($row) use (&$delete_topics, &$update_topics, $user_info, $modSettings) |
|
| 135 | 135 | { |
| 136 | 136 | if (!empty($row['unwatched'])) |
| 137 | 137 | $update_topics[] = array( |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | array( |
| 444 | 444 | 'moderator_list' => $moderators, |
| 445 | 445 | ), |
| 446 | - function ($row) |
|
| 446 | + function($row) |
|
| 447 | 447 | { |
| 448 | 448 | return $row['id_member']; |
| 449 | 449 | } |
@@ -783,7 +783,7 @@ discard block |
||
| 783 | 783 | array( |
| 784 | 784 | 'parent_board' => $parent, |
| 785 | 785 | ), |
| 786 | - function ($row) |
|
| 786 | + function($row) |
|
| 787 | 787 | { |
| 788 | 788 | return $row['id_board']; |
| 789 | 789 | } |
@@ -1420,7 +1420,7 @@ discard block |
||
| 1420 | 1420 | array( |
| 1421 | 1421 | 'recycle_board' => (int) $modSettings['recycle_board'], |
| 1422 | 1422 | ), |
| 1423 | - function ($row) |
|
| 1423 | + function($row) |
|
| 1424 | 1424 | { |
| 1425 | 1425 | return $row['id_board']; |
| 1426 | 1426 | } |
@@ -1632,7 +1632,7 @@ discard block |
||
| 1632 | 1632 | array( |
| 1633 | 1633 | 'current_member' => $id_member, |
| 1634 | 1634 | ), |
| 1635 | - function ($row) |
|
| 1635 | + function($row) |
|
| 1636 | 1636 | { |
| 1637 | 1637 | return $row['id_board']; |
| 1638 | 1638 | } |
@@ -2057,7 +2057,7 @@ discard block |
||
| 2057 | 2057 | 'current_member' => $user_info['id'], |
| 2058 | 2058 | 'selected_member' => $memID, |
| 2059 | 2059 | ), |
| 2060 | - function ($row) use ($scripturl) |
|
| 2060 | + function($row) use ($scripturl) |
|
| 2061 | 2061 | { |
| 2062 | 2062 | return array( |
| 2063 | 2063 | 'id' => $row['id_board'], |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | 'start' => $start, |
| 363 | 363 | 'per_page' => $items_per_page, |
| 364 | 364 | ), |
| 365 | - function ($row) use ($scripturl, $context) |
|
| 365 | + function($row) use ($scripturl, $context) |
|
| 366 | 366 | { |
| 367 | 367 | return array( |
| 368 | 368 | 'subject' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'] . '">' . $row['subject'] . '</a>', |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | 'start' => $start, |
| 412 | 412 | 'per_page' => $items_per_page, |
| 413 | 413 | ), |
| 414 | - function ($row) use ($scripturl) |
|
| 414 | + function($row) use ($scripturl) |
|
| 415 | 415 | { |
| 416 | 416 | return array( |
| 417 | 417 | 'subject' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'] . '">' . $row['subject'] . '</a>', |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | 'start' => $start, |
| 463 | 463 | 'per_page' => $items_per_page, |
| 464 | 464 | ), |
| 465 | - function ($row) use ($scripturl, $simple) |
|
| 465 | + function($row) use ($scripturl, $simple) |
|
| 466 | 466 | { |
| 467 | 467 | $like = array( |
| 468 | 468 | 'real_name' => $row['real_name'], |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | 'limit' => $limit, |
| 648 | 648 | 'type_avatar' => 1, |
| 649 | 649 | ), |
| 650 | - function ($row) use ($scripturl, $bbc_parser) |
|
| 650 | + function($row) use ($scripturl, $bbc_parser) |
|
| 651 | 651 | { |
| 652 | 652 | // Censor those naughty words |
| 653 | 653 | $row['body'] = censor($row['body']); |
@@ -923,7 +923,7 @@ discard block |
||
| 923 | 923 | 'id_member' => $id_member, |
| 924 | 924 | 'limit' => $limit |
| 925 | 925 | ), |
| 926 | - function ($row) use ($bbc_parser) |
|
| 926 | + function($row) use ($bbc_parser) |
|
| 927 | 927 | { |
| 928 | 928 | // Censor those naughty words |
| 929 | 929 | $row['body'] = censor($row['body']); |
@@ -1040,7 +1040,7 @@ discard block |
||
| 1040 | 1040 | 'id_member' => $id_liker, |
| 1041 | 1041 | 'limit' => $limit |
| 1042 | 1042 | ), |
| 1043 | - function ($row) use ($bbc_parser) |
|
| 1043 | + function($row) use ($bbc_parser) |
|
| 1044 | 1044 | { |
| 1045 | 1045 | // Censor those $%#^&% words |
| 1046 | 1046 | $row['body'] = censor($row['body']); |
@@ -1017,7 +1017,7 @@ discard block |
||
| 1017 | 1017 | 'sort' => $sort, |
| 1018 | 1018 | 'items_per_page' => $items_per_page, |
| 1019 | 1019 | ), |
| 1020 | - function ($row) use ($txt) |
|
| 1020 | + function($row) use ($txt) |
|
| 1021 | 1021 | { |
| 1022 | 1022 | // Private PM/email subjects and similar shouldn't be shown in the mailbox area. |
| 1023 | 1023 | if (!empty($row['private'])) |
@@ -1241,7 +1241,7 @@ discard block |
||
| 1241 | 1241 | LIMIT ' . $number, |
| 1242 | 1242 | array( |
| 1243 | 1243 | ), |
| 1244 | - function ($row) use(&$ids, &$emails) |
|
| 1244 | + function($row) use(&$ids, &$emails) |
|
| 1245 | 1245 | { |
| 1246 | 1246 | // Just get the data and go. |
| 1247 | 1247 | $ids[] = $row['id_mail']; |
@@ -1427,7 +1427,7 @@ discard block |
||
| 1427 | 1427 | |
| 1428 | 1428 | // If it sent, keep a record so we can save it in our allowed to reply log |
| 1429 | 1429 | if (!empty($unq_head) && $result) |
| 1430 | - $sent[] = array_merge($unq_head_array, array(time(),$email['to'])); |
|
| 1430 | + $sent[] = array_merge($unq_head_array, array(time(), $email['to'])); |
|
| 1431 | 1431 | |
| 1432 | 1432 | // Track total emails sent |
| 1433 | 1433 | if ($result && !empty($modSettings['trackStats'])) |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | 'limit' => $limit, |
| 104 | 104 | 'sort' => $sort, |
| 105 | 105 | ), |
| 106 | - function ($row) |
|
| 106 | + function($row) |
|
| 107 | 107 | { |
| 108 | 108 | $row['avatar'] = determineAvatar($row); |
| 109 | 109 | return $row; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | 'target' => $target, |
| 149 | 149 | 'log_time' => $time === null ? time() : $time, |
| 150 | 150 | ), |
| 151 | - function ($row) |
|
| 151 | + function($row) |
|
| 152 | 152 | { |
| 153 | 153 | return $row['id_member']; |
| 154 | 154 | } |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | array( |
| 334 | 334 | 'messages' => $msgs, |
| 335 | 335 | ), |
| 336 | - function ($row) use ($status) |
|
| 336 | + function($row) use ($status) |
|
| 337 | 337 | { |
| 338 | 338 | updateMentionMenuCount($status, $row['id_member']); |
| 339 | 339 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * Icons that are default with ElkArte |
| 42 | 42 | * @var array |
| 43 | 43 | */ |
| 44 | - protected $_stable_icons = array(); |
|
| 44 | + protected $_stable_icons = array(); |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Icons to load in addition to the default |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | if ($this->_allowCustomIcons()) |
| 104 | 104 | { |
| 105 | 105 | // Merge in additional ones |
| 106 | - $custom_icons = array_map(function ($element) { |
|
| 106 | + $custom_icons = array_map(function($element) { |
|
| 107 | 107 | return $element['value']; |
| 108 | 108 | }, $this->_custom_icons); |
| 109 | 109 | |
@@ -1074,7 +1074,7 @@ |
||
| 1074 | 1074 | return false; |
| 1075 | 1075 | } |
| 1076 | 1076 | |
| 1077 | - $blowfish_salt = '$2a$07$' . $memSalt . $modSettings['unsubscribe_site_salt']. '$'; |
|
| 1077 | + $blowfish_salt = '$2a$07$' . $memSalt . $modSettings['unsubscribe_site_salt'] . '$'; |
|
| 1078 | 1078 | $expected = substr($blowfish_salt, 0, 28) . $hash; |
| 1079 | 1079 | $check = crypt($area . $memEmail . $memSalt, $blowfish_salt); |
| 1080 | 1080 | |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | { |
| 250 | 250 | global $modSettings, $scripturl; |
| 251 | 251 | |
| 252 | - return static function ($tag, &$data, $disabled) use ($modSettings, $scripturl) { |
|
| 252 | + return static function($tag, &$data, $disabled) use ($modSettings, $scripturl) { |
|
| 253 | 253 | $num = $data; |
| 254 | 254 | $attachment = []; |
| 255 | 255 | $preview = self::isPreview($num); |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | { |
| 326 | 326 | global $txt, $scripturl; |
| 327 | 327 | |
| 328 | - return static function ($tag, &$data) use ($txt, $scripturl) { |
|
| 328 | + return static function($tag, &$data) use ($txt, $scripturl) { |
|
| 329 | 329 | $num = $data; |
| 330 | 330 | $attachment = false; |
| 331 | 331 | |
@@ -306,7 +306,7 @@ |
||
| 306 | 306 | 'category_list' => $categories, |
| 307 | 307 | 'member_list' => $members, |
| 308 | 308 | ), |
| 309 | - function ($row) use (&$updates, $check_collapsable) |
|
| 309 | + function($row) use (&$updates, $check_collapsable) |
|
| 310 | 310 | { |
| 311 | 311 | if (empty($row['is_collapsed']) && (!empty($row['can_collapse']) || !$check_collapsable)) |
| 312 | 312 | $updates['insert'][] = array($row['id_member'], $row['id_cat']); |
@@ -384,7 +384,7 @@ |
||
| 384 | 384 | 'generic' => 0, |
| 385 | 385 | 'current_member' => $user_info['id'], |
| 386 | 386 | ), |
| 387 | - function ($row) use ($subject) |
|
| 387 | + function($row) use ($subject) |
|
| 388 | 388 | { |
| 389 | 389 | $template = array( |
| 390 | 390 | 'title' => $row['template_title'], |