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
@@ -54,7 +54,7 @@ class TeacherSubmissionSupportService
$items = [];
foreach ($statusMap as $key => $status) {
if (!(bool) ($status['completed'] ?? true) && isset($labels[$key])) {
if (! (bool) ($status['completed'] ?? true) && isset($labels[$key])) {
$items[] = $labels[$key];
}
}
@@ -80,7 +80,7 @@ class TeacherSubmissionSupportService
return mb_strlen($text) <= $limit
? $text
: mb_substr($text, 0, $limit) . '…';
: mb_substr($text, 0, $limit).'…';
}
public function parseMissingItemsPayload($payload): array
@@ -103,7 +103,7 @@ class TeacherSubmissionSupportService
}
$decoded = json_decode(base64_decode($payload, true) ?: '', true);
if (!is_array($decoded)) {
if (! is_array($decoded)) {
return [];
}
@@ -130,10 +130,11 @@ class TeacherSubmissionSupportService
return $items[0];
}
if ($count === 2) {
return $items[0] . ' and ' . $items[1];
return $items[0].' and '.$items[1];
}
$last = array_pop($items);
return implode(', ', $items) . ' and ' . $last;
return implode(', ', $items).' and '.$last;
}
}