fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -13,7 +13,8 @@ class ClassPreparationPrintService
private ClassPreparationCalculatorService $calculator,
private ClassPreparationAdjustmentService $adjustments,
private ClassPreparationLogService $logs
) {}
) {
}
public function printPrep(string $classSectionId, string $schoolYear, ?string $semester = null): array
{
@@ -30,7 +31,7 @@ class ClassPreparationPrintService
$printedAt = $this->utcNow();
$ok = $this->logs->createLog($classSectionId, $className, $schoolYear, $items, $printedAt);
if (! $ok) {
if (!$ok) {
Log::warning('Failed to store class preparation log.', [
'class_section_id' => $classSectionId,
'school_year' => $schoolYear,
@@ -54,7 +55,6 @@ class ClassPreparationPrintService
if (function_exists('utc_now')) {
return (string) utc_now();
}
return now('UTC')->toDateTimeString();
}
}