@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | Cache::instance()->clean('data'); |
48 | 48 | |
49 | 49 | // If warning decrement is enabled and we have people who have not had a new warning in 24 hours, lower their warning level. |
50 | - [, , $modSettings['warning_decrement']] = explode(',', $modSettings['warning_settings']); |
|
50 | + [,, $modSettings['warning_decrement']] = explode(',', $modSettings['warning_settings']); |
|
51 | 51 | if ($modSettings['warning_decrement'] !== '' && $modSettings['warning_decrement'] !== '0') |
52 | 52 | { |
53 | 53 | // Find every member who has a warning level... |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'no_warning' => 0, |
62 | 62 | ) |
63 | 63 | )->fetch_callback( |
64 | - static function ($row) use (&$members) { |
|
64 | + static function($row) use (&$members) { |
|
65 | 65 | $members[$row['id_member']] = $row['warning']; |
66 | 66 | } |
67 | 67 | ); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | 'warning' => 'warning', |
84 | 84 | ) |
85 | 85 | )->fetch_callback( |
86 | - static function ($row) use (&$member_changes, $modSettings, $members) { |
|
86 | + static function($row) use (&$member_changes, $modSettings, $members) { |
|
87 | 87 | // More than 24 hours ago? |
88 | 88 | if ($row['last_warning'] <= time() - 86400) |
89 | 89 | { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | 'day' => $day, |
69 | 69 | ) |
70 | 70 | )->fetch_callback( |
71 | - static function ($row) use (&$birthdays) { |
|
71 | + static function($row) use (&$birthdays) { |
|
72 | 72 | // Group them by languages. |
73 | 73 | if (!isset($birthdays[$row['lngfile']])) |
74 | 74 | { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | 'limit' => $limit, |
98 | 98 | ) |
99 | 99 | )->fetch_callback( |
100 | - static function ($row) use (&$remove, &$mentions) { |
|
100 | + static function($row) use (&$remove, &$mentions) { |
|
101 | 101 | if (empty($row['id_board'])) |
102 | 102 | { |
103 | 103 | $remove[] = $row['id_mention']; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | 'limit' => 100, |
48 | 48 | ) |
49 | 49 | )->fetch_callback( |
50 | - static function ($row) use (&$remove) { |
|
50 | + static function($row) use (&$remove) { |
|
51 | 51 | $remove[] = $row['derived_from']; |
52 | 52 | } |
53 | 53 | ); |
@@ -450,7 +450,7 @@ |
||
450 | 450 | 'value' => $txt['profile_warning_previous_reason'], |
451 | 451 | ], |
452 | 452 | 'data' => [ |
453 | - 'function' => static function ($warning) { |
|
453 | + 'function' => static function($warning) { |
|
454 | 454 | global $txt; |
455 | 455 | |
456 | 456 | $ret = ' |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | 'class' => 'lefttext', |
698 | 698 | ], |
699 | 699 | 'data' => [ |
700 | - 'function' => static function ($board) { |
|
700 | + 'function' => static function($board) { |
|
701 | 701 | global $txt; |
702 | 702 | |
703 | 703 | $link = $board['link']; |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | 'class' => 'lefttext', |
804 | 804 | ], |
805 | 805 | 'data' => [ |
806 | - 'function' => static function ($topic) { |
|
806 | + 'function' => static function($topic) { |
|
807 | 807 | global $txt; |
808 | 808 | |
809 | 809 | $link = $topic['link']; |
@@ -1202,7 +1202,7 @@ discard block |
||
1202 | 1202 | // Check whether they are interested. |
1203 | 1203 | if (!empty($member['mod_prefs'])) |
1204 | 1204 | { |
1205 | - [, , $pref_binary] = explode('|', $member['mod_prefs']); |
|
1205 | + [,, $pref_binary] = explode('|', $member['mod_prefs']); |
|
1206 | 1206 | if (!($pref_binary & 4)) |
1207 | 1207 | { |
1208 | 1208 | continue; |
@@ -735,7 +735,7 @@ |
||
735 | 735 | 'value' => '', |
736 | 736 | ], |
737 | 737 | 'data' => [ |
738 | - 'function' => static function ($rowData) { |
|
738 | + 'function' => static function($rowData) { |
|
739 | 739 | if ($rowData['is_image'] && !empty($rowData['id_thumb'])) |
740 | 740 | { |
741 | 741 | return '<img src="' . getUrl('action', ['action' => 'dlattach', 'attach' => $rowData['id_thumb'], 'image']) . '" loading="lazy" />'; |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | 'on' => 'on', |
195 | 195 | ] |
196 | 196 | )->fetch_callback( |
197 | - function ($row) { |
|
197 | + function($row) { |
|
198 | 198 | $this->context[$row['permission']][$row['id_group']]['status'] = $row['status']; |
199 | 199 | } |
200 | 200 | ); |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | 'permissions' => $this->permissionList, |
216 | 216 | ] |
217 | 217 | )->fetch_callback( |
218 | - function ($row) { |
|
218 | + function($row) { |
|
219 | 219 | // Initialize each permission as being 'off' until proven otherwise. |
220 | 220 | foreach ($this->permissions as $permission) |
221 | 221 | { |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | 'time' => !empty($modSettings['drafts_keep_days']) ? (time() - ($modSettings['drafts_keep_days'] * 86400)) : 0, |
333 | 333 | ) |
334 | 334 | )->fetch_callback( |
335 | - function ($row) use (&$number) { |
|
335 | + function($row) use (&$number) { |
|
336 | 336 | $number = (int) $row['number']; |
337 | 337 | } |
338 | 338 | ); |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | 'poster_time_old' => time() - (86400 * $days), |
484 | 484 | ) |
485 | 485 | )->fetch_callback( |
486 | - function ($row) { |
|
486 | + function($row) { |
|
487 | 487 | return (int) $row['id_draft']; |
488 | 488 | } |
489 | 489 | ); |