original_string: protected function processQuery($query)
      {
          if (null === $processed = json_decode($this->adapter->getContent($query))) {
              throw new \RuntimeException(sprintf("Impossible to process this query: %s", $query));
          }
  
          if ('ERROR' === $processed->status) {
              // it looks that the API does still have the old error object structure.
              if (isset($processed->error_message)) {
                  $errorMessage = $processed->error_message;
              }
  
              if (isset($processed->message)) {
                  $errorMessage = $processed->message;
              }
  
              throw new \RuntimeException(sprintf("%s: %s", $errorMessage, $query));
          }
  
          return $processed;
      }
code: protected function processQuery($query)
      {
          if (null === $processed = json_decode($this->adapter->getContent($query))) {
              throw new \RuntimeException(sprintf("Impossible to process this query: %s", $query));
          }
  
          if ('ERROR' === $processed->status) {
              // it looks that the API does still have the old error object structure.
              if (isset($processed->error_message)) {
                  $errorMessage = $processed->error_message;
              }
  
              if (isset($processed->message)) {
                  $errorMessage = $processed->message;
              }
  
              throw new \RuntimeException(sprintf("%s: %s", $errorMessage, $query));
          }
  
          return $processed;
      }
code_tokens: protected function processQuery ( $ query ) { if ( null === $ processed = json_decode ( $ this -> adapter -> getContent ( $ query ) ) ) { throw new \ RuntimeException ( sprintf ( "Impossible to process this query: %s" , $ query ) ) ; } if ( 'ERROR' === $ processed -> status ) { // it looks that the API does still have the old error object structure. if ( isset ( $ processed -> error_message ) ) { $ errorMessage = $ processed -> error_message ; } if ( isset ( $ processed -> message ) ) { $ errorMessage = $ processed -> message ; } throw new \ RuntimeException ( sprintf ( "%s: %s" , $ errorMessage , $ query ) ) ; } return $ processed ; }
docstring: Processes the query.
  
  @param string $query The query to process.
  
  @return StdClass
  
  @throws \RuntimeException
docstring_tokens: Processes the query .