wip
This commit is contained in:
1 parent
0cb9b16bad
commit
e19b5ab54b
5 files changed
+50
-40
No files matched your search
@@ -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();
|
||||
@@ -169,6 +169,7 @@ trait UpdateHelper
|
||||
$collection[$season][$ss_player_id]['offsides'] += $val->offsides;
|
||||
$collection[$season][$ss_player_id]['shots_on_target'] += $val->shots_on_target;
|
||||
$collection[$season][$ss_player_id]['shots_off_target'] += $val->shots_off_target;
|
||||
$collection[$season][$ss_player_id]['shots_blocked'] += $val->shots_blocked;
|
||||
$collection[$season][$ss_player_id]['total_shots'] += $val->shots_off_target + $val->shots_off_target + $val->shots_blocked;
|
||||
|
||||
$collection['total'][$ss_player_id]['ss_player_id'] = $ss_player_id;
|
||||
@@ -183,6 +184,7 @@ trait UpdateHelper
|
||||
$collection['total'][$ss_player_id]['offsides'] += $val->offsides;
|
||||
$collection['total'][$ss_player_id]['shots_on_target'] += $val->shots_on_target;
|
||||
$collection['total'][$ss_player_id]['shots_off_target'] += $val->shots_off_target;
|
||||
$collection['total'][$ss_player_id]['shots_blocked'] += $val->shots_blocked;
|
||||
$collection['total'][$ss_player_id]['total_shots'] += $val->shots_off_target + $val->shots_off_target + $val->shots_blocked;
|
||||
}
|
||||
}
|
||||
@@ -215,6 +217,7 @@ trait UpdateHelper
|
||||
'offsides',
|
||||
'shots_on_target',
|
||||
'shots_off_target',
|
||||
'shots_blocked',
|
||||
'total_shots',
|
||||
'cards',
|
||||
]
|
||||
@@ -239,6 +242,7 @@ trait UpdateHelper
|
||||
$collection[$season][$ss_player_id]['offsides'] = 0;
|
||||
$collection[$season][$ss_player_id]['shots_on_target'] = 0;
|
||||
$collection[$season][$ss_player_id]['shots_off_target'] = 0;
|
||||
$collection[$season][$ss_player_id]['shots_blocked'] = 0;
|
||||
$collection[$season][$ss_player_id]['total_shots'] = 0;
|
||||
$collection[$season][$ss_player_id]['cards'] = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user