diff --git a/src/JsSse.php b/src/JsSse.php index 955ec4bf56..ca55bf93bd 100644 --- a/src/JsSse.php +++ b/src/JsSse.php @@ -88,7 +88,10 @@ public function send(JsExpressionable $action, bool $success = true): void $ajaxec = $this->getAjaxec($action); $this->sendEvent( '', - $this->getApp()->encodeJson(['success' => $success, 'atkjs' => $ajaxec->jsRender()]), + $this->getApp()->encodeJson([ + 'success' => $success, + 'atkjs' => $ajaxec->jsRender(), + ]), 'atkSseAction' ); } @@ -103,7 +106,10 @@ public function terminateAjax(JsBlock $ajaxec, $msg = null, bool $success = true if ($ajaxecStr !== '') { $this->sendEvent( '', - $this->getApp()->encodeJson(['success' => $success, 'atkjs' => $ajaxecStr]), + $this->getApp()->encodeJson([ + 'success' => $success, + 'atkjs' => $ajaxecStr, + ]), 'atkSseAction' ); }