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 Dec 18, 2024
1 parent 7b5b1e3 commit 48a6a9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Countries/Paraguay.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Spatie\Holidays\Countries;

Expand Down Expand Up @@ -41,7 +43,7 @@ private function variableHolidays(int $year): array

return [
'Paz del Chaco' => $this->chacoArmistice($year),
'Jueves Santo' => $easter->subDays(3),
'Jueves Santo' => $easter->subDays(3),
'Viernes Santo' => $easter->subDays(2),
];
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Countries/ParaguayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
$holidays_gn = Holidays::for(country: 'py', locale: 'gn')->get();

expect($holidays_gn[0]['name'])
->toBe("Ary Pyahu");
->toBe('Ary Pyahu');
});

it('can calculate Chacho Armistice holiday', function (int $year, int $valid_day, int $invalid_day): void {
CarbonImmutable::setTestNow("$year-01-01");

expect(Holidays::for('py')->isHoliday("$year-06-$valid_day"))->toBeTrue()
->and(Holidays::for('py')->isHoliday("$year-06-$invalid_day"))->toBeFalse();
->and(Holidays::for('py')->isHoliday("$year-06-$invalid_day"))->toBeFalse();
})->with([
[2012, 12, 16],
[2013, 12, 16],
Expand Down

0 comments on commit 48a6a9b

Please sign in to comment.