Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
@@ -2,6 +2,7 @@
namespace App\Services\Attendance;
use Config\School;
use DateTimeImmutable;
use DateTimeZone;
@@ -9,7 +10,7 @@ class AttendanceAutoPublishService
{
public function timezone(?string $tzFromCfg = null): DateTimeZone
{
$tz = $tzFromCfg ?: (class_exists(\Config\School::class)
$tz = $tzFromCfg ?: (class_exists(School::class)
? (config('School')->attendance['timezone'] ?? null)
: null);
@@ -19,7 +20,7 @@ class AttendanceAutoPublishService
public function secondSundayAfterEndOfDay(string $ymd, ?string $tz = null): string
{
$zone = $this->timezone($tz);
$day = new DateTimeImmutable($ymd . ' 00:00:00', $zone);
$day = new DateTimeImmutable($ymd.' 00:00:00', $zone);
$weekday = (int) $day->format('w');
$daysToNextSunday = (7 - $weekday) % 7;