diff --git a/src/Appwrite/Event/Event.php b/src/Appwrite/Event/Event.php index c4857c801e..0cf90eb3d3 100644 --- a/src/Appwrite/Event/Event.php +++ b/src/Appwrite/Event/Event.php @@ -264,8 +264,8 @@ class Event */ public function trigger(): string|bool { - if($this->paused) { - return; + if ($this->paused) { + return false; } return Resque::enqueue($this->queue, $this->class, [ diff --git a/src/Appwrite/Event/Func.php b/src/Appwrite/Event/Func.php index 5a6dc2157b..d1ef112b3a 100644 --- a/src/Appwrite/Event/Func.php +++ b/src/Appwrite/Event/Func.php @@ -142,7 +142,7 @@ class Func extends Event */ public function trigger(): string|bool { - if($this->paused) { + if ($this->paused) { return; }