mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix PSR-12 style for arrow functions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
66c83162d3
commit
d7174d0de3
@@ -30,8 +30,8 @@ class Swoole extends Promise
|
||||
|
||||
try {
|
||||
$executor(
|
||||
fn($value) => $this->doResolve($value),
|
||||
fn($reason) => $this->doReject($reason)
|
||||
fn ($value) => $this->doResolve($value),
|
||||
fn ($reason) => $this->doReject($reason)
|
||||
);
|
||||
} catch (\Throwable $e) {
|
||||
$this->doReject($e);
|
||||
@@ -55,8 +55,8 @@ class Swoole extends Promise
|
||||
// Handle thenable values
|
||||
if (\is_object($value) && \method_exists($value, 'then')) {
|
||||
$value->then(
|
||||
fn($v) => $this->doResolve($v),
|
||||
fn($r) => $this->doReject($r)
|
||||
fn ($v) => $this->doResolve($v),
|
||||
fn ($r) => $this->doReject($r)
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user