Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-08 23:30:22 -04:00
parent 567dc24649
commit c792b8be05
1288 changed files with 10766 additions and 9669 deletions
+8 -7
View File
@@ -7,9 +7,7 @@ use DateTimeImmutable;
class SemesterRangeService
{
public function __construct(private SemesterConfigService $configService)
{
}
public function __construct(private SemesterConfigService $configService) {}
public function getSchoolYearRange(string $schoolYear): array
{
@@ -31,7 +29,7 @@ class SemesterRangeService
public function getSemesterRange(string $schoolYear, string $semester): ?array
{
if (!preg_match('/^(\\d{4})-(\\d{4})$/', $schoolYear, $m)) {
if (! preg_match('/^(\\d{4})-(\\d{4})$/', $schoolYear, $m)) {
return null;
}
$y1 = (int) $m[1];
@@ -57,6 +55,7 @@ class SemesterRangeService
if ($value === 'spring') {
return 'Spring';
}
return '';
}
@@ -103,13 +102,15 @@ class SemesterRangeService
if (preg_match('/^(\\d{4})-(\\d{4})$/', $schoolYear, $m)) {
$y1 = (int) $m[1];
$y2 = (int) $m[2];
return [new DateTimeImmutable($y1 . '-09-01'), new DateTimeImmutable($y2 . '-06-30')];
return [new DateTimeImmutable($y1.'-09-01'), new DateTimeImmutable($y2.'-06-30')];
}
$currentYear = (int) date('Y');
return [
new DateTimeImmutable($currentYear . '-09-01'),
new DateTimeImmutable(($currentYear + 1) . '-06-30'),
new DateTimeImmutable($currentYear.'-09-01'),
new DateTimeImmutable(($currentYear + 1).'-06-30'),
];
}
}