1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16955] Clean up group related classes for psalm

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-26 14:41:18 +01:00
parent c4d3e1aa7b
commit d9c179f9ef
3 changed files with 34 additions and 20 deletions

View File

@@ -119,6 +119,7 @@ class helper
public function get_name_string($mode, $group_id, $group_name, $group_colour = '', $custom_profile_url = false)
{
$s_is_bots = ($group_name === 'BOTS');
$group_name_string = null;
// This switch makes sure we only run code required for the mode
switch ($mode)