{"action":"opened","number":996,"pull_request":{"url":"https://api.github.com/repos/codeguy/Slim/pulls/996","id":29054559,"html_url":"https://github.com/codeguy/Slim/pull/996","diff_url":"https://github.com/codeguy/Slim/pull/996.diff","patch_url":"https://github.com/codeguy/Slim/pull/996.patch","issue_url":"https://api.github.com/repos/codeguy/Slim/issues/996","number":996,"state":"open","locked":false,"title":"Fix: Remove useless assignment","user":{"login":"localheinz","id":605483,"avatar_url":"https://avatars.githubusercontent.com/u/605483?v=3","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"body":"This PR\r\n\r\n* [x] removes a variable which is assigned a value before a condition, but never used when the condition evaluates to false and instantly overwritten when the condition evaluates to true\r\n\r\nBecause, you know, cycles!","created_at":"2015-02-10T23:12:29Z","updated_at":"2015-02-10T23:12:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeguy/Slim/pulls/996/commits","review_comments_url":"https://api.github.com/repos/codeguy/Slim/pulls/996/comments","review_comment_url":"https://api.github.com/repos/codeguy/Slim/pulls/comments/{number}","comments_url":"https://api.github.com/repos/codeguy/Slim/issues/996/comments","statuses_url":"https://api.github.com/repos/codeguy/Slim/statuses/70e5848a731a35cbfcbac9a2f3eb1dc44c4da889","head":{"label":"localheinz:fix/useless-assignment","ref":"fix/useless-assignment","sha":"70e5848a731a35cbfcbac9a2f3eb1dc44c4da889","user":{"login":"localheinz","id":605483,"avatar_url":"https://avatars.githubusercontent.com/u/605483?v=3","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"repo":{"id":30619621,"name":"Slim","full_name":"localheinz/Slim","owner":{"login":"localheinz","id":605483,"avatar_url":"https://avatars.githubusercontent.com/u/605483?v=3","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/localheinz/Slim","description":"A PHP micro framework","fork":true,"url":"https://api.github.com/repos/localheinz/Slim","forks_url":"https://api.github.com/repos/localheinz/Slim/forks","keys_url":"https://api.github.com/repos/localheinz/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/localheinz/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/localheinz/Slim/teams","hooks_url":"https://api.github.com/repos/localheinz/Slim/hooks","issue_events_url":"https://api.github.com/repos/localheinz/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/localheinz/Slim/events","assignees_url":"https://api.github.com/repos/localheinz/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/localheinz/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/localheinz/Slim/tags","blobs_url":"https://api.github.com/repos/localheinz/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/localheinz/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/localheinz/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/localheinz/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/localheinz/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/localheinz/Slim/languages","stargazers_url":"https://api.github.com/repos/localheinz/Slim/stargazers","contributors_url":"https://api.github.com/repos/localheinz/Slim/contributors","subscribers_url":"https://api.github.com/repos/localheinz/Slim/subscribers","subscription_url":"https://api.github.com/repos/localheinz/Slim/subscription","commits_url":"https://api.github.com/repos/localheinz/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/localheinz/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/localheinz/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/localheinz/Slim/issues/comments/{number}","contents_url":"https://api.github.com/repos/localheinz/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/localheinz/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/localheinz/Slim/merges","archive_url":"https://api.github.com/repos/localheinz/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/localheinz/Slim/downloads","issues_url":"https://api.github.com/repos/localheinz/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/localheinz/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/localheinz/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/localheinz/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/localheinz/Slim/labels{/name}","releases_url":"https://api.github.com/repos/localheinz/Slim/releases{/id}","created_at":"2015-02-10T23:10:45Z","updated_at":"2015-02-10T23:10:46Z","pushed_at":"2015-02-10T23:11:06Z","git_url":"git://github.com/localheinz/Slim.git","ssh_url":"git@github.com:localheinz/Slim.git","clone_url":"https://github.com/localheinz/Slim.git","svn_url":"https://github.com/localheinz/Slim","homepage":"http://www.slimframework.com","size":6858,"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":"codeguy:master","ref":"master","sha":"04958a10ed95bc7bc97568e573877d4f9b62db48","user":{"login":"codeguy","id":31677,"avatar_url":"https://avatars.githubusercontent.com/u/31677?v=3","gravatar_id":"","url":"https://api.github.com/users/codeguy","html_url":"https://github.com/codeguy","followers_url":"https://api.github.com/users/codeguy/followers","following_url":"https://api.github.com/users/codeguy/following{/other_user}","gists_url":"https://api.github.com/users/codeguy/gists{/gist_id}","starred_url":"https://api.github.com/users/codeguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeguy/subscriptions","organizations_url":"https://api.github.com/users/codeguy/orgs","repos_url":"https://api.github.com/users/codeguy/repos","events_url":"https://api.github.com/users/codeguy/events{/privacy}","received_events_url":"https://api.github.com/users/codeguy/received_events","type":"User","site_admin":false},"repo":{"id":926544,"name":"Slim","full_name":"codeguy/Slim","owner":{"login":"codeguy","id":31677,"avatar_url":"https://avatars.githubusercontent.com/u/31677?v=3","gravatar_id":"","url":"https://api.github.com/users/codeguy","html_url":"https://github.com/codeguy","followers_url":"https://api.github.com/users/codeguy/followers","following_url":"https://api.github.com/users/codeguy/following{/other_user}","gists_url":"https://api.github.com/users/codeguy/gists{/gist_id}","starred_url":"https://api.github.com/users/codeguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeguy/subscriptions","organizations_url":"https://api.github.com/users/codeguy/orgs","repos_url":"https://api.github.com/users/codeguy/repos","events_url":"https://api.github.com/users/codeguy/events{/privacy}","received_events_url":"https://api.github.com/users/codeguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codeguy/Slim","description":"A PHP micro framework","fork":false,"url":"https://api.github.com/repos/codeguy/Slim","forks_url":"https://api.github.com/repos/codeguy/Slim/forks","keys_url":"https://api.github.com/repos/codeguy/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeguy/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeguy/Slim/teams","hooks_url":"https://api.github.com/repos/codeguy/Slim/hooks","issue_events_url":"https://api.github.com/repos/codeguy/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/codeguy/Slim/events","assignees_url":"https://api.github.com/repos/codeguy/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/codeguy/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/codeguy/Slim/tags","blobs_url":"https://api.github.com/repos/codeguy/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeguy/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeguy/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeguy/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeguy/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/codeguy/Slim/languages","stargazers_url":"https://api.github.com/repos/codeguy/Slim/stargazers","contributors_url":"https://api.github.com/repos/codeguy/Slim/contributors","subscribers_url":"https://api.github.com/repos/codeguy/Slim/subscribers","subscription_url":"https://api.github.com/repos/codeguy/Slim/subscription","commits_url":"https://api.github.com/repos/codeguy/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeguy/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeguy/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeguy/Slim/issues/comments/{number}","contents_url":"https://api.github.com/repos/codeguy/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/codeguy/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeguy/Slim/merges","archive_url":"https://api.github.com/repos/codeguy/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeguy/Slim/downloads","issues_url":"https://api.github.com/repos/codeguy/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/codeguy/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/codeguy/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/codeguy/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeguy/Slim/labels{/name}","releases_url":"https://api.github.com/repos/codeguy/Slim/releases{/id}","created_at":"2010-09-21T01:17:06Z","updated_at":"2015-02-10T21:58:02Z","pushed_at":"2015-02-09T00:32:45Z","git_url":"git://github.com/codeguy/Slim.git","ssh_url":"git@github.com:codeguy/Slim.git","clone_url":"https://github.com/codeguy/Slim.git","svn_url":"https://github.com/codeguy/Slim","homepage":"http://www.slimframework.com","size":6858,"stargazers_count":4522,"watchers_count":4522,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":810,"mirror_url":null,"open_issues_count":118,"forks":810,"open_issues":118,"watchers":4522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeguy/Slim/pulls/996"},"html":{"href":"https://github.com/codeguy/Slim/pull/996"},"issue":{"href":"https://api.github.com/repos/codeguy/Slim/issues/996"},"comments":{"href":"https://api.github.com/repos/codeguy/Slim/issues/996/comments"},"review_comments":{"href":"https://api.github.com/repos/codeguy/Slim/pulls/996/comments"},"review_comment":{"href":"https://api.github.com/repos/codeguy/Slim/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/codeguy/Slim/pulls/996/commits"},"statuses":{"href":"https://api.github.com/repos/codeguy/Slim/statuses/70e5848a731a35cbfcbac9a2f3eb1dc44c4da889"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":1,"changed_files":1}}