GitHub PullRequestReviewCommentEvent at 2014-11-16 22:33:28
Repository: phrases
Actor: augustohp
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/malukenho/phrases/pulls/comments/20413947","id":20413947,"diff_hunk":"@@ -0,0 +1,39 @@\n+<?php\n+namespace Phrases\\Http\\Response;\n+\n+use Zend\\Http\\Response;\n+use Zend\\Http\\Header\\MultipleHeaderInterface;\n+\n+/**\n+ * Send a response.\n+ *\n+ * @author Jefersson Nathan <malukenho@phpse.net>\n+ */\n+class Sender\n+{\n+    /**\n+     * Send headers and output to main output channel.\n+     *\n+     * @param Response $response\n+     *\n+     * @return false|null\n+     */\n+    public function send(Response $response)\n+    {\n+        if (headers_sent()) {\n+            return false;\n+        }\n+\n+        foreach ($response->getHeaders() as $header) {\n+            if ($header instanceof MultipleHeaderInterface) {\n+                header($header->toString(), false);\n+                continue;\n+            }\n+            header($header->toString());\n+        }\n+        $status = $response->renderStatusLine();\n+        header($status);\n+\n+        echo $response->getBody();","path":"src/Phrases/Http/Response/Sender.php","position":37,"original_position":37,"commit_id":"d4f3e233112e58045ff6212cab258c66ed03b081","original_commit_id":"d4f3e233112e58045ff6212cab258c66ed03b081","user":{"login":"augustohp","id":188613,"avatar_url":"https://avatars.githubusercontent.com/u/188613?v=3","gravatar_id":"","url":"https://api.github.com/users/augustohp","html_url":"https://github.com/augustohp","followers_url":"https://api.github.com/users/augustohp/followers","following_url":"https://api.github.com/users/augustohp/following{/other_user}","gists_url":"https://api.github.com/users/augustohp/gists{/gist_id}","starred_url":"https://api.github.com/users/augustohp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augustohp/subscriptions","organizations_url":"https://api.github.com/users/augustohp/orgs","repos_url":"https://api.github.com/users/augustohp/repos","events_url":"https://api.github.com/users/augustohp/events{/privacy}","received_events_url":"https://api.github.com/users/augustohp/received_events","type":"User","site_admin":false},"body":"Why not return the body, or the response object?!","created_at":"2014-11-16T22:33:28Z","updated_at":"2014-11-16T22:33:28Z","html_url":"https://github.com/malukenho/phrases/pull/17#discussion_r20413947","pull_request_url":"https://api.github.com/repos/malukenho/phrases/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/malukenho/phrases/pulls/comments/20413947"},"html":{"href":"https://github.com/malukenho/phrases/pull/17#discussion_r20413947"},"pull_request":{"href":"https://api.github.com/repos/malukenho/phrases/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/malukenho/phrases/pulls/17","id":23952822,"html_url":"https://github.com/malukenho/phrases/pull/17","diff_url":"https://github.com/malukenho/phrases/pull/17.diff","patch_url":"https://github.com/malukenho/phrases/pull/17.patch","issue_url":"https://api.github.com/repos/malukenho/phrases/issues/17","number":17,"state":"open","locked":false,"title":"[WIP] Create a basic structure for phrases development","user":{"login":"malukenho","id":3275172,"avatar_url":"https://avatars.githubusercontent.com/u/3275172?v=3","gravatar_id":"","url":"https://api.github.com/users/malukenho","html_url":"https://github.com/malukenho","followers_url":"https://api.github.com/users/malukenho/followers","following_url":"https://api.github.com/users/malukenho/following{/other_user}","gists_url":"https://api.github.com/users/malukenho/gists{/gist_id}","starred_url":"https://api.github.com/users/malukenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malukenho/subscriptions","organizations_url":"https://api.github.com/users/malukenho/orgs","repos_url":"https://api.github.com/users/malukenho/repos","events_url":"https://api.github.com/users/malukenho/events{/privacy}","received_events_url":"https://api.github.com/users/malukenho/received_events","type":"User","site_admin":false},"body":"We create a simple basic structure to organize the application, and simple tests to start with development of phrases application.\r\n\r\n**Only merge after #9  is merged**\r\nJust linking #11 ","created_at":"2014-11-06T01:24:53Z","updated_at":"2014-11-16T22:33:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b32f357af273e1a467883ed168a3a99b493d6f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/malukenho/phrases/pulls/17/commits","review_comments_url":"https://api.github.com/repos/malukenho/phrases/pulls/17/comments","review_comment_url":"https://api.github.com/repos/malukenho/phrases/pulls/comments/{number}","comments_url":"https://api.github.com/repos/malukenho/phrases/issues/17/comments","statuses_url":"https://api.github.com/repos/malukenho/phrases/statuses/d4f3e233112e58045ff6212cab258c66ed03b081","head":{"label":"malukenho:basic-structure","ref":"basic-structure","sha":"d4f3e233112e58045ff6212cab258c66ed03b081","user":{"login":"malukenho","id":3275172,"avatar_url":"https://avatars.githubusercontent.com/u/3275172?v=3","gravatar_id":"","url":"https://api.github.com/users/malukenho","html_url":"https://github.com/malukenho","followers_url":"https://api.github.com/users/malukenho/followers","following_url":"https://api.github.com/users/malukenho/following{/other_user}","gists_url":"https://api.github.com/users/malukenho/gists{/gist_id}","starred_url":"https://api.github.com/users/malukenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malukenho/subscriptions","organizations_url":"https://api.github.com/users/malukenho/orgs","repos_url":"https://api.github.com/users/malukenho/repos","events_url":"https://api.github.com/users/malukenho/events{/privacy}","received_events_url":"https://api.github.com/users/malukenho/received_events","type":"User","site_admin":false},"repo":{"id":12573723,"name":"phrases","full_name":"malukenho/phrases","owner":{"login":"malukenho","id":3275172,"avatar_url":"https://avatars.githubusercontent.com/u/3275172?v=3","gravatar_id":"","url":"https://api.github.com/users/malukenho","html_url":"https://github.com/malukenho","followers_url":"https://api.github.com/users/malukenho/followers","following_url":"https://api.github.com/users/malukenho/following{/other_user}","gists_url":"https://api.github.com/users/malukenho/gists{/gist_id}","starred_url":"https://api.github.com/users/malukenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malukenho/subscriptions","organizations_url":"https://api.github.com/users/malukenho/orgs","repos_url":"https://api.github.com/users/malukenho/repos","events_url":"https://api.github.com/users/malukenho/events{/privacy}","received_events_url":"https://api.github.com/users/malukenho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malukenho/phrases","description":"","fork":false,"url":"https://api.github.com/repos/malukenho/phrases","forks_url":"https://api.github.com/repos/malukenho/phrases/forks","keys_url":"https://api.github.com/repos/malukenho/phrases/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malukenho/phrases/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malukenho/phrases/teams","hooks_url":"https://api.github.com/repos/malukenho/phrases/hooks","issue_events_url":"https://api.github.com/repos/malukenho/phrases/issues/events{/number}","events_url":"https://api.github.com/repos/malukenho/phrases/events","assignees_url":"https://api.github.com/repos/malukenho/phrases/assignees{/user}","branches_url":"https://api.github.com/repos/malukenho/phrases/branches{/branch}","tags_url":"https://api.github.com/repos/malukenho/phrases/tags","blobs_url":"https://api.github.com/repos/malukenho/phrases/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malukenho/phrases/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malukenho/phrases/git/refs{/sha}","trees_url":"https://api.github.com/repos/malukenho/phrases/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malukenho/phrases/statuses/{sha}","languages_url":"https://api.github.com/repos/malukenho/phrases/languages","stargazers_url":"https://api.github.com/repos/malukenho/phrases/stargazers","contributors_url":"https://api.github.com/repos/malukenho/phrases/contributors","subscribers_url":"https://api.github.com/repos/malukenho/phrases/subscribers","subscription_url":"https://api.github.com/repos/malukenho/phrases/subscription","commits_url":"https://api.github.com/repos/malukenho/phrases/commits{/sha}","git_commits_url":"https://api.github.com/repos/malukenho/phrases/git/commits{/sha}","comments_url":"https://api.github.com/repos/malukenho/phrases/comments{/number}","issue_comment_url":"https://api.github.com/repos/malukenho/phrases/issues/comments/{number}","contents_url":"https://api.github.com/repos/malukenho/phrases/contents/{+path}","compare_url":"https://api.github.com/repos/malukenho/phrases/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malukenho/phrases/merges","archive_url":"https://api.github.com/repos/malukenho/phrases/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malukenho/phrases/downloads","issues_url":"https://api.github.com/repos/malukenho/phrases/issues{/number}","pulls_url":"https://api.github.com/repos/malukenho/phrases/pulls{/number}","milestones_url":"https://api.github.com/repos/malukenho/phrases/milestones{/number}","notifications_url":"https://api.github.com/repos/malukenho/phrases/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malukenho/phrases/labels{/name}","releases_url":"https://api.github.com/repos/malukenho/phrases/releases{/id}","created_at":"2013-09-03T20:10:49Z","updated_at":"2014-07-26T20:13:04Z","pushed_at":"2014-11-10T10:00:25Z","git_url":"git://github.com/malukenho/phrases.git","ssh_url":"git@github.com:malukenho/phrases.git","clone_url":"https://github.com/malukenho/phrases.git","svn_url":"https://github.com/malukenho/phrases","homepage":null,"size":468,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"malukenho:master","ref":"master","sha":"8cc555999cc3beea045e41825d1ed48e1cbfaa11","user":{"login":"malukenho","id":3275172,"avatar_url":"https://avatars.githubusercontent.com/u/3275172?v=3","gravatar_id":"","url":"https://api.github.com/users/malukenho","html_url":"https://github.com/malukenho","followers_url":"https://api.github.com/users/malukenho/followers","following_url":"https://api.github.com/users/malukenho/following{/other_user}","gists_url":"https://api.github.com/users/malukenho/gists{/gist_id}","starred_url":"https://api.github.com/users/malukenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malukenho/subscriptions","organizations_url":"https://api.github.com/users/malukenho/orgs","repos_url":"https://api.github.com/users/malukenho/repos","events_url":"https://api.github.com/users/malukenho/events{/privacy}","received_events_url":"https://api.github.com/users/malukenho/received_events","type":"User","site_admin":false},"repo":{"id":12573723,"name":"phrases","full_name":"malukenho/phrases","owner":{"login":"malukenho","id":3275172,"avatar_url":"https://avatars.githubusercontent.com/u/3275172?v=3","gravatar_id":"","url":"https://api.github.com/users/malukenho","html_url":"https://github.com/malukenho","followers_url":"https://api.github.com/users/malukenho/followers","following_url":"https://api.github.com/users/malukenho/following{/other_user}","gists_url":"https://api.github.com/users/malukenho/gists{/gist_id}","starred_url":"https://api.github.com/users/malukenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malukenho/subscriptions","organizations_url":"https://api.github.com/users/malukenho/orgs","repos_url":"https://api.github.com/users/malukenho/repos","events_url":"https://api.github.com/users/malukenho/events{/privacy}","received_events_url":"https://api.github.com/users/malukenho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malukenho/phrases","description":"","fork":false,"url":"https://api.github.com/repos/malukenho/phrases","forks_url":"https://api.github.com/repos/malukenho/phrases/forks","keys_url":"https://api.github.com/repos/malukenho/phrases/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malukenho/phrases/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malukenho/phrases/teams","hooks_url":"https://api.github.com/repos/malukenho/phrases/hooks","issue_events_url":"https://api.github.com/repos/malukenho/phrases/issues/events{/number}","events_url":"https://api.github.com/repos/malukenho/phrases/events","assignees_url":"https://api.github.com/repos/malukenho/phrases/assignees{/user}","branches_url":"https://api.github.com/repos/malukenho/phrases/branches{/branch}","tags_url":"https://api.github.com/repos/malukenho/phrases/tags","blobs_url":"https://api.github.com/repos/malukenho/phrases/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malukenho/phrases/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malukenho/phrases/git/refs{/sha}","trees_url":"https://api.github.com/repos/malukenho/phrases/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malukenho/phrases/statuses/{sha}","languages_url":"https://api.github.com/repos/malukenho/phrases/languages","stargazers_url":"https://api.github.com/repos/malukenho/phrases/stargazers","contributors_url":"https://api.github.com/repos/malukenho/phrases/contributors","subscribers_url":"https://api.github.com/repos/malukenho/phrases/subscribers","subscription_url":"https://api.github.com/repos/malukenho/phrases/subscription","commits_url":"https://api.github.com/repos/malukenho/phrases/commits{/sha}","git_commits_url":"https://api.github.com/repos/malukenho/phrases/git/commits{/sha}","comments_url":"https://api.github.com/repos/malukenho/phrases/comments{/number}","issue_comment_url":"https://api.github.com/repos/malukenho/phrases/issues/comments/{number}","contents_url":"https://api.github.com/repos/malukenho/phrases/contents/{+path}","compare_url":"https://api.github.com/repos/malukenho/phrases/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malukenho/phrases/merges","archive_url":"https://api.github.com/repos/malukenho/phrases/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malukenho/phrases/downloads","issues_url":"https://api.github.com/repos/malukenho/phrases/issues{/number}","pulls_url":"https://api.github.com/repos/malukenho/phrases/pulls{/number}","milestones_url":"https://api.github.com/repos/malukenho/phrases/milestones{/number}","notifications_url":"https://api.github.com/repos/malukenho/phrases/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malukenho/phrases/labels{/name}","releases_url":"https://api.github.com/repos/malukenho/phrases/releases{/id}","created_at":"2013-09-03T20:10:49Z","updated_at":"2014-07-26T20:13:04Z","pushed_at":"2014-11-10T10:00:25Z","git_url":"git://github.com/malukenho/phrases.git","ssh_url":"git@github.com:malukenho/phrases.git","clone_url":"https://github.com/malukenho/phrases.git","svn_url":"https://github.com/malukenho/phrases","homepage":null,"size":468,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/malukenho/phrases/pulls/17"},"html":{"href":"https://github.com/malukenho/phrases/pull/17"},"issue":{"href":"https://api.github.com/repos/malukenho/phrases/issues/17"},"comments":{"href":"https://api.github.com/repos/malukenho/phrases/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/malukenho/phrases/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/malukenho/phrases/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/malukenho/phrases/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/malukenho/phrases/statuses/d4f3e233112e58045ff6212cab258c66ed03b081"}}}}