From 7eadf7cfd80176ab9b74c9c6a55c28db0f43fa88 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 9 Nov 2014 20:04:27 -0500 Subject: Start templates cleanup and reorganisation --- app/Model/GithubWebhook.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/Model') 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); -- cgit v1.2.3