add all controllers logic
This commit is contained in:
@@ -8,16 +8,6 @@ class SemesterSelectionService
|
||||
{
|
||||
public function selectedTeacherSemester(): string
|
||||
{
|
||||
$selected = trim((string) (session()->get('teacher_scores_selected_semester') ?? ''));
|
||||
if ($selected !== '') {
|
||||
return $this->normalize($selected);
|
||||
}
|
||||
|
||||
$fallback = trim((string) (session()->get('semester') ?? ''));
|
||||
if ($fallback !== '') {
|
||||
return $this->normalize($fallback);
|
||||
}
|
||||
|
||||
$configSemester = trim((string) (Configuration::getConfig('semester') ?? ''));
|
||||
if ($configSemester !== '') {
|
||||
return $this->normalize($configSemester);
|
||||
|
||||
Reference in New Issue
Block a user