wip pp filter

This commit is contained in:
salam committed 2026-10-15 16:29:48 +02:00
1 parent fc1e1b2832
commit 55f31acf2a
23 files changed
+1127 -329

No files matched your search

@@ -6,14 +6,14 @@ use Illuminate\Support\Carbon;
class GetSeason
{
public static function load(?array $season, ?string $seasonmode)
public static function load(?array $season, ?string $season_mode)
{
if (! \is_array($season) || ! \count($season)) {
$date = Carbon::now();
$season = [];
if ($seasonmode == 'halfyear') {
if ($season_mode == 'halfyear') {
if ((int) date('m') > 7) {
$season[] = (string) $date->format('y').'/'.$date->format('y') + 1;
} else {
@@ -27,13 +27,13 @@ class GetSeason
return $season;
}
public static function active(?string $seasonmode)
public static function active(?string $season_mode)
{
$date = Carbon::now();
$active_season = '';
if ($seasonmode == 'halfyear') {
if ($season_mode == 'halfyear') {
if ((int) date('m') > 7) {
$active_season = (string) $date->format('y').'/'.$date->format('y') + 1;
} else {