src/Plugin/User.php
function executeUpdateUsergroup(Userinfo $userinfo, Userinfo &$existinguser)
    {
        $changed = false;
        $usergroups = $this->getCorrectUserGroups($userinfo);
		if (!$this->compareUserGroups($existinguser, $usergroups)) {
			$this->updateUsergroup($userinfo, $existinguser);
			$changed = true;
        }
    	return $changed;
    }
function executeUpdateUsergroup(Userinfo $userinfo, Userinfo &$existinguser)
    {
        $changed = false;
        $usergroups = $this->getCorrectUserGroups($userinfo);
		if (!$this->compareUserGroups($existinguser, $usergroups)) {
			$this->updateUsergroup($userinfo, $existinguser);
			$changed = true;
        }
    	return $changed;
    }
function executeUpdateUsergroup ( Userinfo $ userinfo , Userinfo & $ existinguser ) { $ changed = false ; $ usergroups = $ this -> getCorrectUserGroups ( $ userinfo ) ; if ( ! $ this -> compareUserGroups ( $ existinguser , $ usergroups ) ) { $ this -> updateUsergroup ( $ userinfo , $ existinguser ) ; $ changed = true ; } return $ changed ; }
Function that determines if the usergroup needs to be updated and executes updateUsergroup if it does

@param Userinfo $userinfo      Object containing the new userinfo
@param Userinfo &$existinguser Object containing the old userinfo

@throws RuntimeException

@return boolean Whether updateUsergroup was executed or not
Function that determines if the usergroup needs to be updated and executes updateUsergroup if it does