fix gitlab tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user