original_string: protected function requireToken($token)
      {
          if ($token) {
              return $this->setToken($token);
          } elseif ($this->token) {
              return $this;
          } else {
              throw new JWTException('A token is required', 400);
          }
      }
code: protected function requireToken($token)
      {
          if ($token) {
              return $this->setToken($token);
          } elseif ($this->token) {
              return $this;
          } else {
              throw new JWTException('A token is required', 400);
          }
      }
code_tokens: protected function requireToken ( $ token ) { if ( $ token ) { return $ this -> setToken ( $ token ) ; } elseif ( $ this -> token ) { return $ this ; } else { throw new JWTException ( 'A token is required' , 400 ) ; } }
docstring: Ensure that a token is available.
  
  @param mixed $token
  
  @return JWTAuth
  
  @throws \Lia\Addons\JWTAuth\Exceptions\JWTException
docstring_tokens: Ensure that a token is available .