chore: jake review

This commit is contained in:
loks0n
2025-09-03 10:29:49 +01:00
parent 5423b63c8a
commit e4adff4edc
6 changed files with 42 additions and 19 deletions
+28
View File
@@ -193,4 +193,32 @@ class Database extends Event
'events' => Event::generateEvents($this->getEvent(), $this->getParams())
];
}
/**
* Clone the database event instance.
*/
public function __clone(): void
{
parent::__clone();
if ($this->database !== null) {
$this->database = clone $this->database;
}
if ($this->row !== null) {
$this->row = clone $this->row;
}
if ($this->table !== null) {
$this->table = clone $this->table;
}
if ($this->document !== null) {
$this->document = clone $this->document;
}
if ($this->collection !== null) {
$this->collection = clone $this->collection;
}
}
}
-3
View File
@@ -222,9 +222,6 @@ class Func extends Event
/**
* Clone the function event instance.
*
* Handles deep copying of Func-specific properties
* after parent cloning completes.
*/
public function __clone(): void
{
@@ -31,10 +31,8 @@ class ScheduleExecutions extends ScheduleBase
public function __construct()
{
$type = static::getSupportedResource();
$this
->desc("Execute executions scheduled in Appwrite")
->desc('Execute executions scheduled in Appwrite')
->inject('queueForFunctions')
->inject('dbForPlatform')
->inject('getProjectDB')
@@ -35,7 +35,7 @@ class ScheduleFunctions extends ScheduleBase
public function __construct()
{
$this
->desc("Execute functions scheduled in Appwrite")
->desc('Execute functions scheduled in Appwrite')
->inject('queueForFunctions')
->inject('dbForPlatform')
->inject('getProjectDB')
@@ -31,7 +31,7 @@ class ScheduleMessages extends ScheduleBase
public function __construct()
{
$this
->desc("Execute messages scheduled in Appwrite")
->desc('Execute messages scheduled in Appwrite')
->inject('queueForMessaging')
->inject('dbForPlatform')
->inject('getProjectDB')