From d9f104f5b369d669fe1e4bd3ae3a1df295079875 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Tue, 7 Jan 2025 13:13:56 +0600 Subject: [PATCH] fmt --- app/Models/Study.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/Models/Study.php b/app/Models/Study.php index 2c47e3e..209dad7 100644 --- a/app/Models/Study.php +++ b/app/Models/Study.php @@ -292,22 +292,6 @@ public function registerMediaCollections(): void ->useFallbackPath(public_path(self::FALLBACK_IMAGE), 'tn'); } - protected function casts(): array - { - return [ - 'is_locked' => 'boolean', - 'is_archived' => 'boolean', - 'study_status' => StudyLevelStatus::class, - 'report_status' => ReportStatus::class, - 'priority' => Priority::class, - 'received_at' => 'immutable_datetime', - 'reported_at' => 'immutable_datetime', - 'assigned_at' => 'immutable_datetime', - 'study_date' => 'immutable_datetime', - 'patient_birthdate' => 'immutable_date', - ]; - } - public function getGenderIconAttribute(): string { return match (strtolower($this->patient_sex ?? '')) { @@ -325,4 +309,20 @@ public function getGenderNameAttribute(): string default => 'Other', }; } + + protected function casts(): array + { + return [ + 'is_locked' => 'boolean', + 'is_archived' => 'boolean', + 'study_status' => StudyLevelStatus::class, + 'report_status' => ReportStatus::class, + 'priority' => Priority::class, + 'received_at' => 'immutable_datetime', + 'reported_at' => 'immutable_datetime', + 'assigned_at' => 'immutable_datetime', + 'study_date' => 'immutable_datetime', + 'patient_birthdate' => 'immutable_date', + ]; + } }