jdarwood007 commited on 2019-12-24 16:32:44
Showing 1 changed files, with 7 additions and 7 deletions.
... | ... |
@@ -11,12 +11,12 @@ global $modSettings; |
11 | 11 |
*/ |
12 | 12 |
class a2ebg |
13 | 13 |
{ |
14 |
- public static function loadLanguage() |
|
14 |
+ public static function loadLanguage(): void |
|
15 | 15 |
{ |
16 | 16 |
loadLanguage('Add2ExistingBanGroup'); |
17 | 17 |
} |
18 | 18 |
|
19 |
- public static function hook_general_mod_settings(&$config_vars) |
|
19 |
+ public static function hook_general_mod_settings(array &$config_vars): void |
|
20 | 20 |
{ |
21 | 21 |
global $txt; |
22 | 22 |
|
... | ... |
@@ -31,7 +31,7 @@ class a2ebg |
31 | 31 |
|
32 | 32 |
// This is called when we edit a ban regardless of if its new or not. |
33 | 33 |
// This also gets called during saving the edit and we do some work here. |
34 |
- public static function hook_edit_bans(&$ban_info, $isNew) |
|
34 |
+ public static function hook_edit_bans(array &$ban_info, int $isNew): void |
|
35 | 35 |
{ |
36 | 36 |
global $context, $smcFunc; |
37 | 37 |
|
... | ... |
@@ -111,7 +111,7 @@ class a2ebg |
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
// Called when we edit a existing ban group |
114 |
- public static function hook_ban_edit_list() |
|
114 |
+ public static function hook_ban_edit_list(): void |
|
115 | 115 |
{ |
116 | 116 |
global $context; |
117 | 117 |
|
... | ... |
@@ -121,7 +121,7 @@ class a2ebg |
121 | 121 |
} |
122 | 122 |
|
123 | 123 |
// Called when we do a new ban group but not calling with a from user. |
124 |
- public static function hook_ban_edit_new() |
|
124 |
+ public static function hook_ban_edit_new(): void |
|
125 | 125 |
{ |
126 | 126 |
global $context, $smcFunc, $modSettings; |
127 | 127 |
|
... | ... |
@@ -158,7 +158,7 @@ class a2ebg |
158 | 158 |
} |
159 | 159 |
|
160 | 160 |
// We are saving a ban. Lets update that info if needed. |
161 |
- public static function hook_edit_bans_post() |
|
161 |
+ public static function hook_edit_bans_post(): void |
|
162 | 162 |
{ |
163 | 163 |
global $context, $smcFunc; |
164 | 164 |
|
... | ... |
@@ -178,7 +178,7 @@ class a2ebg |
178 | 178 |
} |
179 | 179 |
|
180 | 180 |
// Get our ban info for the modify ban |
181 |
- public static function hook_ban_list() |
|
181 |
+ public static function hook_ban_list(): void |
|
182 | 182 |
{ |
183 | 183 |
global $smcFunc, $context; |
184 | 184 |
|
185 | 185 |