@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'is_accessible' => 1, |
57 | 57 | 'all_type' => empty($allTypes) ? [$type] : $allTypes, |
58 | 58 | ] |
59 | - )->fetch_callback(function ($row) use (&$counts, $id_member) { |
|
59 | + )->fetch_callback(function($row) use (&$counts, $id_member) { |
|
60 | 60 | $counts[$id_member][$row['mention_type']] = (int) $row['cnt']; |
61 | 61 | $counts[$id_member]['total'] += $row['cnt']; |
62 | 62 | }); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | 'sort' => $sort, |
120 | 120 | ) |
121 | 121 | )->fetch_callback( |
122 | - function ($row) { |
|
122 | + function($row) { |
|
123 | 123 | $row['avatar'] = determineAvatar($row); |
124 | 124 | |
125 | 125 | return $row; |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | 'messages' => $msgs, |
196 | 196 | ) |
197 | 197 | )->fetch_callback( |
198 | - function ($row) use ($status) { |
|
198 | + function($row) use ($status) { |
|
199 | 199 | updateMentionMenuCount($status, $row['id_member']); |
200 | 200 | } |
201 | 201 | ); |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | 'mention_types' => $mentionTypes, |
527 | 527 | ] |
528 | 528 | )->fetch_callback( |
529 | - function ($row) use (&$changes) { |
|
529 | + function($row) use (&$changes) { |
|
530 | 530 | $changes[] = (int) $row['id_mention']; |
531 | 531 | }); |
532 | 532 |
@@ -734,7 +734,7 @@ |
||
734 | 734 | if ($mark_at_msg >= $this->topicinfo['new_from']) |
735 | 735 | { |
736 | 736 | require_once(SUBSDIR . '/Mentions.subs.php'); |
737 | - $filterMessages = array_filter($messages, static function ($element) use ($mark_at_msg) { |
|
737 | + $filterMessages = array_filter($messages, static function($element) use ($mark_at_msg) { |
|
738 | 738 | return $element >= $mark_at_msg; |
739 | 739 | }); |
740 | 740 |