Skip to content

Commit d821460

Browse files
Nielsvanpachgithub-actions[bot]
authored andcommitted
Fix styling
1 parent d99af11 commit d821460

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/Countries/Iran.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
namespace Spatie\Holidays\Countries;
44

5-
use Carbon\CarbonImmutable;
6-
75
class Iran extends Country
86
{
97
public function countryCode(): string
108
{
119
return 'ir';
1210
}
13-
11+
1412
protected function allHolidays(int $year): array
1513
{
1614
return [
@@ -26,4 +24,4 @@ protected function allHolidays(int $year): array
2624
'قیام ۱۵ خرداد' => '06-04',
2725
];
2826
}
29-
}
27+
}

tests/Countries/IranTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@
77

88
it('can calculate iran holidays', function () {
99
CarbonImmutable::setTestNow('2024-01-01');
10-
10+
1111
$holidays = Holidays::for(country: 'ir')->get();
12-
12+
1313
expect($holidays)
1414
->toBeArray()
1515
->not()->toBeEmpty();
16-
16+
1717
expect(formatDates($holidays))->toMatchSnapshot();
1818
});
1919

2020
it('can calculate iran holidays in local', function (string $locale, string $newYearsDayName) {
2121
CarbonImmutable::setTestNow('2024-01-01');
2222
$result = Holidays::for(country: 'ir', year: null, locale: $locale)->get();
23-
23+
2424
expect($result)->toBeArray();
2525
expect($result[7]['name'])->toBe($newYearsDayName);
2626
})->with(
2727
[
2828
['en', 'Sizdah Bedar'],
2929
['fa', 'سیزده بدر'],
3030
]
31-
);
31+
);

0 commit comments

Comments
 (0)