original_string: public function remember_me($user_id = null)
  	{
  		// if no user-id is given, get the current user's id
  		if ($user_id === null and isset($this->user['id']))
  		{
  			$user_id = $this->user['id'];
  		}
  
  		// if we have a session and an id, set it
  		if (static::$remember_me and $user_id)
  		{
  			static::$remember_me->set('user_id', $user_id);
  			return true;
  		}
  
  		// remember-me not enabled, or no user id available
  		return false;
  	}
code: public function remember_me($user_id = null)
  	{
  		// if no user-id is given, get the current user's id
  		if ($user_id === null and isset($this->user['id']))
  		{
  			$user_id = $this->user['id'];
  		}
  
  		// if we have a session and an id, set it
  		if (static::$remember_me and $user_id)
  		{
  			static::$remember_me->set('user_id', $user_id);
  			return true;
  		}
  
  		// remember-me not enabled, or no user id available
  		return false;
  	}
code_tokens: public function remember_me ( $ user_id = null ) { // if no user-id is given, get the current user's id if ( $ user_id === null and isset ( $ this -> user [ 'id' ] ) ) { $ user_id = $ this -> user [ 'id' ] ; } // if we have a session and an id, set it if ( static :: $ remember_me and $ user_id ) { static :: $ remember_me -> set ( 'user_id' , $ user_id ) ; return true ; } // remember-me not enabled, or no user id available return false ; }
docstring: Set a remember-me cookie for the passed user id, or for the current
  logged-in user if no id was given
  
  @return  bool  wether or not the cookie was set
docstring_tokens: Set a remember - me cookie for the passed user id or for the current logged - in user if no id was given