Fix Pint formatting
This commit is contained in:
@@ -45,6 +45,7 @@ class BalancedSectionPlacementService
|
||||
return $scoreB <=> $scoreA;
|
||||
}
|
||||
$name = strcmp((string) ($a['student_name'] ?? ''), (string) ($b['student_name'] ?? ''));
|
||||
|
||||
return $name !== 0 ? $name : ((int) $a['student_id'] <=> (int) $b['student_id']);
|
||||
});
|
||||
}
|
||||
@@ -79,6 +80,7 @@ class BalancedSectionPlacementService
|
||||
for ($i = 1; $i <= $sectionCount; $i++) {
|
||||
$sizes[$i] = $base + ($i <= $remainder ? 1 : 0);
|
||||
}
|
||||
|
||||
return $sizes;
|
||||
}
|
||||
|
||||
@@ -98,6 +100,7 @@ class BalancedSectionPlacementService
|
||||
if ($cmp !== 0) {
|
||||
return $cmp;
|
||||
}
|
||||
|
||||
return $a['section_index'] <=> $b['section_index'];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user