{"action":"created","comment":{"url":"https://api.github.com/repos/ammartins/abnamro/pulls/comments/174166038","pull_request_review_id":103471561,"id":174166038,"diff_hunk":"@@ -0,0 +1,53 @@\n+<?php\n+\n+namespace ImporterBundle\\Controller;\n+\n+use Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n+use Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n+\n+use ImporterBundle\\Entity\\Imported;\n+use Symfony\\Component\\Finder\\Finder;\n+\n+// use Symfony\\Bundle\\FrameworkBundle\\Console\\Application;\n+// use Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n+// use Symfony\\Component\\Console\\Input\\ArrayInput;\n+// use Symfony\\Component\\Console\\Output\\BufferedOutput;\n+// use Symfony\\Component\\HttpFoundation\\Response;\n+\n+class DefaultController extends Controller\n+{\n+    /**\n+     * @Route(\"/importer\")\n+     */\n+    public function indexAction()\n+    {\n+        // $kernel = $this->get('kernel');\n+        // $application = new Application($kernel);\n+        // $application->setAutoExit(false);\n+        // exit;\n+        // $application = new Application($kernel);\n+        // $application->setAutoExit(false);\n+\n+        $finder = new Finder();\n+        // Maybe I should make this a bit more secure :P\n+        $finder->files()->in('../data')->name('*.TAB');;\n+\n+        foreach ($finder as $file) {\n+            $path = explode(\"/\", $file->getPath());\n+            $account = $path[count($path)-1];","path":"src/ImporterBundle/Controller/DefaultController.php","position":37,"original_position":37,"commit_id":"9fee97e7799c3191c3d87ef4857221e47eb8fb6f","original_commit_id":"9fee97e7799c3191c3d87ef4857221e47eb8fb6f","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: [Avoid unused local variables such as '$account'.](https://app.codacy.com/app/amanuel-martins/abnamro/pullRequest?prid=1427466)","created_at":"2018-03-13T15:06:19Z","updated_at":"2018-03-13T15:06:20Z","html_url":"https://github.com/ammartins/abnamro/pull/92#discussion_r174166038","pull_request_url":"https://api.github.com/repos/ammartins/abnamro/pulls/92","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ammartins/abnamro/pulls/comments/174166038"},"html":{"href":"https://github.com/ammartins/abnamro/pull/92#discussion_r174166038"},"pull_request":{"href":"https://api.github.com/repos/ammartins/abnamro/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/ammartins/abnamro/pulls/92","id":174677396,"html_url":"https://github.com/ammartins/abnamro/pull/92","diff_url":"https://github.com/ammartins/abnamro/pull/92.diff","patch_url":"https://github.com/ammartins/abnamro/pull/92.patch","issue_url":"https://api.github.com/repos/ammartins/abnamro/issues/92","number":92,"state":"open","locked":false,"title":"Dev","user":{"login":"ammartins","id":617417,"avatar_url":"https://avatars0.githubusercontent.com/u/617417?v=4","gravatar_id":"","url":"https://api.github.com/users/ammartins","html_url":"https://github.com/ammartins","followers_url":"https://api.github.com/users/ammartins/followers","following_url":"https://api.github.com/users/ammartins/following{/other_user}","gists_url":"https://api.github.com/users/ammartins/gists{/gist_id}","starred_url":"https://api.github.com/users/ammartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammartins/subscriptions","organizations_url":"https://api.github.com/users/ammartins/orgs","repos_url":"https://api.github.com/users/ammartins/repos","events_url":"https://api.github.com/users/ammartins/events{/privacy}","received_events_url":"https://api.github.com/users/ammartins/received_events","type":"User","site_admin":false},"body":"Merge a bunch of things :P Might Break the all app so ya","created_at":"2018-03-13T14:28:58Z","updated_at":"2018-03-13T15:06:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc2cdc557562053d5fef91238053c9a5c6cf9e55","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lucasRolff","id":1076243,"avatar_url":"https://avatars2.githubusercontent.com/u/1076243?v=4","gravatar_id":"","url":"https://api.github.com/users/lucasRolff","html_url":"https://github.com/lucasRolff","followers_url":"https://api.github.com/users/lucasRolff/followers","following_url":"https://api.github.com/users/lucasRolff/following{/other_user}","gists_url":"https://api.github.com/users/lucasRolff/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasRolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasRolff/subscriptions","organizations_url":"https://api.github.com/users/lucasRolff/orgs","repos_url":"https://api.github.com/users/lucasRolff/repos","events_url":"https://api.github.com/users/lucasRolff/events{/privacy}","received_events_url":"https://api.github.com/users/lucasRolff/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ammartins/abnamro/pulls/92/commits","review_comments_url":"https://api.github.com/repos/ammartins/abnamro/pulls/92/comments","review_comment_url":"https://api.github.com/repos/ammartins/abnamro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ammartins/abnamro/issues/92/comments","statuses_url":"https://api.github.com/repos/ammartins/abnamro/statuses/9fee97e7799c3191c3d87ef4857221e47eb8fb6f","head":{"label":"ammartins:dev","ref":"dev","sha":"9fee97e7799c3191c3d87ef4857221e47eb8fb6f","user":{"login":"ammartins","id":617417,"avatar_url":"https://avatars0.githubusercontent.com/u/617417?v=4","gravatar_id":"","url":"https://api.github.com/users/ammartins","html_url":"https://github.com/ammartins","followers_url":"https://api.github.com/users/ammartins/followers","following_url":"https://api.github.com/users/ammartins/following{/other_user}","gists_url":"https://api.github.com/users/ammartins/gists{/gist_id}","starred_url":"https://api.github.com/users/ammartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammartins/subscriptions","organizations_url":"https://api.github.com/users/ammartins/orgs","repos_url":"https://api.github.com/users/ammartins/repos","events_url":"https://api.github.com/users/ammartins/events{/privacy}","received_events_url":"https://api.github.com/users/ammartins/received_events","type":"User","site_admin":false},"repo":{"id":58965066,"name":"abnamro","full_name":"ammartins/abnamro","owner":{"login":"ammartins","id":617417,"avatar_url":"https://avatars0.githubusercontent.com/u/617417?v=4","gravatar_id":"","url":"https://api.github.com/users/ammartins","html_url":"https://github.com/ammartins","followers_url":"https://api.github.com/users/ammartins/followers","following_url":"https://api.github.com/users/ammartins/following{/other_user}","gists_url":"https://api.github.com/users/ammartins/gists{/gist_id}","starred_url":"https://api.github.com/users/ammartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammartins/subscriptions","organizations_url":"https://api.github.com/users/ammartins/orgs","repos_url":"https://api.github.com/users/ammartins/repos","events_url":"https://api.github.com/users/ammartins/events{/privacy}","received_events_url":"https://api.github.com/users/ammartins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ammartins/abnamro","description":"Web App to view and manage your Bank accounts (Only for ABNAMRO at the moment)","fork":false,"url":"https://api.github.com/repos/ammartins/abnamro","forks_url":"https://api.github.com/repos/ammartins/abnamro/forks","keys_url":"https://api.github.com/repos/ammartins/abnamro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ammartins/abnamro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ammartins/abnamro/teams","hooks_url":"https://api.github.com/repos/ammartins/abnamro/hooks","issue_events_url":"https://api.github.com/repos/ammartins/abnamro/issues/events{/number}","events_url":"https://api.github.com/repos/ammartins/abnamro/events","assignees_url":"https://api.github.com/repos/ammartins/abnamro/assignees{/user}","branches_url":"https://api.github.com/repos/ammartins/abnamro/branches{/branch}","tags_url":"https://api.github.com/repos/ammartins/abnamro/tags","blobs_url":"https://api.github.com/repos/ammartins/abnamro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ammartins/abnamro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ammartins/abnamro/git/refs{/sha}","trees_url":"https://api.github.com/repos/ammartins/abnamro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ammartins/abnamro/statuses/{sha}","languages_url":"https://api.github.com/repos/ammartins/abnamro/languages","stargazers_url":"https://api.github.com/repos/ammartins/abnamro/stargazers","contributors_url":"https://api.github.com/repos/ammartins/abnamro/contributors","subscribers_url":"https://api.github.com/repos/ammartins/abnamro/subscribers","subscription_url":"https://api.github.com/repos/ammartins/abnamro/subscription","commits_url":"https://api.github.com/repos/ammartins/abnamro/commits{/sha}","git_commits_url":"https://api.github.com/repos/ammartins/abnamro/git/commits{/sha}","comments_url":"https://api.github.com/repos/ammartins/abnamro/comments{/number}","issue_comment_url":"https://api.github.com/repos/ammartins/abnamro/issues/comments{/number}","contents_url":"https://api.github.com/repos/ammartins/abnamro/contents/{+path}","compare_url":"https://api.github.com/repos/ammartins/abnamro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ammartins/abnamro/merges","archive_url":"https://api.github.com/repos/ammartins/abnamro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ammartins/abnamro/downloads","issues_url":"https://api.github.com/repos/ammartins/abnamro/issues{/number}","pulls_url":"https://api.github.com/repos/ammartins/abnamro/pulls{/number}","milestones_url":"https://api.github.com/repos/ammartins/abnamro/milestones{/number}","notifications_url":"https://api.github.com/repos/ammartins/abnamro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ammartins/abnamro/labels{/name}","releases_url":"https://api.github.com/repos/ammartins/abnamro/releases{/id}","deployments_url":"https://api.github.com/repos/ammartins/abnamro/deployments","created_at":"2016-05-16T20:25:34Z","updated_at":"2018-03-12T21:11:00Z","pushed_at":"2018-03-13T14:29:26Z","git_url":"git://github.com/ammartins/abnamro.git","ssh_url":"git@github.com:ammartins/abnamro.git","clone_url":"https://github.com/ammartins/abnamro.git","svn_url":"https://github.com/ammartins/abnamro","homepage":"","size":1111,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ammartins:master","ref":"master","sha":"001771826f5a892caea1933f919463663a011ed9","user":{"login":"ammartins","id":617417,"avatar_url":"https://avatars0.githubusercontent.com/u/617417?v=4","gravatar_id":"","url":"https://api.github.com/users/ammartins","html_url":"https://github.com/ammartins","followers_url":"https://api.github.com/users/ammartins/followers","following_url":"https://api.github.com/users/ammartins/following{/other_user}","gists_url":"https://api.github.com/users/ammartins/gists{/gist_id}","starred_url":"https://api.github.com/users/ammartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammartins/subscriptions","organizations_url":"https://api.github.com/users/ammartins/orgs","repos_url":"https://api.github.com/users/ammartins/repos","events_url":"https://api.github.com/users/ammartins/events{/privacy}","received_events_url":"https://api.github.com/users/ammartins/received_events","type":"User","site_admin":false},"repo":{"id":58965066,"name":"abnamro","full_name":"ammartins/abnamro","owner":{"login":"ammartins","id":617417,"avatar_url":"https://avatars0.githubusercontent.com/u/617417?v=4","gravatar_id":"","url":"https://api.github.com/users/ammartins","html_url":"https://github.com/ammartins","followers_url":"https://api.github.com/users/ammartins/followers","following_url":"https://api.github.com/users/ammartins/following{/other_user}","gists_url":"https://api.github.com/users/ammartins/gists{/gist_id}","starred_url":"https://api.github.com/users/ammartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammartins/subscriptions","organizations_url":"https://api.github.com/users/ammartins/orgs","repos_url":"https://api.github.com/users/ammartins/repos","events_url":"https://api.github.com/users/ammartins/events{/privacy}","received_events_url":"https://api.github.com/users/ammartins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ammartins/abnamro","description":"Web App to view and manage your Bank accounts (Only for ABNAMRO at the moment)","fork":false,"url":"https://api.github.com/repos/ammartins/abnamro","forks_url":"https://api.github.com/repos/ammartins/abnamro/forks","keys_url":"https://api.github.com/repos/ammartins/abnamro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ammartins/abnamro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ammartins/abnamro/teams","hooks_url":"https://api.github.com/repos/ammartins/abnamro/hooks","issue_events_url":"https://api.github.com/repos/ammartins/abnamro/issues/events{/number}","events_url":"https://api.github.com/repos/ammartins/abnamro/events","assignees_url":"https://api.github.com/repos/ammartins/abnamro/assignees{/user}","branches_url":"https://api.github.com/repos/ammartins/abnamro/branches{/branch}","tags_url":"https://api.github.com/repos/ammartins/abnamro/tags","blobs_url":"https://api.github.com/repos/ammartins/abnamro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ammartins/abnamro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ammartins/abnamro/git/refs{/sha}","trees_url":"https://api.github.com/repos/ammartins/abnamro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ammartins/abnamro/statuses/{sha}","languages_url":"https://api.github.com/repos/ammartins/abnamro/languages","stargazers_url":"https://api.github.com/repos/ammartins/abnamro/stargazers","contributors_url":"https://api.github.com/repos/ammartins/abnamro/contributors","subscribers_url":"https://api.github.com/repos/ammartins/abnamro/subscribers","subscription_url":"https://api.github.com/repos/ammartins/abnamro/subscription","commits_url":"https://api.github.com/repos/ammartins/abnamro/commits{/sha}","git_commits_url":"https://api.github.com/repos/ammartins/abnamro/git/commits{/sha}","comments_url":"https://api.github.com/repos/ammartins/abnamro/comments{/number}","issue_comment_url":"https://api.github.com/repos/ammartins/abnamro/issues/comments{/number}","contents_url":"https://api.github.com/repos/ammartins/abnamro/contents/{+path}","compare_url":"https://api.github.com/repos/ammartins/abnamro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ammartins/abnamro/merges","archive_url":"https://api.github.com/repos/ammartins/abnamro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ammartins/abnamro/downloads","issues_url":"https://api.github.com/repos/ammartins/abnamro/issues{/number}","pulls_url":"https://api.github.com/repos/ammartins/abnamro/pulls{/number}","milestones_url":"https://api.github.com/repos/ammartins/abnamro/milestones{/number}","notifications_url":"https://api.github.com/repos/ammartins/abnamro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ammartins/abnamro/labels{/name}","releases_url":"https://api.github.com/repos/ammartins/abnamro/releases{/id}","deployments_url":"https://api.github.com/repos/ammartins/abnamro/deployments","created_at":"2016-05-16T20:25:34Z","updated_at":"2018-03-12T21:11:00Z","pushed_at":"2018-03-13T14:29:26Z","git_url":"git://github.com/ammartins/abnamro.git","ssh_url":"git@github.com:ammartins/abnamro.git","clone_url":"https://github.com/ammartins/abnamro.git","svn_url":"https://github.com/ammartins/abnamro","homepage":"","size":1111,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ammartins/abnamro/pulls/92"},"html":{"href":"https://github.com/ammartins/abnamro/pull/92"},"issue":{"href":"https://api.github.com/repos/ammartins/abnamro/issues/92"},"comments":{"href":"https://api.github.com/repos/ammartins/abnamro/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/ammartins/abnamro/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/ammartins/abnamro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ammartins/abnamro/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/ammartins/abnamro/statuses/9fee97e7799c3191c3d87ef4857221e47eb8fb6f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codacy-bot"}}