original_string: protected function prepareRequestUrl(array $query)
      {
          $path = isset($query['from']['path']) ? $query['from']['path'] : null;
  
          $wheres = isset($query['wheres']) ? $query['wheres'] : null;
  
          $baseUrl = $this->host.$path;
  
          // Here we validate that there are any wheres in the
          // request. When none are provided we will return the
          // Request Url without the question mark.
          if (! is_null($wheres)) {
              return $baseUrl.'?'.$wheres;
          }
  
          return $baseUrl;
      }
code: protected function prepareRequestUrl(array $query)
      {
          $path = isset($query['from']['path']) ? $query['from']['path'] : null;
  
          $wheres = isset($query['wheres']) ? $query['wheres'] : null;
  
          $baseUrl = $this->host.$path;
  
          // Here we validate that there are any wheres in the
          // request. When none are provided we will return the
          // Request Url without the question mark.
          if (! is_null($wheres)) {
              return $baseUrl.'?'.$wheres;
          }
  
          return $baseUrl;
      }
code_tokens: protected function prepareRequestUrl ( array $ query ) { $ path = isset ( $ query [ 'from' ] [ 'path' ] ) ? $ query [ 'from' ] [ 'path' ] : null ; $ wheres = isset ( $ query [ 'wheres' ] ) ? $ query [ 'wheres' ] : null ; $ baseUrl = $ this -> host . $ path ; // Here we validate that there are any wheres in the // request. When none are provided we will return the // Request Url without the question mark. if ( ! is_null ( $ wheres ) ) { return $ baseUrl . '?' . $ wheres ; } return $ baseUrl ; }
docstring: Prepare request URL from query.
  
  @param  array  $query
  @return string
docstring_tokens: Prepare request URL from query .