This commit is contained in:
salam committed 2026-09-14 20:46:06 +02:00
1 parent 545b2ef44a
commit 8722d88870
3 files changed
+10 -7

No files matched your search

+5 -5
View File
@@ -46,9 +46,9 @@ trait UpdateHelper
}
try {
$this->updatePlayers($playerCount);
self::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();
@@ -112,7 +112,7 @@ trait UpdateHelper
$this->newLine();
}
protected function updatePlayers(int $playerCount)
public static function updatePlayers(int $playerCount)
{
$res_player = StatistikoDetail::query()->where('is_active', 1)->limit($playerCount)->pluck('ss_player_id')->toArray();