From dce91e2d7a912b7b4d6448cc3e7faef725b4c752 Mon Sep 17 00:00:00 2001 From: Roumen Damianoff Date: Fri, 11 Dec 2015 20:20:14 +0200 Subject: [PATCH] fixed wrong link type --- src/Roumen/Feed/Feed.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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 {