{"action":"created","comment":{"url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/comments/39598449","id":39598449,"diff_hunk":"@@ -0,0 +1,16 @@\n+<?php\n+\n+namespace emailApp;\n+\n+class Email {\n+\tfunction validateEmail($email) {","path":"app/Email.php","position":6,"original_position":6,"commit_id":"2fae35ace8a539eb0ab074a8c27aa60515387942","original_commit_id":"2fae35ace8a539eb0ab074a8c27aa60515387942","user":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"body":"function name should be plain verb. You should use verb+noun if you are performing activity on something other than its class.  Repeating class name in function name is not good. You can simply name function `validate`","created_at":"2015-09-16T06:53:58Z","updated_at":"2015-09-16T06:53:58Z","html_url":"https://github.com/ganeshjaiwal93/Email/pull/1#discussion_r39598449","pull_request_url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/comments/39598449"},"html":{"href":"https://github.com/ganeshjaiwal93/Email/pull/1#discussion_r39598449"},"pull_request":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1","id":45136718,"html_url":"https://github.com/ganeshjaiwal93/Email/pull/1","diff_url":"https://github.com/ganeshjaiwal93/Email/pull/1.diff","patch_url":"https://github.com/ganeshjaiwal93/Email/pull/1.patch","issue_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/1","number":1,"state":"open","locked":false,"title":"Review branch","user":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-16T06:48:18Z","updated_at":"2015-09-16T06:53:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d36a6a8798218cb0087638454f6dde028804ccf6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/1/comments","statuses_url":"https://api.github.com/repos/ganeshjaiwal93/Email/statuses/2fae35ace8a539eb0ab074a8c27aa60515387942","head":{"label":"ganeshjaiwal93:reviewBranch","ref":"reviewBranch","sha":"2fae35ace8a539eb0ab074a8c27aa60515387942","user":{"login":"ganeshjaiwal93","id":13848279,"avatar_url":"https://avatars.githubusercontent.com/u/13848279?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshjaiwal93","html_url":"https://github.com/ganeshjaiwal93","followers_url":"https://api.github.com/users/ganeshjaiwal93/followers","following_url":"https://api.github.com/users/ganeshjaiwal93/following{/other_user}","gists_url":"https://api.github.com/users/ganeshjaiwal93/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshjaiwal93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshjaiwal93/subscriptions","organizations_url":"https://api.github.com/users/ganeshjaiwal93/orgs","repos_url":"https://api.github.com/users/ganeshjaiwal93/repos","events_url":"https://api.github.com/users/ganeshjaiwal93/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshjaiwal93/received_events","type":"User","site_admin":false},"repo":{"id":42513854,"name":"Email","full_name":"ganeshjaiwal93/Email","owner":{"login":"ganeshjaiwal93","id":13848279,"avatar_url":"https://avatars.githubusercontent.com/u/13848279?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshjaiwal93","html_url":"https://github.com/ganeshjaiwal93","followers_url":"https://api.github.com/users/ganeshjaiwal93/followers","following_url":"https://api.github.com/users/ganeshjaiwal93/following{/other_user}","gists_url":"https://api.github.com/users/ganeshjaiwal93/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshjaiwal93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshjaiwal93/subscriptions","organizations_url":"https://api.github.com/users/ganeshjaiwal93/orgs","repos_url":"https://api.github.com/users/ganeshjaiwal93/repos","events_url":"https://api.github.com/users/ganeshjaiwal93/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshjaiwal93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ganeshjaiwal93/Email","description":"","fork":false,"url":"https://api.github.com/repos/ganeshjaiwal93/Email","forks_url":"https://api.github.com/repos/ganeshjaiwal93/Email/forks","keys_url":"https://api.github.com/repos/ganeshjaiwal93/Email/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ganeshjaiwal93/Email/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ganeshjaiwal93/Email/teams","hooks_url":"https://api.github.com/repos/ganeshjaiwal93/Email/hooks","issue_events_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/events{/number}","events_url":"https://api.github.com/repos/ganeshjaiwal93/Email/events","assignees_url":"https://api.github.com/repos/ganeshjaiwal93/Email/assignees{/user}","branches_url":"https://api.github.com/repos/ganeshjaiwal93/Email/branches{/branch}","tags_url":"https://api.github.com/repos/ganeshjaiwal93/Email/tags","blobs_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/refs{/sha}","trees_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ganeshjaiwal93/Email/statuses/{sha}","languages_url":"https://api.github.com/repos/ganeshjaiwal93/Email/languages","stargazers_url":"https://api.github.com/repos/ganeshjaiwal93/Email/stargazers","contributors_url":"https://api.github.com/repos/ganeshjaiwal93/Email/contributors","subscribers_url":"https://api.github.com/repos/ganeshjaiwal93/Email/subscribers","subscription_url":"https://api.github.com/repos/ganeshjaiwal93/Email/subscription","commits_url":"https://api.github.com/repos/ganeshjaiwal93/Email/commits{/sha}","git_commits_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/commits{/sha}","comments_url":"https://api.github.com/repos/ganeshjaiwal93/Email/comments{/number}","issue_comment_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/comments{/number}","contents_url":"https://api.github.com/repos/ganeshjaiwal93/Email/contents/{+path}","compare_url":"https://api.github.com/repos/ganeshjaiwal93/Email/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ganeshjaiwal93/Email/merges","archive_url":"https://api.github.com/repos/ganeshjaiwal93/Email/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ganeshjaiwal93/Email/downloads","issues_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues{/number}","pulls_url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls{/number}","milestones_url":"https://api.github.com/repos/ganeshjaiwal93/Email/milestones{/number}","notifications_url":"https://api.github.com/repos/ganeshjaiwal93/Email/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ganeshjaiwal93/Email/labels{/name}","releases_url":"https://api.github.com/repos/ganeshjaiwal93/Email/releases{/id}","created_at":"2015-09-15T11:08:52Z","updated_at":"2015-09-15T11:35:41Z","pushed_at":"2015-09-16T06:48:18Z","git_url":"git://github.com/ganeshjaiwal93/Email.git","ssh_url":"git@github.com:ganeshjaiwal93/Email.git","clone_url":"https://github.com/ganeshjaiwal93/Email.git","svn_url":"https://github.com/ganeshjaiwal93/Email","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ganeshjaiwal93:master","ref":"master","sha":"945d1b24486ca976f33f84bb2a0a7c3cf0330102","user":{"login":"ganeshjaiwal93","id":13848279,"avatar_url":"https://avatars.githubusercontent.com/u/13848279?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshjaiwal93","html_url":"https://github.com/ganeshjaiwal93","followers_url":"https://api.github.com/users/ganeshjaiwal93/followers","following_url":"https://api.github.com/users/ganeshjaiwal93/following{/other_user}","gists_url":"https://api.github.com/users/ganeshjaiwal93/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshjaiwal93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshjaiwal93/subscriptions","organizations_url":"https://api.github.com/users/ganeshjaiwal93/orgs","repos_url":"https://api.github.com/users/ganeshjaiwal93/repos","events_url":"https://api.github.com/users/ganeshjaiwal93/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshjaiwal93/received_events","type":"User","site_admin":false},"repo":{"id":42513854,"name":"Email","full_name":"ganeshjaiwal93/Email","owner":{"login":"ganeshjaiwal93","id":13848279,"avatar_url":"https://avatars.githubusercontent.com/u/13848279?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshjaiwal93","html_url":"https://github.com/ganeshjaiwal93","followers_url":"https://api.github.com/users/ganeshjaiwal93/followers","following_url":"https://api.github.com/users/ganeshjaiwal93/following{/other_user}","gists_url":"https://api.github.com/users/ganeshjaiwal93/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshjaiwal93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshjaiwal93/subscriptions","organizations_url":"https://api.github.com/users/ganeshjaiwal93/orgs","repos_url":"https://api.github.com/users/ganeshjaiwal93/repos","events_url":"https://api.github.com/users/ganeshjaiwal93/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshjaiwal93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ganeshjaiwal93/Email","description":"","fork":false,"url":"https://api.github.com/repos/ganeshjaiwal93/Email","forks_url":"https://api.github.com/repos/ganeshjaiwal93/Email/forks","keys_url":"https://api.github.com/repos/ganeshjaiwal93/Email/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ganeshjaiwal93/Email/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ganeshjaiwal93/Email/teams","hooks_url":"https://api.github.com/repos/ganeshjaiwal93/Email/hooks","issue_events_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/events{/number}","events_url":"https://api.github.com/repos/ganeshjaiwal93/Email/events","assignees_url":"https://api.github.com/repos/ganeshjaiwal93/Email/assignees{/user}","branches_url":"https://api.github.com/repos/ganeshjaiwal93/Email/branches{/branch}","tags_url":"https://api.github.com/repos/ganeshjaiwal93/Email/tags","blobs_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/refs{/sha}","trees_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ganeshjaiwal93/Email/statuses/{sha}","languages_url":"https://api.github.com/repos/ganeshjaiwal93/Email/languages","stargazers_url":"https://api.github.com/repos/ganeshjaiwal93/Email/stargazers","contributors_url":"https://api.github.com/repos/ganeshjaiwal93/Email/contributors","subscribers_url":"https://api.github.com/repos/ganeshjaiwal93/Email/subscribers","subscription_url":"https://api.github.com/repos/ganeshjaiwal93/Email/subscription","commits_url":"https://api.github.com/repos/ganeshjaiwal93/Email/commits{/sha}","git_commits_url":"https://api.github.com/repos/ganeshjaiwal93/Email/git/commits{/sha}","comments_url":"https://api.github.com/repos/ganeshjaiwal93/Email/comments{/number}","issue_comment_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/comments{/number}","contents_url":"https://api.github.com/repos/ganeshjaiwal93/Email/contents/{+path}","compare_url":"https://api.github.com/repos/ganeshjaiwal93/Email/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ganeshjaiwal93/Email/merges","archive_url":"https://api.github.com/repos/ganeshjaiwal93/Email/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ganeshjaiwal93/Email/downloads","issues_url":"https://api.github.com/repos/ganeshjaiwal93/Email/issues{/number}","pulls_url":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls{/number}","milestones_url":"https://api.github.com/repos/ganeshjaiwal93/Email/milestones{/number}","notifications_url":"https://api.github.com/repos/ganeshjaiwal93/Email/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ganeshjaiwal93/Email/labels{/name}","releases_url":"https://api.github.com/repos/ganeshjaiwal93/Email/releases{/id}","created_at":"2015-09-15T11:08:52Z","updated_at":"2015-09-15T11:35:41Z","pushed_at":"2015-09-16T06:48:18Z","git_url":"git://github.com/ganeshjaiwal93/Email.git","ssh_url":"git@github.com:ganeshjaiwal93/Email.git","clone_url":"https://github.com/ganeshjaiwal93/Email.git","svn_url":"https://github.com/ganeshjaiwal93/Email","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1"},"html":{"href":"https://github.com/ganeshjaiwal93/Email/pull/1"},"issue":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/1"},"comments":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ganeshjaiwal93/Email/statuses/2fae35ace8a539eb0ab074a8c27aa60515387942"}}}}