diff --git a/src/Roumen/Feed/Feed.php b/src/Roumen/Feed/Feed.php index d8198ba..8d99149 100644 --- a/src/Roumen/Feed/Feed.php +++ b/src/Roumen/Feed/Feed.php @@ -204,18 +204,7 @@ public function link($url, $format='atom') if ($this->ctype == null) { - switch ($format) - { - case "rss": - $type = 'application/rss+xml'; - break; - case "atom": - $type = 'application/atom+xml'; - break; - default: - $type = 'application/atom+xml'; - break; - } + ($format == 'rss') ? $type = 'application/rss+xml' : $type = 'application/atom+xml'; } else {