{"action":"created","comment":{"url":"https://api.github.com/repos/weew/php-validator/pulls/comments/42938963","id":42938963,"diff_hunk":"@@ -0,0 +1,37 @@\n+<?php\n+\n+\n+namespace Weew\\Validator\\Constraints;\n+\n+\n+use Weew\\Validator\\IConstraint;\n+\n+/**\n+ * Checks if the value is a valid URL\n+ */\n+class UrlConstraint implements IConstraint {\n+","path":"src/Weew/Validator/Constraints/UrlConstraint.php","position":13,"original_position":13,"commit_id":"f1a10bcf21bd18de0a2946c8e276e12914c6e0b6","original_commit_id":"f1a10bcf21bd18de0a2946c8e276e12914c6e0b6","user":{"login":"maximkott","id":2686062,"avatar_url":"https://avatars.githubusercontent.com/u/2686062?v=3","gravatar_id":"","url":"https://api.github.com/users/maximkott","html_url":"https://github.com/maximkott","followers_url":"https://api.github.com/users/maximkott/followers","following_url":"https://api.github.com/users/maximkott/following{/other_user}","gists_url":"https://api.github.com/users/maximkott/gists{/gist_id}","starred_url":"https://api.github.com/users/maximkott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximkott/subscriptions","organizations_url":"https://api.github.com/users/maximkott/orgs","repos_url":"https://api.github.com/users/maximkott/repos","events_url":"https://api.github.com/users/maximkott/events{/privacy}","received_events_url":"https://api.github.com/users/maximkott/received_events","type":"User","site_admin":false},"body":"New line?","created_at":"2015-10-24T22:40:34Z","updated_at":"2015-10-24T22:40:34Z","html_url":"https://github.com/weew/php-validator/pull/2#discussion_r42938963","pull_request_url":"https://api.github.com/repos/weew/php-validator/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/weew/php-validator/pulls/comments/42938963"},"html":{"href":"https://github.com/weew/php-validator/pull/2#discussion_r42938963"},"pull_request":{"href":"https://api.github.com/repos/weew/php-validator/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/weew/php-validator/pulls/2","id":48664397,"html_url":"https://github.com/weew/php-validator/pull/2","diff_url":"https://github.com/weew/php-validator/pull/2.diff","patch_url":"https://github.com/weew/php-validator/pull/2.patch","issue_url":"https://api.github.com/repos/weew/php-validator/issues/2","number":2,"state":"open","locked":false,"title":"Add Url Constraint","user":{"login":"rmatil","id":3106589,"avatar_url":"https://avatars.githubusercontent.com/u/3106589?v=3","gravatar_id":"","url":"https://api.github.com/users/rmatil","html_url":"https://github.com/rmatil","followers_url":"https://api.github.com/users/rmatil/followers","following_url":"https://api.github.com/users/rmatil/following{/other_user}","gists_url":"https://api.github.com/users/rmatil/gists{/gist_id}","starred_url":"https://api.github.com/users/rmatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmatil/subscriptions","organizations_url":"https://api.github.com/users/rmatil/orgs","repos_url":"https://api.github.com/users/rmatil/repos","events_url":"https://api.github.com/users/rmatil/events{/privacy}","received_events_url":"https://api.github.com/users/rmatil/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-24T20:23:31Z","updated_at":"2015-10-24T22:40:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb199c0caa8709af0a9780e08abfe7b3c59432a9","assignee":{"login":"maximkott","id":2686062,"avatar_url":"https://avatars.githubusercontent.com/u/2686062?v=3","gravatar_id":"","url":"https://api.github.com/users/maximkott","html_url":"https://github.com/maximkott","followers_url":"https://api.github.com/users/maximkott/followers","following_url":"https://api.github.com/users/maximkott/following{/other_user}","gists_url":"https://api.github.com/users/maximkott/gists{/gist_id}","starred_url":"https://api.github.com/users/maximkott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximkott/subscriptions","organizations_url":"https://api.github.com/users/maximkott/orgs","repos_url":"https://api.github.com/users/maximkott/repos","events_url":"https://api.github.com/users/maximkott/events{/privacy}","received_events_url":"https://api.github.com/users/maximkott/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/weew/php-validator/pulls/2/commits","review_comments_url":"https://api.github.com/repos/weew/php-validator/pulls/2/comments","review_comment_url":"https://api.github.com/repos/weew/php-validator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weew/php-validator/issues/2/comments","statuses_url":"https://api.github.com/repos/weew/php-validator/statuses/f1a10bcf21bd18de0a2946c8e276e12914c6e0b6","head":{"label":"weew:url-constraint","ref":"url-constraint","sha":"f1a10bcf21bd18de0a2946c8e276e12914c6e0b6","user":{"login":"weew","id":11678497,"avatar_url":"https://avatars.githubusercontent.com/u/11678497?v=3","gravatar_id":"","url":"https://api.github.com/users/weew","html_url":"https://github.com/weew","followers_url":"https://api.github.com/users/weew/followers","following_url":"https://api.github.com/users/weew/following{/other_user}","gists_url":"https://api.github.com/users/weew/gists{/gist_id}","starred_url":"https://api.github.com/users/weew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weew/subscriptions","organizations_url":"https://api.github.com/users/weew/orgs","repos_url":"https://api.github.com/users/weew/repos","events_url":"https://api.github.com/users/weew/events{/privacy}","received_events_url":"https://api.github.com/users/weew/received_events","type":"Organization","site_admin":false},"repo":{"id":44446373,"name":"php-validator","full_name":"weew/php-validator","owner":{"login":"weew","id":11678497,"avatar_url":"https://avatars.githubusercontent.com/u/11678497?v=3","gravatar_id":"","url":"https://api.github.com/users/weew","html_url":"https://github.com/weew","followers_url":"https://api.github.com/users/weew/followers","following_url":"https://api.github.com/users/weew/following{/other_user}","gists_url":"https://api.github.com/users/weew/gists{/gist_id}","starred_url":"https://api.github.com/users/weew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weew/subscriptions","organizations_url":"https://api.github.com/users/weew/orgs","repos_url":"https://api.github.com/users/weew/repos","events_url":"https://api.github.com/users/weew/events{/privacy}","received_events_url":"https://api.github.com/users/weew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weew/php-validator","description":"Simple validation library.","fork":false,"url":"https://api.github.com/repos/weew/php-validator","forks_url":"https://api.github.com/repos/weew/php-validator/forks","keys_url":"https://api.github.com/repos/weew/php-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weew/php-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weew/php-validator/teams","hooks_url":"https://api.github.com/repos/weew/php-validator/hooks","issue_events_url":"https://api.github.com/repos/weew/php-validator/issues/events{/number}","events_url":"https://api.github.com/repos/weew/php-validator/events","assignees_url":"https://api.github.com/repos/weew/php-validator/assignees{/user}","branches_url":"https://api.github.com/repos/weew/php-validator/branches{/branch}","tags_url":"https://api.github.com/repos/weew/php-validator/tags","blobs_url":"https://api.github.com/repos/weew/php-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weew/php-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weew/php-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/weew/php-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weew/php-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/weew/php-validator/languages","stargazers_url":"https://api.github.com/repos/weew/php-validator/stargazers","contributors_url":"https://api.github.com/repos/weew/php-validator/contributors","subscribers_url":"https://api.github.com/repos/weew/php-validator/subscribers","subscription_url":"https://api.github.com/repos/weew/php-validator/subscription","commits_url":"https://api.github.com/repos/weew/php-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/weew/php-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/weew/php-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/weew/php-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/weew/php-validator/contents/{+path}","compare_url":"https://api.github.com/repos/weew/php-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weew/php-validator/merges","archive_url":"https://api.github.com/repos/weew/php-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weew/php-validator/downloads","issues_url":"https://api.github.com/repos/weew/php-validator/issues{/number}","pulls_url":"https://api.github.com/repos/weew/php-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/weew/php-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/weew/php-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weew/php-validator/labels{/name}","releases_url":"https://api.github.com/repos/weew/php-validator/releases{/id}","created_at":"2015-10-17T17:03:14Z","updated_at":"2015-10-17T17:07:11Z","pushed_at":"2015-10-24T20:23:31Z","git_url":"git://github.com/weew/php-validator.git","ssh_url":"git@github.com:weew/php-validator.git","clone_url":"https://github.com/weew/php-validator.git","svn_url":"https://github.com/weew/php-validator","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"weew:master","ref":"master","sha":"84127a81c618e1dbc6d504401d87b43cce4afa91","user":{"login":"weew","id":11678497,"avatar_url":"https://avatars.githubusercontent.com/u/11678497?v=3","gravatar_id":"","url":"https://api.github.com/users/weew","html_url":"https://github.com/weew","followers_url":"https://api.github.com/users/weew/followers","following_url":"https://api.github.com/users/weew/following{/other_user}","gists_url":"https://api.github.com/users/weew/gists{/gist_id}","starred_url":"https://api.github.com/users/weew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weew/subscriptions","organizations_url":"https://api.github.com/users/weew/orgs","repos_url":"https://api.github.com/users/weew/repos","events_url":"https://api.github.com/users/weew/events{/privacy}","received_events_url":"https://api.github.com/users/weew/received_events","type":"Organization","site_admin":false},"repo":{"id":44446373,"name":"php-validator","full_name":"weew/php-validator","owner":{"login":"weew","id":11678497,"avatar_url":"https://avatars.githubusercontent.com/u/11678497?v=3","gravatar_id":"","url":"https://api.github.com/users/weew","html_url":"https://github.com/weew","followers_url":"https://api.github.com/users/weew/followers","following_url":"https://api.github.com/users/weew/following{/other_user}","gists_url":"https://api.github.com/users/weew/gists{/gist_id}","starred_url":"https://api.github.com/users/weew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weew/subscriptions","organizations_url":"https://api.github.com/users/weew/orgs","repos_url":"https://api.github.com/users/weew/repos","events_url":"https://api.github.com/users/weew/events{/privacy}","received_events_url":"https://api.github.com/users/weew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weew/php-validator","description":"Simple validation library.","fork":false,"url":"https://api.github.com/repos/weew/php-validator","forks_url":"https://api.github.com/repos/weew/php-validator/forks","keys_url":"https://api.github.com/repos/weew/php-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weew/php-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weew/php-validator/teams","hooks_url":"https://api.github.com/repos/weew/php-validator/hooks","issue_events_url":"https://api.github.com/repos/weew/php-validator/issues/events{/number}","events_url":"https://api.github.com/repos/weew/php-validator/events","assignees_url":"https://api.github.com/repos/weew/php-validator/assignees{/user}","branches_url":"https://api.github.com/repos/weew/php-validator/branches{/branch}","tags_url":"https://api.github.com/repos/weew/php-validator/tags","blobs_url":"https://api.github.com/repos/weew/php-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weew/php-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weew/php-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/weew/php-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weew/php-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/weew/php-validator/languages","stargazers_url":"https://api.github.com/repos/weew/php-validator/stargazers","contributors_url":"https://api.github.com/repos/weew/php-validator/contributors","subscribers_url":"https://api.github.com/repos/weew/php-validator/subscribers","subscription_url":"https://api.github.com/repos/weew/php-validator/subscription","commits_url":"https://api.github.com/repos/weew/php-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/weew/php-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/weew/php-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/weew/php-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/weew/php-validator/contents/{+path}","compare_url":"https://api.github.com/repos/weew/php-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weew/php-validator/merges","archive_url":"https://api.github.com/repos/weew/php-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weew/php-validator/downloads","issues_url":"https://api.github.com/repos/weew/php-validator/issues{/number}","pulls_url":"https://api.github.com/repos/weew/php-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/weew/php-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/weew/php-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weew/php-validator/labels{/name}","releases_url":"https://api.github.com/repos/weew/php-validator/releases{/id}","created_at":"2015-10-17T17:03:14Z","updated_at":"2015-10-17T17:07:11Z","pushed_at":"2015-10-24T20:23:31Z","git_url":"git://github.com/weew/php-validator.git","ssh_url":"git@github.com:weew/php-validator.git","clone_url":"https://github.com/weew/php-validator.git","svn_url":"https://github.com/weew/php-validator","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weew/php-validator/pulls/2"},"html":{"href":"https://github.com/weew/php-validator/pull/2"},"issue":{"href":"https://api.github.com/repos/weew/php-validator/issues/2"},"comments":{"href":"https://api.github.com/repos/weew/php-validator/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/weew/php-validator/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/weew/php-validator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weew/php-validator/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/weew/php-validator/statuses/f1a10bcf21bd18de0a2946c8e276e12914c6e0b6"}}}}