add test batches
This commit is contained in:
@@ -9,7 +9,9 @@ use Illuminate\Support\Facades\DB;
|
||||
|
||||
class StudentAutoDistributionService
|
||||
{
|
||||
public function __construct(private StudentConfigService $configService) {}
|
||||
public function __construct(private StudentConfigService $configService)
|
||||
{
|
||||
}
|
||||
|
||||
public function promotionTotals(?string $schoolYear = null): array
|
||||
{
|
||||
@@ -28,7 +30,6 @@ class StudentAutoDistributionService
|
||||
$name = strtolower($nameRaw);
|
||||
if ($name === 'kg' || $name === 'youth') {
|
||||
$wanted[] = $row;
|
||||
|
||||
continue;
|
||||
}
|
||||
if (ctype_digit($name)) {
|
||||
@@ -166,7 +167,6 @@ class StudentAutoDistributionService
|
||||
$bestIdx = $idx;
|
||||
}
|
||||
}
|
||||
|
||||
return $bestIdx;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user