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 31, 2024
1 parent b57af78 commit 96395a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Countries/Jamaica.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Spatie\Holidays\Countries;

use Carbon\CarbonImmutable;
use Carbon\CarbonInterface;

class Jamaica extends Country
{
Expand Down Expand Up @@ -63,12 +62,12 @@ protected function observedHolidays(int $year): array
$date = CarbonImmutable::parse("$year-$date");

// If any holiday falls on a Sunday, then it is observed on Monday
if($date->dayOfWeek === 0) {
if ($date->dayOfWeek === 0) {
$observedHolidays["{$name} Observed"] = $date->next(CarbonImmutable::MONDAY);
}

// If Labour Day falls on a Saturday, then it is observed on Monday
if($name == 'Labour Day' && $date->dayOfWeek === 6) {
if ($name == 'Labour Day' && $date->dayOfWeek === 6) {
$observedHolidays["{$name} Observed"] = $date->next(CarbonImmutable::MONDAY);
}

Expand Down

0 comments on commit 96395a1

Please sign in to comment.