run, $notifiable); $reasonEnvelope = app(ReasonPresenter::class)->forOperationRun($this->run, 'notification'); $baselineTruthChanged = data_get($this->run->context, 'baseline_capture.current_baseline_changed'); if ($reasonEnvelope !== null) { $message['reason_translation'] = $reasonEnvelope->toArray(); $message['diagnostic_reason_code'] = $reasonEnvelope->diagnosticCode(); } if (is_bool($baselineTruthChanged)) { $message['baseline_truth_changed'] = $baselineTruthChanged; } return $message; } }