Fixed the TODOs

This commit is contained in:
Cédric Belin
2018-11-09 20:24:57 +01:00
parent ca9ac25675
commit 213bcdc3f8

View File

@ -163,10 +163,10 @@ class PushEvent implements \JsonSerializable {
'before' => $this->getBefore(), 'before' => $this->getBefore(),
'compare_url' => ($url = $this->getCompareUrl()) ? (string) $url : null, 'compare_url' => ($url = $this->getCompareUrl()) ? (string) $url : null,
'commits' => array_map(function(PayloadCommit $commit) { return $commit->jsonSerialize(); }, $this->getCommits()->getArrayCopy()), 'commits' => array_map(function(PayloadCommit $commit) { return $commit->jsonSerialize(); }, $this->getCommits()->getArrayCopy()),
'pusher' => 'TODO', 'pusher' => ($user = $this->getPusher()) ? $user->jsonSerialize() : null,
'ref' => $this->getRef(), 'ref' => $this->getRef(),
'repository' => 'TODO', 'repository' => ($repository = $this->getRepository()) ? $repository->jsonSerialize() : null,
'sender' => 'TODO' 'sender' => ($user = $this->getSender()) ? $user->jsonSerialize() : null
]; ];
} }