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 Feb 21, 2024
1 parent 9106de5 commit 0e10361
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/Countries/Bahrain.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,24 +154,24 @@ protected function allHolidays(int $year): array
/**
* @return array<string, CarbonInterface>
*/
protected function variableHolidays(int $year): array
{
$holidays = [
['EID_AL_FITR_HOLIDAYS', 'Eid al-Fitr', 3],
['EID_AL_ADHA_HOLIDAYS', 'Eid al-Adha', 3],
['ARAFAT_DAY_HOLIDAYS', 'Arafat Day'],
['ISLAMIC_NEW_YEAR_HOLIDAYS', 'Islamic New Year'],
['ASHURA_HOLIDAYS', 'Ashura', 2],
['PROPHET_MUHAMMAD_BIRTHDAY_HOLIDAYS', 'Birthday of the Prophet Muhammad']
];
protected function variableHolidays(int $year): array
{
$holidays = [
['EID_AL_FITR_HOLIDAYS', 'Eid al-Fitr', 3],
['EID_AL_ADHA_HOLIDAYS', 'Eid al-Adha', 3],
['ARAFAT_DAY_HOLIDAYS', 'Arafat Day'],
['ISLAMIC_NEW_YEAR_HOLIDAYS', 'Islamic New Year'],
['ASHURA_HOLIDAYS', 'Ashura', 2],
['PROPHET_MUHAMMAD_BIRTHDAY_HOLIDAYS', 'Birthday of the Prophet Muhammad'],
];

$dates = [];
foreach ($holidays as $holiday) {
$dates = array_merge($dates, $this->getIslamicHolidayDatesForYear(constant('self::' . $holiday[0]), $year, $holiday[1], $holiday[2] ?? 1));
}
$dates = [];
foreach ($holidays as $holiday) {
$dates = array_merge($dates, $this->getIslamicHolidayDatesForYear(constant('self::'.$holiday[0]), $year, $holiday[1], $holiday[2] ?? 1));
}

return $dates;
}
return $dates;
}

/**
* Prepare holiday dates for the given year.
Expand Down

0 comments on commit 0e10361

Please sign in to comment.