protected function defaultFormat() { $format = $this->detectFormatByHeaders($this->getHeaders()); if ($format === null) { $format = $this->detectFormatByContent($this->getContent()); } return $format; }