{"action":"created","comment":{"url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/comments/177269295","pull_request_review_id":107112136,"id":177269295,"diff_hunk":"@@ -1094,57 +1107,63 @@ protected function process_response($request, $order)\n \t\t}\n \n \t\t// Save post's meta fields\n-\t\t$this->save_order_meta_fields($order, $request);\n+\t\t$this->save_order_meta_fields( $order, $request );\n \n \t\t// Save user's fields\n-\t\t$this->save_user_meta_fields($order);\n+\t\t$this->save_user_meta_fields( $order );\n \n-\t\tdo_action('ebanx_process_response', $order);\n+\t\tdo_action( 'ebanx_process_response', $order );\n \t}\n \n \t/**\n \t * Create the hooks to process cash payments\n \t *\n \t * @param  array  $codes\n-\t * @param  string $notificationType     The type of the description\n+\t * @param  string $notification_type     The type of the description.\n \t * @return WC_Order\n \t */\n-\tfinal public function process_hook(array $codes, $notificationType)\n-\t{\n-\t\tdo_action('ebanx_before_process_hook', $codes, $notificationType);\n+\tfinal public function process_hook( array $codes, $notification_type ) {","path":"gateways/class-wc-ebanx-gateway.php","position":211,"original_position":211,"commit_id":"6ebc2c2ec48d01d90b21424c4ab5e1f3d21f046b","original_commit_id":"6ebc2c2ec48d01d90b21424c4ab5e1f3d21f046b","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","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://app.codacy.com/assets/images/favicon.png) Issue found: [process_hook accesses the super-global variable $_GET.](https://app.codacy.com/app/EBANX/woocommerce-gateway-ebanx/pullRequest?prid=1476341)","created_at":"2018-03-26T23:51:24Z","updated_at":"2018-03-26T23:51:24Z","html_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/650#discussion_r177269295","pull_request_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/comments/177269295"},"html":{"href":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/650#discussion_r177269295"},"pull_request":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650"}}},"pull_request":{"url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650","id":177596947,"html_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/650","diff_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/650.diff","patch_url":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/650.patch","issue_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/650","number":650,"state":"open","locked":false,"title":"Feature/one click subscription","user":{"login":"pblwlln","id":18632496,"avatar_url":"https://avatars2.githubusercontent.com/u/18632496?v=4","gravatar_id":"","url":"https://api.github.com/users/pblwlln","html_url":"https://github.com/pblwlln","followers_url":"https://api.github.com/users/pblwlln/followers","following_url":"https://api.github.com/users/pblwlln/following{/other_user}","gists_url":"https://api.github.com/users/pblwlln/gists{/gist_id}","starred_url":"https://api.github.com/users/pblwlln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pblwlln/subscriptions","organizations_url":"https://api.github.com/users/pblwlln/orgs","repos_url":"https://api.github.com/users/pblwlln/repos","events_url":"https://api.github.com/users/pblwlln/events{/privacy}","received_events_url":"https://api.github.com/users/pblwlln/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-26T23:46:25Z","updated_at":"2018-03-26T23:51:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a63e9c4e82af7d5f4ce99169b63e7ac8e0050cb0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andercampanha","id":25743015,"avatar_url":"https://avatars2.githubusercontent.com/u/25743015?v=4","gravatar_id":"","url":"https://api.github.com/users/andercampanha","html_url":"https://github.com/andercampanha","followers_url":"https://api.github.com/users/andercampanha/followers","following_url":"https://api.github.com/users/andercampanha/following{/other_user}","gists_url":"https://api.github.com/users/andercampanha/gists{/gist_id}","starred_url":"https://api.github.com/users/andercampanha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andercampanha/subscriptions","organizations_url":"https://api.github.com/users/andercampanha/orgs","repos_url":"https://api.github.com/users/andercampanha/repos","events_url":"https://api.github.com/users/andercampanha/events{/privacy}","received_events_url":"https://api.github.com/users/andercampanha/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650/commits","review_comments_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650/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/650/comments","statuses_url":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/statuses/6ebc2c2ec48d01d90b21424c4ab5e1f3d21f046b","head":{"label":"ebanx:feature/one-click-subscription","ref":"feature/one-click-subscription","sha":"6ebc2c2ec48d01d90b21424c4ab5e1f3d21f046b","user":{"login":"ebanx","id":5168667,"avatar_url":"https://avatars3.githubusercontent.com/u/5168667?v=4","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://avatars3.githubusercontent.com/u/5168667?v=4","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":"EBANX Plugin for WooCommerce","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":"2018-03-26T17:28:12Z","pushed_at":"2018-03-26T23:49:47Z","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":"https://developers.ebanx.com/integrations/extensions-and-plugins/woocommerce-plugin/","size":34700,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":21,"watchers":3,"default_branch":"master"}},"base":{"label":"ebanx:master","ref":"master","sha":"7f6aba58f7bd3ae57b9c0625d723f90735fcb810","user":{"login":"ebanx","id":5168667,"avatar_url":"https://avatars3.githubusercontent.com/u/5168667?v=4","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://avatars3.githubusercontent.com/u/5168667?v=4","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":"EBANX Plugin for WooCommerce","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":"2018-03-26T17:28:12Z","pushed_at":"2018-03-26T23:49:47Z","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":"https://developers.ebanx.com/integrations/extensions-and-plugins/woocommerce-plugin/","size":34700,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":21,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650"},"html":{"href":"https://github.com/ebanx/woocommerce-gateway-ebanx/pull/650"},"issue":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/650"},"comments":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/issues/650/comments"},"review_comments":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/pulls/650/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/650/commits"},"statuses":{"href":"https://api.github.com/repos/ebanx/woocommerce-gateway-ebanx/statuses/6ebc2c2ec48d01d90b21424c4ab5e1f3d21f046b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}