public function check()
    {
        if ($this->user !== null) {
            return $this->user;
        }

        if (! $code = $this->persistences->check()) {
            return false;
        }

        if (! $user = $this->persistences->findUserByPersistenceCode($code)) {
            return false;
        }

        if (! $this->cycleCheckpoints('check', $user)) {
            return false;
        }

        return $this->user = $user;
    }
public function check()
    {
        if ($this->user !== null) {
            return $this->user;
        }

        if (! $code = $this->persistences->check()) {
            return false;
        }

        if (! $user = $this->persistences->findUserByPersistenceCode($code)) {
            return false;
        }

        if (! $this->cycleCheckpoints('check', $user)) {
            return false;
        }

        return $this->user = $user;
    }
public function check ( ) { if ( $ this -> user !== null ) { return $ this -> user ; } if ( ! $ code = $ this -> persistences -> check ( ) ) { return false ; } if ( ! $ user = $ this -> persistences -> findUserByPersistenceCode ( $ code ) ) { return false ; } if ( ! $ this -> cycleCheckpoints ( 'check' , $ user ) ) { return false ; } return $ this -> user = $ user ; }
Checks to see if a user is logged in.

@return \Cartalyst\Sentinel\Users\UserInterface|bool
Checks to see if a user is logged in .