This commit is contained in:
salam committed 2026-09-11 10:49:49 +02:00
1 parent f028a8b2a8
commit 60ab054eb2
5 files changed
+18 -16

No files matched your search

@@ -14,7 +14,7 @@ use PDOStatement;
use function Laravel\Prompts\select;
trait UpdatePlayerSeasonHelper
trait UpdateHelper
{
protected float $benchmarkStartTime;
@@ -26,7 +26,7 @@ trait UpdatePlayerSeasonHelper
protected int $debug;
public function handleUpdate(): void
public function handle(): void
{
error_reporting(E_ALL);
ini_set('display_errors', 1);
@@ -49,7 +49,7 @@ trait UpdatePlayerSeasonHelper
}
try {
$this->update($playerCount);
$this->updatePlayers($playerCount);
} catch (\Exception $e) {
$this->error(get_class($e).' '.Str::of($e->getMessage())->limit(100)->value());
}
@@ -115,7 +115,7 @@ trait UpdatePlayerSeasonHelper
$this->newLine();
}
protected function update(int $playerCount)
protected function updatePlayers(int $playerCount)
{
$res_player = StatistikoDetail::query()->where('is_active', 1)->limit($playerCount)->pluck('ss_player_id')->toArray();