src/Environaut/Report/Results/Settings/Setting.php
public static function getGroupNames($groups = null)
    {
        $group_names = array();

        if (null === $groups || (!is_string($groups) && !is_array($groups))) {
            return array();
        }

        if (is_string($groups)) {
            $groups = explode(',', $groups);
        }

        foreach ($groups as $group_name) {
            $group_names[] = trim($group_name);
        }

        return $group_names;
    }
public static function getGroupNames($groups = null)
    {
        $group_names = array();

        if (null === $groups || (!is_string($groups) && !is_array($groups))) {
            return array();
        }

        if (is_string($groups)) {
            $groups = explode(',', $groups);
        }

        foreach ($groups as $group_name) {
            $group_names[] = trim($group_name);
        }

        return $group_names;
    }
@param mixed $groups string with comma separated group names or an array of group names

@return array of group names