{"action":"opened","number":123,"pull_request":{"url":"https://api.github.com/repos/teamed/quiz/pulls/123","id":46196591,"html_url":"https://github.com/teamed/quiz/pull/123","diff_url":"https://github.com/teamed/quiz/pull/123.diff","patch_url":"https://github.com/teamed/quiz/pull/123.patch","issue_url":"https://api.github.com/repos/teamed/quiz/issues/123","number":123,"state":"open","locked":false,"title":"Removed redundant code and added exception handling","user":{"login":"rams2588","id":14877574,"avatar_url":"https://avatars.githubusercontent.com/u/14877574?v=3","gravatar_id":"","url":"https://api.github.com/users/rams2588","html_url":"https://github.com/rams2588","followers_url":"https://api.github.com/users/rams2588/followers","following_url":"https://api.github.com/users/rams2588/following{/other_user}","gists_url":"https://api.github.com/users/rams2588/gists{/gist_id}","starred_url":"https://api.github.com/users/rams2588/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rams2588/subscriptions","organizations_url":"https://api.github.com/users/rams2588/orgs","repos_url":"https://api.github.com/users/rams2588/repos","events_url":"https://api.github.com/users/rams2588/events{/privacy}","received_events_url":"https://api.github.com/users/rams2588/received_events","type":"User","site_admin":false},"body":"Few more suggestions.\r\nVariable names are not defined meaning fully. \r\nNull check is not done for the file object before reading or writing the content.\r\nException should be logged first before throwing it.","created_at":"2015-09-28T19:20:04Z","updated_at":"2015-09-28T19:20:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3460b690bcbf09202aeff90104ab752d899f5279","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/teamed/quiz/pulls/123/commits","review_comments_url":"https://api.github.com/repos/teamed/quiz/pulls/123/comments","review_comment_url":"https://api.github.com/repos/teamed/quiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamed/quiz/issues/123/comments","statuses_url":"https://api.github.com/repos/teamed/quiz/statuses/827771ff31da22ca23b015d3efa328e363727bdb","head":{"label":"rams2588:master","ref":"master","sha":"827771ff31da22ca23b015d3efa328e363727bdb","user":{"login":"rams2588","id":14877574,"avatar_url":"https://avatars.githubusercontent.com/u/14877574?v=3","gravatar_id":"","url":"https://api.github.com/users/rams2588","html_url":"https://github.com/rams2588","followers_url":"https://api.github.com/users/rams2588/followers","following_url":"https://api.github.com/users/rams2588/following{/other_user}","gists_url":"https://api.github.com/users/rams2588/gists{/gist_id}","starred_url":"https://api.github.com/users/rams2588/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rams2588/subscriptions","organizations_url":"https://api.github.com/users/rams2588/orgs","repos_url":"https://api.github.com/users/rams2588/repos","events_url":"https://api.github.com/users/rams2588/events{/privacy}","received_events_url":"https://api.github.com/users/rams2588/received_events","type":"User","site_admin":false},"repo":{"id":43320848,"name":"quiz","full_name":"rams2588/quiz","owner":{"login":"rams2588","id":14877574,"avatar_url":"https://avatars.githubusercontent.com/u/14877574?v=3","gravatar_id":"","url":"https://api.github.com/users/rams2588","html_url":"https://github.com/rams2588","followers_url":"https://api.github.com/users/rams2588/followers","following_url":"https://api.github.com/users/rams2588/following{/other_user}","gists_url":"https://api.github.com/users/rams2588/gists{/gist_id}","starred_url":"https://api.github.com/users/rams2588/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rams2588/subscriptions","organizations_url":"https://api.github.com/users/rams2588/orgs","repos_url":"https://api.github.com/users/rams2588/repos","events_url":"https://api.github.com/users/rams2588/events{/privacy}","received_events_url":"https://api.github.com/users/rams2588/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rams2588/quiz","description":"Quiz","fork":true,"url":"https://api.github.com/repos/rams2588/quiz","forks_url":"https://api.github.com/repos/rams2588/quiz/forks","keys_url":"https://api.github.com/repos/rams2588/quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rams2588/quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rams2588/quiz/teams","hooks_url":"https://api.github.com/repos/rams2588/quiz/hooks","issue_events_url":"https://api.github.com/repos/rams2588/quiz/issues/events{/number}","events_url":"https://api.github.com/repos/rams2588/quiz/events","assignees_url":"https://api.github.com/repos/rams2588/quiz/assignees{/user}","branches_url":"https://api.github.com/repos/rams2588/quiz/branches{/branch}","tags_url":"https://api.github.com/repos/rams2588/quiz/tags","blobs_url":"https://api.github.com/repos/rams2588/quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rams2588/quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rams2588/quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/rams2588/quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rams2588/quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/rams2588/quiz/languages","stargazers_url":"https://api.github.com/repos/rams2588/quiz/stargazers","contributors_url":"https://api.github.com/repos/rams2588/quiz/contributors","subscribers_url":"https://api.github.com/repos/rams2588/quiz/subscribers","subscription_url":"https://api.github.com/repos/rams2588/quiz/subscription","commits_url":"https://api.github.com/repos/rams2588/quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/rams2588/quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/rams2588/quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/rams2588/quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/rams2588/quiz/contents/{+path}","compare_url":"https://api.github.com/repos/rams2588/quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rams2588/quiz/merges","archive_url":"https://api.github.com/repos/rams2588/quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rams2588/quiz/downloads","issues_url":"https://api.github.com/repos/rams2588/quiz/issues{/number}","pulls_url":"https://api.github.com/repos/rams2588/quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/rams2588/quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/rams2588/quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rams2588/quiz/labels{/name}","releases_url":"https://api.github.com/repos/rams2588/quiz/releases{/id}","created_at":"2015-09-28T19:04:59Z","updated_at":"2015-09-28T19:17:18Z","pushed_at":"2015-09-28T19:17:17Z","git_url":"git://github.com/rams2588/quiz.git","ssh_url":"git@github.com:rams2588/quiz.git","clone_url":"https://github.com/rams2588/quiz.git","svn_url":"https://github.com/rams2588/quiz","homepage":"http://www.teamed.io","size":1146,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"teamed:master","ref":"master","sha":"611462ec25a8ab9ff8b0b50c6cf528d6ed87be21","user":{"login":"teamed","id":7436563,"avatar_url":"https://avatars.githubusercontent.com/u/7436563?v=3","gravatar_id":"","url":"https://api.github.com/users/teamed","html_url":"https://github.com/teamed","followers_url":"https://api.github.com/users/teamed/followers","following_url":"https://api.github.com/users/teamed/following{/other_user}","gists_url":"https://api.github.com/users/teamed/gists{/gist_id}","starred_url":"https://api.github.com/users/teamed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamed/subscriptions","organizations_url":"https://api.github.com/users/teamed/orgs","repos_url":"https://api.github.com/users/teamed/repos","events_url":"https://api.github.com/users/teamed/events{/privacy}","received_events_url":"https://api.github.com/users/teamed/received_events","type":"Organization","site_admin":false},"repo":{"id":30189312,"name":"quiz","full_name":"teamed/quiz","owner":{"login":"teamed","id":7436563,"avatar_url":"https://avatars.githubusercontent.com/u/7436563?v=3","gravatar_id":"","url":"https://api.github.com/users/teamed","html_url":"https://github.com/teamed","followers_url":"https://api.github.com/users/teamed/followers","following_url":"https://api.github.com/users/teamed/following{/other_user}","gists_url":"https://api.github.com/users/teamed/gists{/gist_id}","starred_url":"https://api.github.com/users/teamed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamed/subscriptions","organizations_url":"https://api.github.com/users/teamed/orgs","repos_url":"https://api.github.com/users/teamed/repos","events_url":"https://api.github.com/users/teamed/events{/privacy}","received_events_url":"https://api.github.com/users/teamed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamed/quiz","description":"Quiz","fork":false,"url":"https://api.github.com/repos/teamed/quiz","forks_url":"https://api.github.com/repos/teamed/quiz/forks","keys_url":"https://api.github.com/repos/teamed/quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamed/quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamed/quiz/teams","hooks_url":"https://api.github.com/repos/teamed/quiz/hooks","issue_events_url":"https://api.github.com/repos/teamed/quiz/issues/events{/number}","events_url":"https://api.github.com/repos/teamed/quiz/events","assignees_url":"https://api.github.com/repos/teamed/quiz/assignees{/user}","branches_url":"https://api.github.com/repos/teamed/quiz/branches{/branch}","tags_url":"https://api.github.com/repos/teamed/quiz/tags","blobs_url":"https://api.github.com/repos/teamed/quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamed/quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamed/quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamed/quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamed/quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/teamed/quiz/languages","stargazers_url":"https://api.github.com/repos/teamed/quiz/stargazers","contributors_url":"https://api.github.com/repos/teamed/quiz/contributors","subscribers_url":"https://api.github.com/repos/teamed/quiz/subscribers","subscription_url":"https://api.github.com/repos/teamed/quiz/subscription","commits_url":"https://api.github.com/repos/teamed/quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamed/quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamed/quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamed/quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamed/quiz/contents/{+path}","compare_url":"https://api.github.com/repos/teamed/quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamed/quiz/merges","archive_url":"https://api.github.com/repos/teamed/quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamed/quiz/downloads","issues_url":"https://api.github.com/repos/teamed/quiz/issues{/number}","pulls_url":"https://api.github.com/repos/teamed/quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/teamed/quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/teamed/quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamed/quiz/labels{/name}","releases_url":"https://api.github.com/repos/teamed/quiz/releases{/id}","created_at":"2015-02-02T13:55:45Z","updated_at":"2015-09-22T18:30:58Z","pushed_at":"2015-09-28T19:20:04Z","git_url":"git://github.com/teamed/quiz.git","ssh_url":"git@github.com:teamed/quiz.git","clone_url":"https://github.com/teamed/quiz.git","svn_url":"https://github.com/teamed/quiz","homepage":"http://www.teamed.io","size":1146,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":119,"mirror_url":null,"open_issues_count":39,"forks":119,"open_issues":39,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamed/quiz/pulls/123"},"html":{"href":"https://github.com/teamed/quiz/pull/123"},"issue":{"href":"https://api.github.com/repos/teamed/quiz/issues/123"},"comments":{"href":"https://api.github.com/repos/teamed/quiz/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/teamed/quiz/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/teamed/quiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamed/quiz/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/teamed/quiz/statuses/827771ff31da22ca23b015d3efa328e363727bdb"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":77,"deletions":21,"changed_files":1}}