diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index 4251abe..8a95099 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -25,15 +25,15 @@ abstract class FeedExpander extends BridgeAbstract { switch(true){ case isset($rssContent->item[0]): $this->debugMessage('Detected RSS 1.0 format'); - $this->feedType="RSS_1_0"; + $this->feedType = "RSS_1_0"; break; case isset($rssContent->channel[0]): $this->debugMessage('Detected RSS 0.9x or 2.0 format'); - $this->feedType="RSS_2_0"; + $this->feedType = "RSS_2_0"; break; case isset($rssContent->entry[0]): $this->debugMessage('Detected ATOM format'); - $this->feedType="ATOM_1_0"; + $this->feedType = "ATOM_1_0"; break; default: $this->debugMessage('Unknown feed format/version'); @@ -41,7 +41,7 @@ abstract class FeedExpander extends BridgeAbstract { break; } - $this->{'collect_'.$this->feedType.'_data'}($rssContent,$maxItems); + $this->{'collect_' . $this->feedType . '_data'}($rssContent, $maxItems); } protected function collect_RSS_1_0_data($rssContent, $maxItems){