GitHub PullRequestReviewCommentEvent at 2014-05-06 12:33:49
Repository: fractal
Actor: philsturgeon
Payload: {"comment":{"url":"https://api.github.com/repos/thephpleague/fractal/pulls/comments/12321527","id":12321527,"diff_hunk":"@@ -0,0 +1,29 @@\n+<?php namespace League\\Fractal\\Serializer;\n+\n+class DataArraySerializer extends ArraySerializer\n+{\n+\n+    /**\n+     * Serialize the top level data.\n+     * \n+     * @param array $data\n+     * \n+     * @return array\n+     */\n+    public function serializeData(array $data)\n+    {\n+        return array('data' => $data);","path":"src/Serializer/DataArraySerializer.php","position":15,"original_position":15,"commit_id":"96937f16285409b7e79dd1c815194fecdeb24022","original_commit_id":"96937f16285409b7e79dd1c815194fecdeb24022","user":{"login":"philsturgeon","id":67381,"avatar_url":"https://avatars.githubusercontent.com/u/67381?","gravatar_id":"14df293d6c5cd6f05996dfc606a6a951","url":"https://api.github.com/users/philsturgeon","html_url":"https://github.com/philsturgeon","followers_url":"https://api.github.com/users/philsturgeon/followers","following_url":"https://api.github.com/users/philsturgeon/following{/other_user}","gists_url":"https://api.github.com/users/philsturgeon/gists{/gist_id}","starred_url":"https://api.github.com/users/philsturgeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philsturgeon/subscriptions","organizations_url":"https://api.github.com/users/philsturgeon/orgs","repos_url":"https://api.github.com/users/philsturgeon/repos","events_url":"https://api.github.com/users/philsturgeon/events{/privacy}","received_events_url":"https://api.github.com/users/philsturgeon/received_events","type":"User","site_admin":false},"body":"I meant to paste an example:\r\n\r\n    public function embedImages(Moment $moment)\r\n    {\r\n        return $this\r\n            ->collection($moment->getAllImages(), new ImageTransformer)\r\n            ->setResourceKey('avatars');\r\n    }\r\n\r\n","created_at":"2014-05-06T12:33:49Z","updated_at":"2014-05-06T12:33:49Z","html_url":"https://github.com/thephpleague/fractal/pull/45#discussion_r12321527","pull_request_url":"https://api.github.com/repos/thephpleague/fractal/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/thephpleague/fractal/pulls/comments/12321527"},"html":{"href":"https://github.com/thephpleague/fractal/pull/45#discussion_r12321527"},"pull_request":{"href":"https://api.github.com/repos/thephpleague/fractal/pulls/45"}}}}