mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Run PHP-CS-FIXER to make sure
code is consisted with PSR-1 + PSR-2
This commit is contained in:
+7
-3
@@ -23,6 +23,7 @@ class Event
|
||||
|
||||
/**
|
||||
* Event constructor.
|
||||
*
|
||||
* @param string $queue
|
||||
* @param string $class
|
||||
*/
|
||||
@@ -34,17 +35,20 @@ class Event
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setParam($key, $value)
|
||||
{
|
||||
$this->params[$key] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function getParam($key)
|
||||
@@ -53,10 +57,10 @@ class Event
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute Event
|
||||
* Execute Event.
|
||||
*/
|
||||
public function trigger()
|
||||
{
|
||||
Resque::enqueue($this->queue, $this->class, $this->params);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user