original_string: public function parseToken($method = 'bearer', $header = 'authorization', $query = 'token')
      {
          if (! $token = $this->parseAuthHeader($header, $method)) {
              if (! $token = $this->request->{$query}) {
                  if (! $token = $this->request->header('Token')) {
                      throw new JWTException('The token could not be parsed from the request', 400);
                  }
              }
          }
  
          return $this->setToken($token);
      }
code: public function parseToken($method = 'bearer', $header = 'authorization', $query = 'token')
      {
          if (! $token = $this->parseAuthHeader($header, $method)) {
              if (! $token = $this->request->{$query}) {
                  if (! $token = $this->request->header('Token')) {
                      throw new JWTException('The token could not be parsed from the request', 400);
                  }
              }
          }
  
          return $this->setToken($token);
      }
code_tokens: public function parseToken ( $ method = 'bearer' , $ header = 'authorization' , $ query = 'token' ) { if ( ! $ token = $ this -> parseAuthHeader ( $ header , $ method ) ) { if ( ! $ token = $ this -> request -> { $ query } ) { if ( ! $ token = $ this -> request -> header ( 'Token' ) ) { throw new JWTException ( 'The token could not be parsed from the request' , 400 ) ; } } } return $ this -> setToken ( $ token ) ; }
docstring: Parse the token from the request.
  
  @param string $query
  
  @return JWTAuth
docstring_tokens: Parse the token from the request .