protected function encrypt($token)
    {
        // Serialize the token object
        $token = serialize($token);
        
        // Encrypt the token if there is an Encrypter instance
        if ($this->encrypter instanceof Encrypter) {
            $token = $this->encrypter->encrypt($token);
        }
        
        // Return the token
        return $token;
    }
protected function encrypt($token)
    {
        // Serialize the token object
        $token = serialize($token);
        
        // Encrypt the token if there is an Encrypter instance
        if ($this->encrypter instanceof Encrypter) {
            $token = $this->encrypter->encrypt($token);
        }
        
        // Return the token
        return $token;
    }
protected function encrypt ( $ token ) { // Serialize the token object $ token = serialize ( $ token ) ; // Encrypt the token if there is an Encrypter instance if ( $ this -> encrypter instanceof Encrypter ) { $ token = $ this -> encrypter -> encrypt ( $ token ) ; } // Return the token return $ token ; }
Use the Encrypter to encrypt a token and return it
If there is not encrypter object, return just the
serialized token object for storage
@param stdClass $token OAuth token to encrypt
@return stdClass|string
Use the Encrypter to encrypt a token and return it If there is not encrypter object return just the serialized token object for storage