{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/nospor/shorten/pulls/3","id":46598893,"html_url":"https://github.com/nospor/shorten/pull/3","diff_url":"https://github.com/nospor/shorten/pull/3.diff","patch_url":"https://github.com/nospor/shorten/pull/3.patch","issue_url":"https://api.github.com/repos/nospor/shorten/issues/3","number":3,"state":"open","locked":false,"title":"Update Helper.php","user":{"login":"KsaR99","id":7098217,"avatar_url":"https://avatars.githubusercontent.com/u/7098217?v=3","gravatar_id":"","url":"https://api.github.com/users/KsaR99","html_url":"https://github.com/KsaR99","followers_url":"https://api.github.com/users/KsaR99/followers","following_url":"https://api.github.com/users/KsaR99/following{/other_user}","gists_url":"https://api.github.com/users/KsaR99/gists{/gist_id}","starred_url":"https://api.github.com/users/KsaR99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KsaR99/subscriptions","organizations_url":"https://api.github.com/users/KsaR99/orgs","repos_url":"https://api.github.com/users/KsaR99/repos","events_url":"https://api.github.com/users/KsaR99/events{/privacy}","received_events_url":"https://api.github.com/users/KsaR99/received_events","type":"User","site_admin":false},"body":"getIp(), one line\r\n\r\nreturn (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : (isset($_SERVER['HTTP_CLIENT_IP'])) ? $_SERVER['HTTP_CLIENT_IP'] : $_SERVER['REMOTE_ADDR'];","created_at":"2015-10-02T02:46:25Z","updated_at":"2015-10-02T02:46:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nospor/shorten/pulls/3/commits","review_comments_url":"https://api.github.com/repos/nospor/shorten/pulls/3/comments","review_comment_url":"https://api.github.com/repos/nospor/shorten/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nospor/shorten/issues/3/comments","statuses_url":"https://api.github.com/repos/nospor/shorten/statuses/263d8bff640d531137d89026aeaeee9585ff734b","head":{"label":"KsaR99:patch-2","ref":"patch-2","sha":"263d8bff640d531137d89026aeaeee9585ff734b","user":{"login":"KsaR99","id":7098217,"avatar_url":"https://avatars.githubusercontent.com/u/7098217?v=3","gravatar_id":"","url":"https://api.github.com/users/KsaR99","html_url":"https://github.com/KsaR99","followers_url":"https://api.github.com/users/KsaR99/followers","following_url":"https://api.github.com/users/KsaR99/following{/other_user}","gists_url":"https://api.github.com/users/KsaR99/gists{/gist_id}","starred_url":"https://api.github.com/users/KsaR99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KsaR99/subscriptions","organizations_url":"https://api.github.com/users/KsaR99/orgs","repos_url":"https://api.github.com/users/KsaR99/repos","events_url":"https://api.github.com/users/KsaR99/events{/privacy}","received_events_url":"https://api.github.com/users/KsaR99/received_events","type":"User","site_admin":false},"repo":{"id":43107813,"name":"shorten","full_name":"KsaR99/shorten","owner":{"login":"KsaR99","id":7098217,"avatar_url":"https://avatars.githubusercontent.com/u/7098217?v=3","gravatar_id":"","url":"https://api.github.com/users/KsaR99","html_url":"https://github.com/KsaR99","followers_url":"https://api.github.com/users/KsaR99/followers","following_url":"https://api.github.com/users/KsaR99/following{/other_user}","gists_url":"https://api.github.com/users/KsaR99/gists{/gist_id}","starred_url":"https://api.github.com/users/KsaR99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KsaR99/subscriptions","organizations_url":"https://api.github.com/users/KsaR99/orgs","repos_url":"https://api.github.com/users/KsaR99/repos","events_url":"https://api.github.com/users/KsaR99/events{/privacy}","received_events_url":"https://api.github.com/users/KsaR99/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KsaR99/shorten","description":"URL shortening service","fork":true,"url":"https://api.github.com/repos/KsaR99/shorten","forks_url":"https://api.github.com/repos/KsaR99/shorten/forks","keys_url":"https://api.github.com/repos/KsaR99/shorten/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KsaR99/shorten/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KsaR99/shorten/teams","hooks_url":"https://api.github.com/repos/KsaR99/shorten/hooks","issue_events_url":"https://api.github.com/repos/KsaR99/shorten/issues/events{/number}","events_url":"https://api.github.com/repos/KsaR99/shorten/events","assignees_url":"https://api.github.com/repos/KsaR99/shorten/assignees{/user}","branches_url":"https://api.github.com/repos/KsaR99/shorten/branches{/branch}","tags_url":"https://api.github.com/repos/KsaR99/shorten/tags","blobs_url":"https://api.github.com/repos/KsaR99/shorten/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KsaR99/shorten/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KsaR99/shorten/git/refs{/sha}","trees_url":"https://api.github.com/repos/KsaR99/shorten/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KsaR99/shorten/statuses/{sha}","languages_url":"https://api.github.com/repos/KsaR99/shorten/languages","stargazers_url":"https://api.github.com/repos/KsaR99/shorten/stargazers","contributors_url":"https://api.github.com/repos/KsaR99/shorten/contributors","subscribers_url":"https://api.github.com/repos/KsaR99/shorten/subscribers","subscription_url":"https://api.github.com/repos/KsaR99/shorten/subscription","commits_url":"https://api.github.com/repos/KsaR99/shorten/commits{/sha}","git_commits_url":"https://api.github.com/repos/KsaR99/shorten/git/commits{/sha}","comments_url":"https://api.github.com/repos/KsaR99/shorten/comments{/number}","issue_comment_url":"https://api.github.com/repos/KsaR99/shorten/issues/comments{/number}","contents_url":"https://api.github.com/repos/KsaR99/shorten/contents/{+path}","compare_url":"https://api.github.com/repos/KsaR99/shorten/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KsaR99/shorten/merges","archive_url":"https://api.github.com/repos/KsaR99/shorten/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KsaR99/shorten/downloads","issues_url":"https://api.github.com/repos/KsaR99/shorten/issues{/number}","pulls_url":"https://api.github.com/repos/KsaR99/shorten/pulls{/number}","milestones_url":"https://api.github.com/repos/KsaR99/shorten/milestones{/number}","notifications_url":"https://api.github.com/repos/KsaR99/shorten/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KsaR99/shorten/labels{/name}","releases_url":"https://api.github.com/repos/KsaR99/shorten/releases{/id}","created_at":"2015-09-25T03:35:51Z","updated_at":"2015-09-25T03:35:51Z","pushed_at":"2015-09-25T04:11:50Z","git_url":"git://github.com/KsaR99/shorten.git","ssh_url":"git@github.com:KsaR99/shorten.git","clone_url":"https://github.com/KsaR99/shorten.git","svn_url":"https://github.com/KsaR99/shorten","homepage":null,"size":410,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"nospor:master","ref":"master","sha":"009330ea8bb2bd1fec6bdb8f6f9cf5ad1cc20111","user":{"login":"nospor","id":10991847,"avatar_url":"https://avatars.githubusercontent.com/u/10991847?v=3","gravatar_id":"","url":"https://api.github.com/users/nospor","html_url":"https://github.com/nospor","followers_url":"https://api.github.com/users/nospor/followers","following_url":"https://api.github.com/users/nospor/following{/other_user}","gists_url":"https://api.github.com/users/nospor/gists{/gist_id}","starred_url":"https://api.github.com/users/nospor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nospor/subscriptions","organizations_url":"https://api.github.com/users/nospor/orgs","repos_url":"https://api.github.com/users/nospor/repos","events_url":"https://api.github.com/users/nospor/events{/privacy}","received_events_url":"https://api.github.com/users/nospor/received_events","type":"User","site_admin":false},"repo":{"id":43002257,"name":"shorten","full_name":"nospor/shorten","owner":{"login":"nospor","id":10991847,"avatar_url":"https://avatars.githubusercontent.com/u/10991847?v=3","gravatar_id":"","url":"https://api.github.com/users/nospor","html_url":"https://github.com/nospor","followers_url":"https://api.github.com/users/nospor/followers","following_url":"https://api.github.com/users/nospor/following{/other_user}","gists_url":"https://api.github.com/users/nospor/gists{/gist_id}","starred_url":"https://api.github.com/users/nospor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nospor/subscriptions","organizations_url":"https://api.github.com/users/nospor/orgs","repos_url":"https://api.github.com/users/nospor/repos","events_url":"https://api.github.com/users/nospor/events{/privacy}","received_events_url":"https://api.github.com/users/nospor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nospor/shorten","description":"URL shortening service","fork":false,"url":"https://api.github.com/repos/nospor/shorten","forks_url":"https://api.github.com/repos/nospor/shorten/forks","keys_url":"https://api.github.com/repos/nospor/shorten/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nospor/shorten/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nospor/shorten/teams","hooks_url":"https://api.github.com/repos/nospor/shorten/hooks","issue_events_url":"https://api.github.com/repos/nospor/shorten/issues/events{/number}","events_url":"https://api.github.com/repos/nospor/shorten/events","assignees_url":"https://api.github.com/repos/nospor/shorten/assignees{/user}","branches_url":"https://api.github.com/repos/nospor/shorten/branches{/branch}","tags_url":"https://api.github.com/repos/nospor/shorten/tags","blobs_url":"https://api.github.com/repos/nospor/shorten/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nospor/shorten/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nospor/shorten/git/refs{/sha}","trees_url":"https://api.github.com/repos/nospor/shorten/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nospor/shorten/statuses/{sha}","languages_url":"https://api.github.com/repos/nospor/shorten/languages","stargazers_url":"https://api.github.com/repos/nospor/shorten/stargazers","contributors_url":"https://api.github.com/repos/nospor/shorten/contributors","subscribers_url":"https://api.github.com/repos/nospor/shorten/subscribers","subscription_url":"https://api.github.com/repos/nospor/shorten/subscription","commits_url":"https://api.github.com/repos/nospor/shorten/commits{/sha}","git_commits_url":"https://api.github.com/repos/nospor/shorten/git/commits{/sha}","comments_url":"https://api.github.com/repos/nospor/shorten/comments{/number}","issue_comment_url":"https://api.github.com/repos/nospor/shorten/issues/comments{/number}","contents_url":"https://api.github.com/repos/nospor/shorten/contents/{+path}","compare_url":"https://api.github.com/repos/nospor/shorten/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nospor/shorten/merges","archive_url":"https://api.github.com/repos/nospor/shorten/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nospor/shorten/downloads","issues_url":"https://api.github.com/repos/nospor/shorten/issues{/number}","pulls_url":"https://api.github.com/repos/nospor/shorten/pulls{/number}","milestones_url":"https://api.github.com/repos/nospor/shorten/milestones{/number}","notifications_url":"https://api.github.com/repos/nospor/shorten/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nospor/shorten/labels{/name}","releases_url":"https://api.github.com/repos/nospor/shorten/releases{/id}","created_at":"2015-09-23T13:22:10Z","updated_at":"2015-09-25T04:07:46Z","pushed_at":"2015-10-02T02:46:25Z","git_url":"git://github.com/nospor/shorten.git","ssh_url":"git@github.com:nospor/shorten.git","clone_url":"https://github.com/nospor/shorten.git","svn_url":"https://github.com/nospor/shorten","homepage":null,"size":440,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nospor/shorten/pulls/3"},"html":{"href":"https://github.com/nospor/shorten/pull/3"},"issue":{"href":"https://api.github.com/repos/nospor/shorten/issues/3"},"comments":{"href":"https://api.github.com/repos/nospor/shorten/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/nospor/shorten/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/nospor/shorten/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nospor/shorten/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/nospor/shorten/statuses/263d8bff640d531137d89026aeaeee9585ff734b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":5,"changed_files":1}}