diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-09 20:04:27 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-09 20:04:27 -0500 |
commit | 7eadf7cfd80176ab9b74c9c6a55c28db0f43fa88 (patch) | |
tree | b55b32bf9200f4ed045adfabaadb00d0ce20fc65 /app/Model | |
parent | e89ba5e9e692f33427fedb05a095255f27480a6b (diff) |
Start templates cleanup and reorganisation
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/GithubWebhook.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Model/GithubWebhook.php b/app/Model/GithubWebhook.php index 58c2fa54..9c8bd366 100644 --- a/app/Model/GithubWebhook.php +++ b/app/Model/GithubWebhook.php @@ -47,13 +47,11 @@ class GithubWebhook extends Base * * @access public * @param string $type Github event type - * @param string $payload Raw Github event (JSON) + * @param array $payload Github event * @return boolean */ - public function parsePayload($type, $payload) + public function parsePayload($type, array $payload) { - $payload = json_decode($payload, true); - switch ($type) { case 'push': return $this->parsePushEvent($payload); |