From 0e1036109f89b86a34c374148e515ef015a790ec Mon Sep 17 00:00:00 2001 From: Nielsvanpach Date: Wed, 21 Feb 2024 09:02:09 +0000 Subject: [PATCH] Fix styling --- src/Countries/Bahrain.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Countries/Bahrain.php b/src/Countries/Bahrain.php index 71e66bbc..1c7cee12 100644 --- a/src/Countries/Bahrain.php +++ b/src/Countries/Bahrain.php @@ -154,24 +154,24 @@ protected function allHolidays(int $year): array /** * @return array */ -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.