add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
@@ -12,11 +12,13 @@ use Symfony\Component\HttpFoundation\Response;
class EnsureSchoolYearEditable
{
public function __construct(private SchoolYearWriteGuard $guard) {}
public function __construct(private SchoolYearWriteGuard $guard)
{
}
public function handle(Request $request, Closure $next): Response
{
if (! in_array(strtoupper($request->method()), ['POST', 'PUT', 'PATCH', 'DELETE'], true)) {
if (!in_array(strtoupper($request->method()), ['POST', 'PUT', 'PATCH', 'DELETE'], true)) {
return $next($request);
}
@@ -82,7 +84,7 @@ class EnsureSchoolYearEditable
private function lookupYear(string $id, string $table, string $column): ?string
{
if (! ctype_digit($id) || ! DB::getSchemaBuilder()->hasTable($table)) {
if (!ctype_digit($id) || !DB::getSchemaBuilder()->hasTable($table)) {
return null;
}