Skip to content

Commit 9f45e43

Browse files
freekmurzegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 3db668c commit 9f45e43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Countries/Turkmenistan.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
use Carbon\CarbonImmutable;
66
use DateTime;
77
use DateTimeZone;
8-
use DateInterval;
98
use IntlDateFormatter;
109

1110
class Turkmenistan extends Country
1211
{
13-
protected string $timezone = "Asia/Ashgabat";
12+
protected string $timezone = 'Asia/Ashgabat';
1413

1514
public function countryCode(): string
1615
{
@@ -47,7 +46,7 @@ protected function islamicCalendar(string $input, int $year, $nextYear = false):
4746
$hijriYear = $this->getHijriYear(year: $year, nextYear: $nextYear);
4847
$formatter = $this->getIslamicFormatter();
4948

50-
$timeStamp = $formatter->parse($input . '/' . $hijriYear . ' AH');
49+
$timeStamp = $formatter->parse($input.'/'.$hijriYear.' AH');
5150
$dateTime = date_create()->setTimeStamp($timeStamp)->setTimezone(new DateTimeZone($this->timezone));
5251

5352
return $dateTime->format('m-d');
@@ -68,7 +67,7 @@ protected function getHijriYear(int $year, $nextYear = false): int
6867
{
6968
$formatter = $this->getIslamicFormatter();
7069
$formatter->setPattern('yyyy');
71-
$dateTime = DateTime::createFromFormat('d/m/Y', '01/01/' . ($nextYear ? $year + 1 : $year));
70+
$dateTime = DateTime::createFromFormat('d/m/Y', '01/01/'.($nextYear ? $year + 1 : $year));
7271

7372
return (int) $formatter->format($dateTime);
7473
}

0 commit comments

Comments
 (0)