Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
StaffCollab committed May 1, 2024
2 parents ab0060a + e954602 commit 05ef89b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/HebrewDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public static function createFromJewishDate($year, $month, $day): self

public function getCalendarInfo($lang = 'gregorian'): array
{
return [
'days' => $lang == 'hebrew' ? $this->getHebrewDaysPeriod() : $this->getDaysPeriod(),
'months' => $lang == 'hebrew' ? $this->getHebrewMonthsPeriod() : $this->getMonthsPeriod(),
'years' => $lang == 'hebrew' ? $this->getHebrewYearsPeriod() : $this->getYearsPeriod()
];
return [
'days' => $lang == 'hebrew' ? $this->getHebrewDaysPeriod() : $this->getDaysPeriod(),
'months' => $lang == 'hebrew' ? $this->getHebrewMonthsPeriod() : $this->getMonthsPeriod(),
'years' => $lang == 'hebrew' ? $this->getHebrewYearsPeriod() : $this->getYearsPeriod(),
];
}
}

0 comments on commit 05ef89b

Please sign in to comment.