wip
This commit is contained in:
1 parent
a6b080248a
commit
e896b51f52
1 file changed
+4
-4
@@ -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();
|
||||
@@ -151,7 +151,7 @@ trait UpdateHelper
|
||||
} elseif ($activeteam_id == $away_id) {
|
||||
$collection[$season][$ss_player_id]['events_played_away'] += 1;
|
||||
$collection[$season][$ss_player_id]['minutes_played_away'] += $minutes_played;
|
||||
$collection['total'][$ss_player_id]['minutes_played_away'] += 1;
|
||||
$collection['total'][$ss_player_id]['events_played_away'] += 1;
|
||||
$collection['total'][$ss_player_id]['minutes_played_away'] += $minutes_played;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user