Skip to content

Commit

Permalink
Merge pull request #47 from cariagency/master
Browse files Browse the repository at this point in the history
Reunion: Remove state-specific data inherited from France
  • Loading branch information
FlorianKoerner authored Dec 24, 2020
2 parents 04c9cc4 + e3606e0 commit 77a71ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Provider/RE.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public function getHolidaysByYear($year)
{
// sames rules as France
$holidays = parent::getHolidaysByYear($year);

// remove holidays for specific states
foreach($holidays as $date => $holiday) {
if (isset($holiday['states']) && $holiday['states']) unset($holidays[$date]);
}
// but an additional date
$holidays['12-20'] = $this->createData('Abolition de l\'Esclavage');

Expand Down

0 comments on commit 77a71ba

Please sign in to comment.