code: public function format($response)
      {
          if ($this->useJsonp) {
              $this->formatJsonp($response);
          } else {
              $this->formatJson($response);
          }
      }
docs: Formats the specified response.
  @param Response $response the response to be formatted.