fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -9,7 +9,8 @@ class AdministratorSharedService
{
public function __construct(
protected Configuration $configuration
) {}
) {
}
public function getSemester(?string $override = null): string
{
@@ -34,7 +35,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)) {
@@ -43,7 +44,6 @@ class AdministratorSharedService
if ($end < 0) {
$end += 100;
}
return sprintf('%04d-%02d', $start, $end);
}
@@ -126,7 +126,7 @@ class AdministratorSharedService
public function countUniqueEntities($rows): int
{
if (! is_iterable($rows)) {
if (!is_iterable($rows)) {
return 0;
}