chore(app): mises a jour applicatives et normalisation du code (Laravel Pint)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ class ResultatDiag extends Model
|
||||
'date_passage',
|
||||
'score_total',
|
||||
'niveau_stress',
|
||||
'event_ids'
|
||||
'event_ids',
|
||||
];
|
||||
|
||||
public function user()
|
||||
@@ -26,8 +26,11 @@ class ResultatDiag extends Model
|
||||
|
||||
public function getEventsAttribute()
|
||||
{
|
||||
if (!$this->event_ids) return collect();
|
||||
if (! $this->event_ids) {
|
||||
return collect();
|
||||
}
|
||||
$ids = explode(';', $this->event_ids);
|
||||
|
||||
return StressEvent::whereIn('id', $ids)->get();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user