From 213bcdc3f84215b1eea7118d09b53df1d562ccc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Fri, 9 Nov 2018 20:24:57 +0100 Subject: [PATCH] Fixed the TODOs --- lib/PushEvent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PushEvent.php b/lib/PushEvent.php index bab83c2..417e7f8 100644 --- a/lib/PushEvent.php +++ b/lib/PushEvent.php @@ -163,10 +163,10 @@ class PushEvent implements \JsonSerializable { 'before' => $this->getBefore(), 'compare_url' => ($url = $this->getCompareUrl()) ? (string) $url : null, 'commits' => array_map(function(PayloadCommit $commit) { return $commit->jsonSerialize(); }, $this->getCommits()->getArrayCopy()), - 'pusher' => 'TODO', + 'pusher' => ($user = $this->getPusher()) ? $user->jsonSerialize() : null, 'ref' => $this->getRef(), - 'repository' => 'TODO', - 'sender' => 'TODO' + 'repository' => ($repository = $this->getRepository()) ? $repository->jsonSerialize() : null, + 'sender' => ($user = $this->getSender()) ? $user->jsonSerialize() : null ]; }