Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring Suggestion #8

Open
FreebieStock opened this issue Feb 12, 2013 · 1 comment
Open

Refactoring Suggestion #8

FreebieStock opened this issue Feb 12, 2013 · 1 comment
Labels

Comments

@FreebieStock
Copy link

Each feed type should be a separate class, instead of checking all the time what type of feed it is:

if($type == 'RSS 1')
...
elseif($type == 'RSS 2')

elseif($type == 'Atom')

This is not the OOP way.

@mibe
Copy link
Owner

mibe commented Feb 25, 2013

You're right, this is indeed not the OOP way. There's some discussion on this topic in #3 also.
Patches are always welcome. 😄

@mibe mibe added the feature label Sep 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants