Форматирование

This commit is contained in:
brusnitsyn
2026-04-24 16:46:10 +09:00
parent fd0e6ee817
commit 63daa62888
87 changed files with 1380 additions and 791 deletions

View File

@@ -38,7 +38,7 @@ class SnapshotService
? $this->getBranchId($department->rf_mis_department_id)
: null;
if (!$department || !$branchId) {
if (! $department || ! $branchId) {
return;
}
@@ -61,7 +61,7 @@ class SnapshotService
$dateRange,
$branchId,
false,
!$fillableAuto,
! $fillableAuto,
$fillableAuto,
true
);
@@ -81,7 +81,7 @@ class SnapshotService
$dateRange,
$branchId,
false,
!$fillableAuto,
! $fillableAuto,
$fillableAuto,
true
);
@@ -302,7 +302,7 @@ class SnapshotService
: [];
$operations = collect($misOperations)
->merge($manualOperations)
->unique(fn (array $operation) => ($operation['code'] ?? '') . '|' . ($operation['name'] ?? ''))
->unique(fn (array $operation) => ($operation['code'] ?? '').'|'.($operation['name'] ?? ''))
->values()
->all();
@@ -367,7 +367,7 @@ class SnapshotService
: [];
$operations = collect($misOperations)
->merge($manualOperations)
->unique(fn (array $operation) => ($operation['code'] ?? '') . '|' . ($operation['name'] ?? ''))
->unique(fn (array $operation) => ($operation['code'] ?? '').'|'.($operation['name'] ?? ''))
->values()
->all();
@@ -415,7 +415,7 @@ class SnapshotService
private function createSnapshotsForType(Report $report, string $type, Collection $patients): void
{
foreach ($patients as $patient) {
if (!$patient instanceof UnifiedPatientData) {
if (! $patient instanceof UnifiedPatientData) {
continue;
}
@@ -471,7 +471,7 @@ class SnapshotService
$history->MedicalHistoryID => $history->surgicalOperations->map(fn ($operation) => [
'code' => $operation->serviceMedical?->ServiceMedicalCode,
'name' => $operation->serviceMedical?->ServiceMedicalName,
])->values()->all()
])->values()->all(),
];
})
->all();