wip
This commit is contained in:
1 parent
3461b20afd
commit
2526c9001e
1 file changed
+3
-2
@@ -128,8 +128,6 @@ trait UpdateHelper
|
|||||||
$collection = [];
|
$collection = [];
|
||||||
foreach ($res as $val) {
|
foreach ($res as $val) {
|
||||||
|
|
||||||
dd($val);
|
|
||||||
|
|
||||||
$ss_player_id = (int) $val->ss_player_id;
|
$ss_player_id = (int) $val->ss_player_id;
|
||||||
$activeteam_id = (int) $val->activeteam_id;
|
$activeteam_id = (int) $val->activeteam_id;
|
||||||
$minutes_played = (int) $val->minutes_played;
|
$minutes_played = (int) $val->minutes_played;
|
||||||
@@ -138,6 +136,8 @@ trait UpdateHelper
|
|||||||
$home_id = (int) $val->event->home_id;
|
$home_id = (int) $val->event->home_id;
|
||||||
$away_id = (int) $val->event->away_id;
|
$away_id = (int) $val->event->away_id;
|
||||||
|
|
||||||
|
if ($season) {
|
||||||
|
|
||||||
if (! isset($collection[$season][$ss_player_id])) {
|
if (! isset($collection[$season][$ss_player_id])) {
|
||||||
$this->array_template($collection, $ss_player_id, $season);
|
$this->array_template($collection, $ss_player_id, $season);
|
||||||
}
|
}
|
||||||
@@ -187,6 +187,7 @@ trait UpdateHelper
|
|||||||
$collection['total'][$ss_player_id]['shots_off_target'] += $val->shots_off_target;
|
$collection['total'][$ss_player_id]['shots_off_target'] += $val->shots_off_target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$collection_1d = [];
|
$collection_1d = [];
|
||||||
foreach ($collection as $arr) {
|
foreach ($collection as $arr) {
|
||||||
|
|||||||
Reference in new issue
Block a user