Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach authored and github-actions[bot] committed Jan 19, 2024
1 parent 90b1c71 commit 6ac1047
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Countries/Ireland.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function allHolidays(int $year): array
'New Year\'s Day' => '01-01',
'Saint Patrick\'s Day' => '03-17',
'Christmas Day' => '12-25',
'Saint Stephen\'s Day' => '12-26'
'Saint Stephen\'s Day' => '12-26',
], $this->variableHolidays($year));
}

Expand All @@ -36,14 +36,14 @@ protected function variableHolidays(int $year): array
'May Public Holiday' => $mayHoliday,
'June Public Holiday' => $juneHoliday,
'August Public Holiday' => $augHoliday,
'October Public Holiday' => $octHoliday
'October Public Holiday' => $octHoliday,
];

// In 2023, Ireland added a new public holiday for St Brigid's day.
// It is the First Monday in February, or 1 February if the date falls on a Friday
if ($year >= 2023) {
$stBrigidsDay = new CarbonImmutable("$year-02-01", 'Europe/Dublin');
if (!$stBrigidsDay->isFriday()) {
if (! $stBrigidsDay->isFriday()) {
$stBrigidsDay = new CarbonImmutable("first monday of February $year", 'Europe/Dublin');
}
$variableHolidays['St Brigid\'s Day'] = $stBrigidsDay;
Expand Down

0 comments on commit 6ac1047

Please sign in to comment.