Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
@@ -101,28 +101,28 @@ class SchoolCalendarFormatterService
$parentName = (string) ($row['parent_name'] ?? 'Parent');
$studentName = (string) ($row['student_name'] ?? 'Student');
$time = trim((string) ($row['time'] ?? ''));
$timeLabel = $time !== '' ? (' ' . $time) : '';
$timeLabel = $time !== '' ? (' '.$time) : '';
$title = $audience === 'admin' ? 'Admin Meeting' : 'Parent Meeting';
$descParts = [];
$descParts[] = 'Student: ' . $studentName;
$descParts[] = 'Parent: ' . $parentName;
if (!empty($row['class_section_name'])) {
$descParts[] = 'Section: ' . $row['class_section_name'];
$descParts[] = 'Student: '.$studentName;
$descParts[] = 'Parent: '.$parentName;
if (! empty($row['class_section_name'])) {
$descParts[] = 'Section: '.$row['class_section_name'];
}
$descParts[] = 'Date/Time: ' . ($row['date'] ?? '') . $timeLabel;
if (!empty($row['notes'])) {
$descParts[] = 'Notes: ' . $row['notes'];
$descParts[] = 'Date/Time: '.($row['date'] ?? '').$timeLabel;
if (! empty($row['notes'])) {
$descParts[] = 'Notes: '.$row['notes'];
}
$start = (string) ($row['date'] ?? '');
if ($start !== '' && $time !== '') {
$start = $start . 'T' . $time;
$start = $start.'T'.$time;
}
return [
'id' => 'pm-' . (int) ($row['id'] ?? 0),
'id' => 'pm-'.(int) ($row['id'] ?? 0),
'title' => $title,
'start' => $start,
'description' => implode("\n", $descParts),