GitHub PullRequestReviewCommentEvent at 2014-12-08 22:43:10
Repository: slova
Actor: vadimromanenko
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/vadimromanenko/slova/pulls/comments/21492938","id":21492938,"diff_hunk":"@@ -0,0 +1,23 @@\n+<?php\n+\n+namespace Slova\\Core;\n+\n+\n+class RequestTest extends \\PHPUnit_Framework_TestCase {\n+\n+    public function tearDown() {\n+        unset($_SERVER['REQUEST_METHOD']);\n+    }\n+\n+    public function testGetMethod() {\n+        $request = new Request();\n+        $origRequestMethod = null;\n+        if (isset($_SERVER['REQUEST_METHOD'])) {\n+            unset($_SERVER['REQUEST_METHOD']);\n+        }","path":"phpunit/Slova/Core/RequestTest.php","position":17,"original_position":17,"commit_id":"8c2d5737d126c5f9558d614cda3936e5b7d28cc1","original_commit_id":"8c2d5737d126c5f9558d614cda3936e5b7d28cc1","user":{"login":"vadimromanenko","id":1901945,"avatar_url":"https://avatars.githubusercontent.com/u/1901945?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimromanenko","html_url":"https://github.com/vadimromanenko","followers_url":"https://api.github.com/users/vadimromanenko/followers","following_url":"https://api.github.com/users/vadimromanenko/following{/other_user}","gists_url":"https://api.github.com/users/vadimromanenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimromanenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimromanenko/subscriptions","organizations_url":"https://api.github.com/users/vadimromanenko/orgs","repos_url":"https://api.github.com/users/vadimromanenko/repos","events_url":"https://api.github.com/users/vadimromanenko/events{/privacy}","received_events_url":"https://api.github.com/users/vadimromanenko/received_events","type":"User","site_admin":false},"body":"* Just go ahead and unset `$_SERVER['REQUEST_METHOD']` without checkin if it's already set.\r\n* Looks like `$origRequestMethod` is not needed.","created_at":"2014-12-08T22:43:10Z","updated_at":"2014-12-08T22:43:10Z","html_url":"https://github.com/vadimromanenko/slova/pull/4#discussion_r21492938","pull_request_url":"https://api.github.com/repos/vadimromanenko/slova/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/vadimromanenko/slova/pulls/comments/21492938"},"html":{"href":"https://github.com/vadimromanenko/slova/pull/4#discussion_r21492938"},"pull_request":{"href":"https://api.github.com/repos/vadimromanenko/slova/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/vadimromanenko/slova/pulls/4","id":24258001,"html_url":"https://github.com/vadimromanenko/slova/pull/4","diff_url":"https://github.com/vadimromanenko/slova/pull/4.diff","patch_url":"https://github.com/vadimromanenko/slova/pull/4.patch","issue_url":"https://api.github.com/repos/vadimromanenko/slova/issues/4","number":4,"state":"open","locked":false,"title":"Add ability to set routes for different request methods","user":{"login":"alexkalach","id":9663845,"avatar_url":"https://avatars.githubusercontent.com/u/9663845?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkalach","html_url":"https://github.com/alexkalach","followers_url":"https://api.github.com/users/alexkalach/followers","following_url":"https://api.github.com/users/alexkalach/following{/other_user}","gists_url":"https://api.github.com/users/alexkalach/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkalach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkalach/subscriptions","organizations_url":"https://api.github.com/users/alexkalach/orgs","repos_url":"https://api.github.com/users/alexkalach/repos","events_url":"https://api.github.com/users/alexkalach/events{/privacy}","received_events_url":"https://api.github.com/users/alexkalach/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-11T23:11:40Z","updated_at":"2014-12-08T22:43:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f63522c105bd53ec3fe08bf6d9bed2a6023e911","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vadimromanenko/slova/pulls/4/commits","review_comments_url":"https://api.github.com/repos/vadimromanenko/slova/pulls/4/comments","review_comment_url":"https://api.github.com/repos/vadimromanenko/slova/pulls/comments/{number}","comments_url":"https://api.github.com/repos/vadimromanenko/slova/issues/4/comments","statuses_url":"https://api.github.com/repos/vadimromanenko/slova/statuses/8c2d5737d126c5f9558d614cda3936e5b7d28cc1","head":{"label":"alexkalach:dev/request_method","ref":"dev/request_method","sha":"8c2d5737d126c5f9558d614cda3936e5b7d28cc1","user":{"login":"alexkalach","id":9663845,"avatar_url":"https://avatars.githubusercontent.com/u/9663845?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkalach","html_url":"https://github.com/alexkalach","followers_url":"https://api.github.com/users/alexkalach/followers","following_url":"https://api.github.com/users/alexkalach/following{/other_user}","gists_url":"https://api.github.com/users/alexkalach/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkalach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkalach/subscriptions","organizations_url":"https://api.github.com/users/alexkalach/orgs","repos_url":"https://api.github.com/users/alexkalach/repos","events_url":"https://api.github.com/users/alexkalach/events{/privacy}","received_events_url":"https://api.github.com/users/alexkalach/received_events","type":"User","site_admin":false},"repo":{"id":26508024,"name":"slova","full_name":"alexkalach/slova","owner":{"login":"alexkalach","id":9663845,"avatar_url":"https://avatars.githubusercontent.com/u/9663845?v=3","gravatar_id":"","url":"https://api.github.com/users/alexkalach","html_url":"https://github.com/alexkalach","followers_url":"https://api.github.com/users/alexkalach/followers","following_url":"https://api.github.com/users/alexkalach/following{/other_user}","gists_url":"https://api.github.com/users/alexkalach/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkalach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkalach/subscriptions","organizations_url":"https://api.github.com/users/alexkalach/orgs","repos_url":"https://api.github.com/users/alexkalach/repos","events_url":"https://api.github.com/users/alexkalach/events{/privacy}","received_events_url":"https://api.github.com/users/alexkalach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexkalach/slova","description":"","fork":true,"url":"https://api.github.com/repos/alexkalach/slova","forks_url":"https://api.github.com/repos/alexkalach/slova/forks","keys_url":"https://api.github.com/repos/alexkalach/slova/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexkalach/slova/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexkalach/slova/teams","hooks_url":"https://api.github.com/repos/alexkalach/slova/hooks","issue_events_url":"https://api.github.com/repos/alexkalach/slova/issues/events{/number}","events_url":"https://api.github.com/repos/alexkalach/slova/events","assignees_url":"https://api.github.com/repos/alexkalach/slova/assignees{/user}","branches_url":"https://api.github.com/repos/alexkalach/slova/branches{/branch}","tags_url":"https://api.github.com/repos/alexkalach/slova/tags","blobs_url":"https://api.github.com/repos/alexkalach/slova/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexkalach/slova/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexkalach/slova/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexkalach/slova/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexkalach/slova/statuses/{sha}","languages_url":"https://api.github.com/repos/alexkalach/slova/languages","stargazers_url":"https://api.github.com/repos/alexkalach/slova/stargazers","contributors_url":"https://api.github.com/repos/alexkalach/slova/contributors","subscribers_url":"https://api.github.com/repos/alexkalach/slova/subscribers","subscription_url":"https://api.github.com/repos/alexkalach/slova/subscription","commits_url":"https://api.github.com/repos/alexkalach/slova/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexkalach/slova/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexkalach/slova/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexkalach/slova/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexkalach/slova/contents/{+path}","compare_url":"https://api.github.com/repos/alexkalach/slova/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexkalach/slova/merges","archive_url":"https://api.github.com/repos/alexkalach/slova/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexkalach/slova/downloads","issues_url":"https://api.github.com/repos/alexkalach/slova/issues{/number}","pulls_url":"https://api.github.com/repos/alexkalach/slova/pulls{/number}","milestones_url":"https://api.github.com/repos/alexkalach/slova/milestones{/number}","notifications_url":"https://api.github.com/repos/alexkalach/slova/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexkalach/slova/labels{/name}","releases_url":"https://api.github.com/repos/alexkalach/slova/releases{/id}","created_at":"2014-11-11T22:33:54Z","updated_at":"2014-07-02T23:03:09Z","pushed_at":"2014-12-08T21:29:56Z","git_url":"git://github.com/alexkalach/slova.git","ssh_url":"git@github.com:alexkalach/slova.git","clone_url":"https://github.com/alexkalach/slova.git","svn_url":"https://github.com/alexkalach/slova","homepage":null,"size":153,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vadimromanenko:master","ref":"master","sha":"ba584e9a6dc4ab46bcb27f93c5972669d48a24e5","user":{"login":"vadimromanenko","id":1901945,"avatar_url":"https://avatars.githubusercontent.com/u/1901945?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimromanenko","html_url":"https://github.com/vadimromanenko","followers_url":"https://api.github.com/users/vadimromanenko/followers","following_url":"https://api.github.com/users/vadimromanenko/following{/other_user}","gists_url":"https://api.github.com/users/vadimromanenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimromanenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimromanenko/subscriptions","organizations_url":"https://api.github.com/users/vadimromanenko/orgs","repos_url":"https://api.github.com/users/vadimromanenko/repos","events_url":"https://api.github.com/users/vadimromanenko/events{/privacy}","received_events_url":"https://api.github.com/users/vadimromanenko/received_events","type":"User","site_admin":false},"repo":{"id":21443063,"name":"slova","full_name":"vadimromanenko/slova","owner":{"login":"vadimromanenko","id":1901945,"avatar_url":"https://avatars.githubusercontent.com/u/1901945?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimromanenko","html_url":"https://github.com/vadimromanenko","followers_url":"https://api.github.com/users/vadimromanenko/followers","following_url":"https://api.github.com/users/vadimromanenko/following{/other_user}","gists_url":"https://api.github.com/users/vadimromanenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimromanenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimromanenko/subscriptions","organizations_url":"https://api.github.com/users/vadimromanenko/orgs","repos_url":"https://api.github.com/users/vadimromanenko/repos","events_url":"https://api.github.com/users/vadimromanenko/events{/privacy}","received_events_url":"https://api.github.com/users/vadimromanenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vadimromanenko/slova","description":"","fork":false,"url":"https://api.github.com/repos/vadimromanenko/slova","forks_url":"https://api.github.com/repos/vadimromanenko/slova/forks","keys_url":"https://api.github.com/repos/vadimromanenko/slova/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vadimromanenko/slova/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vadimromanenko/slova/teams","hooks_url":"https://api.github.com/repos/vadimromanenko/slova/hooks","issue_events_url":"https://api.github.com/repos/vadimromanenko/slova/issues/events{/number}","events_url":"https://api.github.com/repos/vadimromanenko/slova/events","assignees_url":"https://api.github.com/repos/vadimromanenko/slova/assignees{/user}","branches_url":"https://api.github.com/repos/vadimromanenko/slova/branches{/branch}","tags_url":"https://api.github.com/repos/vadimromanenko/slova/tags","blobs_url":"https://api.github.com/repos/vadimromanenko/slova/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vadimromanenko/slova/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vadimromanenko/slova/git/refs{/sha}","trees_url":"https://api.github.com/repos/vadimromanenko/slova/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vadimromanenko/slova/statuses/{sha}","languages_url":"https://api.github.com/repos/vadimromanenko/slova/languages","stargazers_url":"https://api.github.com/repos/vadimromanenko/slova/stargazers","contributors_url":"https://api.github.com/repos/vadimromanenko/slova/contributors","subscribers_url":"https://api.github.com/repos/vadimromanenko/slova/subscribers","subscription_url":"https://api.github.com/repos/vadimromanenko/slova/subscription","commits_url":"https://api.github.com/repos/vadimromanenko/slova/commits{/sha}","git_commits_url":"https://api.github.com/repos/vadimromanenko/slova/git/commits{/sha}","comments_url":"https://api.github.com/repos/vadimromanenko/slova/comments{/number}","issue_comment_url":"https://api.github.com/repos/vadimromanenko/slova/issues/comments/{number}","contents_url":"https://api.github.com/repos/vadimromanenko/slova/contents/{+path}","compare_url":"https://api.github.com/repos/vadimromanenko/slova/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vadimromanenko/slova/merges","archive_url":"https://api.github.com/repos/vadimromanenko/slova/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vadimromanenko/slova/downloads","issues_url":"https://api.github.com/repos/vadimromanenko/slova/issues{/number}","pulls_url":"https://api.github.com/repos/vadimromanenko/slova/pulls{/number}","milestones_url":"https://api.github.com/repos/vadimromanenko/slova/milestones{/number}","notifications_url":"https://api.github.com/repos/vadimromanenko/slova/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vadimromanenko/slova/labels{/name}","releases_url":"https://api.github.com/repos/vadimromanenko/slova/releases{/id}","created_at":"2014-07-02T23:00:25Z","updated_at":"2014-12-08T17:33:26Z","pushed_at":"2014-12-08T20:20:34Z","git_url":"git://github.com/vadimromanenko/slova.git","ssh_url":"git@github.com:vadimromanenko/slova.git","clone_url":"https://github.com/vadimromanenko/slova.git","svn_url":"https://github.com/vadimromanenko/slova","homepage":null,"size":275,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vadimromanenko/slova/pulls/4"},"html":{"href":"https://github.com/vadimromanenko/slova/pull/4"},"issue":{"href":"https://api.github.com/repos/vadimromanenko/slova/issues/4"},"comments":{"href":"https://api.github.com/repos/vadimromanenko/slova/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/vadimromanenko/slova/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/vadimromanenko/slova/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/vadimromanenko/slova/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/vadimromanenko/slova/statuses/8c2d5737d126c5f9558d614cda3936e5b7d28cc1"}}}}