src/Plugin/User.php
final public function findUser(Userinfo $userinfo)
	{
		$userloopup = $this->lookupUser($userinfo);
		if ($userloopup instanceof Userinfo) {
			$user = $this->getUser($userloopup);
		} else {
			$user = $this->getUser($userinfo);
			if ($user instanceof Userinfo) {
				/**
				 * TODO: determine if the update lookup should really be here or not.
				 */
				$this->updateLookup($user, $userinfo);
			}
		}
		return $user;
	}
final public function findUser(Userinfo $userinfo)
	{
		$userloopup = $this->lookupUser($userinfo);
		if ($userloopup instanceof Userinfo) {
			$user = $this->getUser($userloopup);
		} else {
			$user = $this->getUser($userinfo);
			if ($user instanceof Userinfo) {
				/**
				 * TODO: determine if the update lookup should really be here or not.
				 */
				$this->updateLookup($user, $userinfo);
			}
		}
		return $user;
	}
final public function findUser ( Userinfo $ userinfo ) { $ userloopup = $ this -> lookupUser ( $ userinfo ) ; if ( $ userloopup instanceof Userinfo ) { $ user = $ this -> getUser ( $ userloopup ) ; } else { $ user = $ this -> getUser ( $ userinfo ) ; if ( $ user instanceof Userinfo ) { /**
				 * TODO: determine if the update lookup should really be here or not.
				 */ $ this -> updateLookup ( $ user , $ userinfo ) ; } } return $ user ; }
Gets the userinfo from the JFusion integrated software. it uses the lookup function

@param Userinfo $userinfo contains the object of the user

@return null|Userinfo Userinfo containing the user information
Gets the userinfo from the JFusion integrated software . it uses the lookup function