{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/1","id":37210881,"html_url":"https://github.com/Jesperkm/oophp-practice/pull/1","diff_url":"https://github.com/Jesperkm/oophp-practice/pull/1.diff","patch_url":"https://github.com/Jesperkm/oophp-practice/pull/1.patch","issue_url":"https://api.github.com/repos/Jesperkm/oophp-practice/issues/1","number":1,"state":"open","locked":false,"title":"Modified to use PDO. Removed echo's from the class","user":{"login":"teklifeinfo","id":10798199,"avatar_url":"https://avatars.githubusercontent.com/u/10798199?v=3","gravatar_id":"","url":"https://api.github.com/users/teklifeinfo","html_url":"https://github.com/teklifeinfo","followers_url":"https://api.github.com/users/teklifeinfo/followers","following_url":"https://api.github.com/users/teklifeinfo/following{/other_user}","gists_url":"https://api.github.com/users/teklifeinfo/gists{/gist_id}","starred_url":"https://api.github.com/users/teklifeinfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teklifeinfo/subscriptions","organizations_url":"https://api.github.com/users/teklifeinfo/orgs","repos_url":"https://api.github.com/users/teklifeinfo/repos","events_url":"https://api.github.com/users/teklifeinfo/events{/privacy}","received_events_url":"https://api.github.com/users/teklifeinfo/received_events","type":"User","site_admin":false},"body":"Haven't tested this, but I think it could help.\r\n\r\n* I created the database connection in the construct. DRY (Don't Repeat Yourself)\r\n* Modified some queries\r\n* Using PDO\r\n* Changed methods to return true or false, instead of echo'ing\r\n* Created a checkUserExists method, it could be handy to use again","created_at":"2015-06-09T00:57:58Z","updated_at":"2015-06-09T00:57:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Jesperkm/oophp-practice/issues/1/comments","statuses_url":"https://api.github.com/repos/Jesperkm/oophp-practice/statuses/6bb5ad80b1b5c820e4650561c7f2f1513aeb3b8e","head":{"label":"teklifeinfo:master","ref":"master","sha":"6bb5ad80b1b5c820e4650561c7f2f1513aeb3b8e","user":{"login":"teklifeinfo","id":10798199,"avatar_url":"https://avatars.githubusercontent.com/u/10798199?v=3","gravatar_id":"","url":"https://api.github.com/users/teklifeinfo","html_url":"https://github.com/teklifeinfo","followers_url":"https://api.github.com/users/teklifeinfo/followers","following_url":"https://api.github.com/users/teklifeinfo/following{/other_user}","gists_url":"https://api.github.com/users/teklifeinfo/gists{/gist_id}","starred_url":"https://api.github.com/users/teklifeinfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teklifeinfo/subscriptions","organizations_url":"https://api.github.com/users/teklifeinfo/orgs","repos_url":"https://api.github.com/users/teklifeinfo/repos","events_url":"https://api.github.com/users/teklifeinfo/events{/privacy}","received_events_url":"https://api.github.com/users/teklifeinfo/received_events","type":"User","site_admin":false},"repo":{"id":37100790,"name":"oophp-practice","full_name":"teklifeinfo/oophp-practice","owner":{"login":"teklifeinfo","id":10798199,"avatar_url":"https://avatars.githubusercontent.com/u/10798199?v=3","gravatar_id":"","url":"https://api.github.com/users/teklifeinfo","html_url":"https://github.com/teklifeinfo","followers_url":"https://api.github.com/users/teklifeinfo/followers","following_url":"https://api.github.com/users/teklifeinfo/following{/other_user}","gists_url":"https://api.github.com/users/teklifeinfo/gists{/gist_id}","starred_url":"https://api.github.com/users/teklifeinfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teklifeinfo/subscriptions","organizations_url":"https://api.github.com/users/teklifeinfo/orgs","repos_url":"https://api.github.com/users/teklifeinfo/repos","events_url":"https://api.github.com/users/teklifeinfo/events{/privacy}","received_events_url":"https://api.github.com/users/teklifeinfo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/teklifeinfo/oophp-practice","description":"Practicing oo-php","fork":true,"url":"https://api.github.com/repos/teklifeinfo/oophp-practice","forks_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/forks","keys_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/teams","hooks_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/hooks","issue_events_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/issues/events{/number}","events_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/events","assignees_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/assignees{/user}","branches_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/branches{/branch}","tags_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/tags","blobs_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/languages","stargazers_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/stargazers","contributors_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/contributors","subscribers_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/subscribers","subscription_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/subscription","commits_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/contents/{+path}","compare_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/merges","archive_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/downloads","issues_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/issues{/number}","pulls_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/labels{/name}","releases_url":"https://api.github.com/repos/teklifeinfo/oophp-practice/releases{/id}","created_at":"2015-06-09T00:36:24Z","updated_at":"2015-06-09T00:36:25Z","pushed_at":"2015-06-09T00:53:43Z","git_url":"git://github.com/teklifeinfo/oophp-practice.git","ssh_url":"git@github.com:teklifeinfo/oophp-practice.git","clone_url":"https://github.com/teklifeinfo/oophp-practice.git","svn_url":"https://github.com/teklifeinfo/oophp-practice","homepage":null,"size":364,"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":"Jesperkm:master","ref":"master","sha":"50965a7320ad17353416d5c96fd2556eb564c504","user":{"login":"Jesperkm","id":6574659,"avatar_url":"https://avatars.githubusercontent.com/u/6574659?v=3","gravatar_id":"","url":"https://api.github.com/users/Jesperkm","html_url":"https://github.com/Jesperkm","followers_url":"https://api.github.com/users/Jesperkm/followers","following_url":"https://api.github.com/users/Jesperkm/following{/other_user}","gists_url":"https://api.github.com/users/Jesperkm/gists{/gist_id}","starred_url":"https://api.github.com/users/Jesperkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jesperkm/subscriptions","organizations_url":"https://api.github.com/users/Jesperkm/orgs","repos_url":"https://api.github.com/users/Jesperkm/repos","events_url":"https://api.github.com/users/Jesperkm/events{/privacy}","received_events_url":"https://api.github.com/users/Jesperkm/received_events","type":"User","site_admin":false},"repo":{"id":25872580,"name":"oophp-practice","full_name":"Jesperkm/oophp-practice","owner":{"login":"Jesperkm","id":6574659,"avatar_url":"https://avatars.githubusercontent.com/u/6574659?v=3","gravatar_id":"","url":"https://api.github.com/users/Jesperkm","html_url":"https://github.com/Jesperkm","followers_url":"https://api.github.com/users/Jesperkm/followers","following_url":"https://api.github.com/users/Jesperkm/following{/other_user}","gists_url":"https://api.github.com/users/Jesperkm/gists{/gist_id}","starred_url":"https://api.github.com/users/Jesperkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jesperkm/subscriptions","organizations_url":"https://api.github.com/users/Jesperkm/orgs","repos_url":"https://api.github.com/users/Jesperkm/repos","events_url":"https://api.github.com/users/Jesperkm/events{/privacy}","received_events_url":"https://api.github.com/users/Jesperkm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jesperkm/oophp-practice","description":"Practicing oo-php","fork":false,"url":"https://api.github.com/repos/Jesperkm/oophp-practice","forks_url":"https://api.github.com/repos/Jesperkm/oophp-practice/forks","keys_url":"https://api.github.com/repos/Jesperkm/oophp-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jesperkm/oophp-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jesperkm/oophp-practice/teams","hooks_url":"https://api.github.com/repos/Jesperkm/oophp-practice/hooks","issue_events_url":"https://api.github.com/repos/Jesperkm/oophp-practice/issues/events{/number}","events_url":"https://api.github.com/repos/Jesperkm/oophp-practice/events","assignees_url":"https://api.github.com/repos/Jesperkm/oophp-practice/assignees{/user}","branches_url":"https://api.github.com/repos/Jesperkm/oophp-practice/branches{/branch}","tags_url":"https://api.github.com/repos/Jesperkm/oophp-practice/tags","blobs_url":"https://api.github.com/repos/Jesperkm/oophp-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jesperkm/oophp-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jesperkm/oophp-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jesperkm/oophp-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jesperkm/oophp-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Jesperkm/oophp-practice/languages","stargazers_url":"https://api.github.com/repos/Jesperkm/oophp-practice/stargazers","contributors_url":"https://api.github.com/repos/Jesperkm/oophp-practice/contributors","subscribers_url":"https://api.github.com/repos/Jesperkm/oophp-practice/subscribers","subscription_url":"https://api.github.com/repos/Jesperkm/oophp-practice/subscription","commits_url":"https://api.github.com/repos/Jesperkm/oophp-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jesperkm/oophp-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jesperkm/oophp-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jesperkm/oophp-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jesperkm/oophp-practice/contents/{+path}","compare_url":"https://api.github.com/repos/Jesperkm/oophp-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jesperkm/oophp-practice/merges","archive_url":"https://api.github.com/repos/Jesperkm/oophp-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jesperkm/oophp-practice/downloads","issues_url":"https://api.github.com/repos/Jesperkm/oophp-practice/issues{/number}","pulls_url":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Jesperkm/oophp-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Jesperkm/oophp-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jesperkm/oophp-practice/labels{/name}","releases_url":"https://api.github.com/repos/Jesperkm/oophp-practice/releases{/id}","created_at":"2014-10-28T14:13:35Z","updated_at":"2014-10-28T14:14:48Z","pushed_at":"2015-06-09T00:57:58Z","git_url":"git://github.com/Jesperkm/oophp-practice.git","ssh_url":"git@github.com:Jesperkm/oophp-practice.git","clone_url":"https://github.com/Jesperkm/oophp-practice.git","svn_url":"https://github.com/Jesperkm/oophp-practice","homepage":null,"size":364,"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":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/1"},"html":{"href":"https://github.com/Jesperkm/oophp-practice/pull/1"},"issue":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/issues/1"},"comments":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Jesperkm/oophp-practice/statuses/6bb5ad80b1b5c820e4650561c7f2f1513aeb3b8e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":70,"deletions":81,"changed_files":1}}