Fix Pint formatting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user