private function processContentType($contentType) { foreach (explode(';', $contentType) as $type) { $type = strtolower(trim($type)); if (isset($this->supported_formats[$type])) { return $this->supported_formats[$type]; } } return false; }