From 472265497b7605541699cf4e889596d8da840ec2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 11 May 2023 06:12:39 +0000 Subject: [PATCH] fix formatting and error --- src/Appwrite/Event/Event.php | 4 ++-- src/Appwrite/Event/Func.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }