From ec2245bdee073c2613e3c21605808514c9db94e1 Mon Sep 17 00:00:00 2001 From: salam Date: Fri, 25 Sep 2026 12:23:49 +0200 Subject: [PATCH] wip --- app/Traits/UpdateHelper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Traits/UpdateHelper.php b/app/Traits/UpdateHelper.php index eb9a8b6f..06a5a8d7 100644 --- a/app/Traits/UpdateHelper.php +++ b/app/Traits/UpdateHelper.php @@ -48,7 +48,7 @@ trait UpdateHelper try { $this->updatePlayers($playerCount); } catch (\Exception $e) { - $this->error(get_class($e) . ' ' . Str::of($e->getMessage())->limit(100)->value()); + $this->error(get_class($e).' '.Str::of($e->getMessage())->limit(100)->value()); } if ($this->debug) { @@ -97,8 +97,8 @@ trait UpdateHelper $formattedTime = match (true) { $executionTime >= 60 => sprintf('%dm %ds', floor($executionTime / 60), $executionTime % 60), - $executionTime >= 1 => round($executionTime, 2) . 's', - default => round($executionTime * 1000) . 'ms', + $executionTime >= 1 => round($executionTime, 2).'s', + default => round($executionTime * 1000).'ms', }; $this->newLine(); @@ -116,7 +116,7 @@ trait UpdateHelper { $res_player = StatistikoDetail::query()->where('is_active', 1)->limit($playerCount)->pluck('ss_player_id')->toArray(); - $chunks = array_chunk($res_player, 1000); + $chunks = array_chunk($res_player, 500); foreach ($chunks as $chunk) { @@ -154,7 +154,7 @@ trait UpdateHelper $collection['total'][$ss_player_id]['events_played_away'] += 1; $collection['total'][$ss_player_id]['minutes_played_away'] += $minutes_played; } - //ubaldo 18. Sep 26 intanto vado avanti, appena trovo qwuaqlcosa ti scrivo, tu togli i red cards dal conteggio + // ubaldo 18. Sep 26 intanto vado avanti, appena trovo qwuaqlcosa ti scrivo, tu togli i red cards dal conteggio $cards = $val->card_yellow + $val->card_yellowred; $collection[$season][$ss_player_id]['ss_player_id'] = $ss_player_id;