Clean up the data parser
skybluesofa opened this issue · comments
src/Data/Parser.php contains a bunch of duplicated code. This duplicated functionality should be encapsulated into private utility methods.
Specifically, the duplicated functionality:
- getRecurringConfigurationBasedEvents() and getRecurringConfigurationBasedHolidays()
- getSpecificDateBasedEvents() and getSpecificDateBasedHolidays()
- getRecurringDateBasedEvents() and getRecurringDateBasedHolidays()
I've updated this and added tests