fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -12,8 +12,7 @@ class AdministratorSharedService
public function __construct(
protected Configuration $configuration
) {
}
) {}
public function getSemester(?string $override = null): string
{
@@ -38,7 +37,7 @@ class AdministratorSharedService
}
if (preg_match('/^(\d{4})\s*-\s*(\d{4})$/', $schoolYear, $m)) {
return ((int) $m[1] - 1) . '-' . ((int) $m[2] - 1);
return ((int) $m[1] - 1).'-'.((int) $m[2] - 1);
}
if (preg_match('/^(\d{4})\s*-\s*(\d{2})$/', $schoolYear, $m)) {
@@ -47,6 +46,7 @@ class AdministratorSharedService
if ($end < 0) {
$end += 100;
}
return sprintf('%04d-%02d', $start, $end);
}
@@ -129,7 +129,7 @@ class AdministratorSharedService
public function countUniqueEntities($rows): int
{
if (!is_iterable($rows)) {
if (! is_iterable($rows)) {
return 0;
}