add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
@@ -9,7 +9,9 @@ use Illuminate\Support\Facades\Schema;
class SchoolYearContextService
{
public function __construct(private SchoolYearResolver $resolver) {}
public function __construct(private SchoolYearResolver $resolver)
{
}
public function currentSchoolYear(?string $requested = null): string
{
@@ -93,7 +95,7 @@ class SchoolYearContextService
}
foreach ($this->legacySchoolYearNames() as $name) {
if (! isset($seen[$name])) {
if (!isset($seen[$name])) {
$years[] = [
'id' => null,
'name' => $name,
@@ -109,7 +111,7 @@ class SchoolYearContextService
}
$include = trim((string) $include);
if ($include !== '' && ! isset($seen[$include])) {
if ($include !== '' && !isset($seen[$include])) {
array_unshift($years, [
'id' => null,
'name' => $include,
@@ -129,7 +131,7 @@ class SchoolYearContextService
{
$names = ['Fall', 'Spring'];
$current = trim((string) $include);
if ($current !== '' && ! in_array($current, $names, true)) {
if ($current !== '' && !in_array($current, $names, true)) {
array_unshift($names, $current);
}
@@ -151,7 +153,7 @@ class SchoolYearContextService
$names = [];
foreach ($tables as $table) {
if (! Schema::hasTable($table) || ! Schema::hasColumn($table, 'school_year')) {
if (!Schema::hasTable($table) || !Schema::hasColumn($table, 'school_year')) {
continue;
}