{"action":"created","comment":{"url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/comments/115528555","pull_request_review_id":37074193,"id":115528555,"diff_hunk":"@@ -832,8 +832,9 @@ protected function save_user_meta_fields($order)\n \t */\n \tprotected function process_response_error($request, $order)\n \t{\n-\t\t$code = $request->status_code;\n-\n+\t\t$code = isset($request->status_code) ? $request->status_code : 'GENERAL';\n+\t\t$message = isset($request->status_message) ? $request->status_message : 'Unknow error.';","path":"woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php","position":7,"original_position":7,"commit_id":"391c61257c2d11f6163bbbac9fa0c40c7ad999ce","original_commit_id":"391c61257c2d11f6163bbbac9fa0c40c7ad999ce","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused local variables such as '$message'.](https://www.codacy.com/app/EBANX/woocommerce-gateway-ebanx/pullRequest?prid=641486)","created_at":"2017-05-09T15:57:31Z","updated_at":"2017-05-09T15:57:31Z","html_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/504#discussion_r115528555","pull_request_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504","_links":{"self":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/comments/115528555"},"html":{"href":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/504#discussion_r115528555"},"pull_request":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504","id":119544895,"html_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/504","diff_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/504.diff","patch_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/504.patch","issue_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/504","number":504,"state":"open","locked":false,"title":"[WIP] Docker and tests implementation","user":{"login":"cezarlz","id":954889,"avatar_url":"https://avatars0.githubusercontent.com/u/954889?v=3","gravatar_id":"","url":"https://api.github.com/users/cezarlz","html_url":"https://github.com/cezarlz","followers_url":"https://api.github.com/users/cezarlz/followers","following_url":"https://api.github.com/users/cezarlz/following{/other_user}","gists_url":"https://api.github.com/users/cezarlz/gists{/gist_id}","starred_url":"https://api.github.com/users/cezarlz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cezarlz/subscriptions","organizations_url":"https://api.github.com/users/cezarlz/orgs","repos_url":"https://api.github.com/users/cezarlz/repos","events_url":"https://api.github.com/users/cezarlz/events{/privacy}","received_events_url":"https://api.github.com/users/cezarlz/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-08T22:03:13Z","updated_at":"2017-05-09T15:57:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1acd42c4563acbdf36032a1d4b47b5d1bf7a7cd9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504/commits","review_comments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504/comments","review_comment_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/504/comments","statuses_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/statuses/391c61257c2d11f6163bbbac9fa0c40c7ad999ce","head":{"label":"ebanx:feature/docker","ref":"feature/docker","sha":"391c61257c2d11f6163bbbac9fa0c40c7ad999ce","user":{"login":"ebanx","id":5168667,"avatar_url":"https://avatars0.githubusercontent.com/u/5168667?v=3","gravatar_id":"","url":"https://api.github.com/users/ebanx","html_url":"https://github.com/ebanx","followers_url":"https://api.github.com/users/ebanx/followers","following_url":"https://api.github.com/users/ebanx/following{/other_user}","gists_url":"https://api.github.com/users/ebanx/gists{/gist_id}","starred_url":"https://api.github.com/users/ebanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebanx/subscriptions","organizations_url":"https://api.github.com/users/ebanx/orgs","repos_url":"https://api.github.com/users/ebanx/repos","events_url":"https://api.github.com/users/ebanx/events{/privacy}","received_events_url":"https://api.github.com/users/ebanx/received_events","type":"Organization","site_admin":false},"repo":{"id":70833779,"name":"woocommerce-gateway-ebanx","full_name":"ebanx/woocommerce-gateway-ebanx","owner":{"login":"ebanx","id":5168667,"avatar_url":"https://avatars0.githubusercontent.com/u/5168667?v=3","gravatar_id":"","url":"https://api.github.com/users/ebanx","html_url":"https://github.com/ebanx","followers_url":"https://api.github.com/users/ebanx/followers","following_url":"https://api.github.com/users/ebanx/following{/other_user}","gists_url":"https://api.github.com/users/ebanx/gists{/gist_id}","starred_url":"https://api.github.com/users/ebanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebanx/subscriptions","organizations_url":"https://api.github.com/users/ebanx/orgs","repos_url":"https://api.github.com/users/ebanx/repos","events_url":"https://api.github.com/users/ebanx/events{/privacy}","received_events_url":"https://api.github.com/users/ebanx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ebanx/woocommerce-gateway-ebanx","description":null,"fork":false,"url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx","forks_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/forks","keys_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/teams","hooks_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/hooks","issue_events_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/events{/number}","events_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/events","assignees_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/assignees{/user}","branches_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/branches{/branch}","tags_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/tags","blobs_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/statuses/{sha}","languages_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/languages","stargazers_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/stargazers","contributors_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/contributors","subscribers_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/subscribers","subscription_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/subscription","commits_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/contents/{+path}","compare_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/merges","archive_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/downloads","issues_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues{/number}","pulls_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls{/number}","milestones_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/milestones{/number}","notifications_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/labels{/name}","releases_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/releases{/id}","deployments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/deployments","created_at":"2016-10-13T18:00:19Z","updated_at":"2017-04-26T21:16:50Z","pushed_at":"2017-05-09T15:50:38Z","git_url":"git://github.com/ebanx/woocommerce-gateway-ebanx.git","ssh_url":"git@github.com:ebanx/woocommerce-gateway-ebanx.git","clone_url":"https://github.com/ebanx/woocommerce-gateway-ebanx.git","svn_url":"https://github.com/ebanx/woocommerce-gateway-ebanx","homepage":null,"size":38772,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":25,"forks":1,"open_issues":25,"watchers":1,"default_branch":"master"}},"base":{"label":"ebanx:develop","ref":"develop","sha":"ba2bd13bc05a8b88f7a4f4610aa9d5e9643009ca","user":{"login":"ebanx","id":5168667,"avatar_url":"https://avatars0.githubusercontent.com/u/5168667?v=3","gravatar_id":"","url":"https://api.github.com/users/ebanx","html_url":"https://github.com/ebanx","followers_url":"https://api.github.com/users/ebanx/followers","following_url":"https://api.github.com/users/ebanx/following{/other_user}","gists_url":"https://api.github.com/users/ebanx/gists{/gist_id}","starred_url":"https://api.github.com/users/ebanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebanx/subscriptions","organizations_url":"https://api.github.com/users/ebanx/orgs","repos_url":"https://api.github.com/users/ebanx/repos","events_url":"https://api.github.com/users/ebanx/events{/privacy}","received_events_url":"https://api.github.com/users/ebanx/received_events","type":"Organization","site_admin":false},"repo":{"id":70833779,"name":"woocommerce-gateway-ebanx","full_name":"ebanx/woocommerce-gateway-ebanx","owner":{"login":"ebanx","id":5168667,"avatar_url":"https://avatars0.githubusercontent.com/u/5168667?v=3","gravatar_id":"","url":"https://api.github.com/users/ebanx","html_url":"https://github.com/ebanx","followers_url":"https://api.github.com/users/ebanx/followers","following_url":"https://api.github.com/users/ebanx/following{/other_user}","gists_url":"https://api.github.com/users/ebanx/gists{/gist_id}","starred_url":"https://api.github.com/users/ebanx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebanx/subscriptions","organizations_url":"https://api.github.com/users/ebanx/orgs","repos_url":"https://api.github.com/users/ebanx/repos","events_url":"https://api.github.com/users/ebanx/events{/privacy}","received_events_url":"https://api.github.com/users/ebanx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ebanx/woocommerce-gateway-ebanx","description":null,"fork":false,"url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx","forks_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/forks","keys_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/teams","hooks_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/hooks","issue_events_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/events{/number}","events_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/events","assignees_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/assignees{/user}","branches_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/branches{/branch}","tags_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/tags","blobs_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/statuses/{sha}","languages_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/languages","stargazers_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/stargazers","contributors_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/contributors","subscribers_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/subscribers","subscription_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/subscription","commits_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/contents/{+path}","compare_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/merges","archive_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/downloads","issues_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues{/number}","pulls_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls{/number}","milestones_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/milestones{/number}","notifications_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/labels{/name}","releases_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/releases{/id}","deployments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/deployments","created_at":"2016-10-13T18:00:19Z","updated_at":"2017-04-26T21:16:50Z","pushed_at":"2017-05-09T15:50:38Z","git_url":"git://github.com/ebanx/woocommerce-gateway-ebanx.git","ssh_url":"git@github.com:ebanx/woocommerce-gateway-ebanx.git","clone_url":"https://github.com/ebanx/woocommerce-gateway-ebanx.git","svn_url":"https://github.com/ebanx/woocommerce-gateway-ebanx","homepage":null,"size":38772,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":25,"forks":1,"open_issues":25,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504"},"html":{"href":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/504"},"issue":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/504"},"comments":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/statuses/391c61257c2d11f6163bbbac9fa0c40c7ad999ce"}}}}
{"actor":{"display_login":"codacy-bot"}}