#23 - ecs fix
This commit is contained in:
@@ -16,7 +16,9 @@ trait InteractsWithYearPeriods
|
||||
public function createYearPeriod(int $year): YearPeriod
|
||||
{
|
||||
/** @var YearPeriod $yearPeriod */
|
||||
$yearPeriod = YearPeriod::factory()->create(["year" => $year]);
|
||||
$yearPeriod = YearPeriod::factory()->create([
|
||||
"year" => $year,
|
||||
]);
|
||||
|
||||
return $yearPeriod;
|
||||
}
|
||||
@@ -28,7 +30,9 @@ trait InteractsWithYearPeriods
|
||||
|
||||
public function markYearPeriodAsSelected(YearPeriod $yearPeriod): void
|
||||
{
|
||||
$this->session([YearPeriodRetriever::SESSION_KEY => $yearPeriod->id]);
|
||||
$this->session([
|
||||
YearPeriodRetriever::SESSION_KEY => $yearPeriod->id,
|
||||
]);
|
||||
}
|
||||
|
||||
public function clearSelectedYearPeriod(): void
|
||||
@@ -42,4 +46,4 @@ trait InteractsWithYearPeriods
|
||||
|
||||
YearPeriod::query()->delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user