{"action":"created","comment":{"url":"https://api.github.com/repos/simpspector/analyser/pulls/comments/32175230","id":32175230,"diff_hunk":"@@ -41,14 +44,19 @@ public function __construct(Analyser $analyser, RepositoryInterface $repository,\n      */\n     public static function create($bin = null)\n     {\n-        $buider = (new AnalyserBuilder())\n-            ->setBinaryDir($bin);\n+        $bin = $bin ? rtrim($bin, '/') . '/' : '';","path":"src/Console/Application.php","position":42,"original_position":42,"commit_id":"dd675527dd32c18fea322ea44fc4b245b898105f","original_commit_id":"dd675527dd32c18fea322ea44fc4b245b898105f","user":{"login":"larsborn","id":1826897,"avatar_url":"https://avatars.githubusercontent.com/u/1826897?v=3","gravatar_id":"","url":"https://api.github.com/users/larsborn","html_url":"https://github.com/larsborn","followers_url":"https://api.github.com/users/larsborn/followers","following_url":"https://api.github.com/users/larsborn/following{/other_user}","gists_url":"https://api.github.com/users/larsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/larsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsborn/subscriptions","organizations_url":"https://api.github.com/users/larsborn/orgs","repos_url":"https://api.github.com/users/larsborn/repos","events_url":"https://api.github.com/users/larsborn/events{/privacy}","received_events_url":"https://api.github.com/users/larsborn/received_events","type":"User","site_admin":false},"body":"extract this to a StringUtil or PathHelper?","created_at":"2015-06-10T22:53:24Z","updated_at":"2015-06-10T22:53:24Z","html_url":"https://github.com/simpspector/analyser/pull/38#discussion_r32175230","pull_request_url":"https://api.github.com/repos/simpspector/analyser/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/comments/32175230"},"html":{"href":"https://github.com/simpspector/analyser/pull/38#discussion_r32175230"},"pull_request":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/simpspector/analyser/pulls/38","id":37402120,"html_url":"https://github.com/simpspector/analyser/pull/38","diff_url":"https://github.com/simpspector/analyser/pull/38.diff","patch_url":"https://github.com/simpspector/analyser/pull/38.patch","issue_url":"https://api.github.com/repos/simpspector/analyser/issues/38","number":38,"state":"open","locked":false,"title":"Dependency Injection","user":{"login":"DavidBadura","id":470138,"avatar_url":"https://avatars.githubusercontent.com/u/470138?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBadura","html_url":"https://github.com/DavidBadura","followers_url":"https://api.github.com/users/DavidBadura/followers","following_url":"https://api.github.com/users/DavidBadura/following{/other_user}","gists_url":"https://api.github.com/users/DavidBadura/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBadura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBadura/subscriptions","organizations_url":"https://api.github.com/users/DavidBadura/orgs","repos_url":"https://api.github.com/users/DavidBadura/repos","events_url":"https://api.github.com/users/DavidBadura/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBadura/received_events","type":"User","site_admin":false},"body":"Before this pull request we need to register gadget, listener, subscriber, formatter, importer etc. several times (simpspector & here). with this change we dont need this anymore :wink: ","created_at":"2015-06-10T20:42:10Z","updated_at":"2015-06-10T22:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cf0de1202f7d69ab93f9e202b26d5d3b8886e01","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simpspector/analyser/pulls/38/commits","review_comments_url":"https://api.github.com/repos/simpspector/analyser/pulls/38/comments","review_comment_url":"https://api.github.com/repos/simpspector/analyser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simpspector/analyser/issues/38/comments","statuses_url":"https://api.github.com/repos/simpspector/analyser/statuses/dd675527dd32c18fea322ea44fc4b245b898105f","head":{"label":"simpspector:dependency-injection","ref":"dependency-injection","sha":"dd675527dd32c18fea322ea44fc4b245b898105f","user":{"login":"simpspector","id":11267955,"avatar_url":"https://avatars.githubusercontent.com/u/11267955?v=3","gravatar_id":"","url":"https://api.github.com/users/simpspector","html_url":"https://github.com/simpspector","followers_url":"https://api.github.com/users/simpspector/followers","following_url":"https://api.github.com/users/simpspector/following{/other_user}","gists_url":"https://api.github.com/users/simpspector/gists{/gist_id}","starred_url":"https://api.github.com/users/simpspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpspector/subscriptions","organizations_url":"https://api.github.com/users/simpspector/orgs","repos_url":"https://api.github.com/users/simpspector/repos","events_url":"https://api.github.com/users/simpspector/events{/privacy}","received_events_url":"https://api.github.com/users/simpspector/received_events","type":"Organization","site_admin":false},"repo":{"id":30931414,"name":"analyser","full_name":"simpspector/analyser","owner":{"login":"simpspector","id":11267955,"avatar_url":"https://avatars.githubusercontent.com/u/11267955?v=3","gravatar_id":"","url":"https://api.github.com/users/simpspector","html_url":"https://github.com/simpspector","followers_url":"https://api.github.com/users/simpspector/followers","following_url":"https://api.github.com/users/simpspector/following{/other_user}","gists_url":"https://api.github.com/users/simpspector/gists{/gist_id}","starred_url":"https://api.github.com/users/simpspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpspector/subscriptions","organizations_url":"https://api.github.com/users/simpspector/orgs","repos_url":"https://api.github.com/users/simpspector/repos","events_url":"https://api.github.com/users/simpspector/events{/privacy}","received_events_url":"https://api.github.com/users/simpspector/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simpspector/analyser","description":"this is the analyser component to simpspector/simpspector - all the static code inspection is done here","fork":false,"url":"https://api.github.com/repos/simpspector/analyser","forks_url":"https://api.github.com/repos/simpspector/analyser/forks","keys_url":"https://api.github.com/repos/simpspector/analyser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpspector/analyser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpspector/analyser/teams","hooks_url":"https://api.github.com/repos/simpspector/analyser/hooks","issue_events_url":"https://api.github.com/repos/simpspector/analyser/issues/events{/number}","events_url":"https://api.github.com/repos/simpspector/analyser/events","assignees_url":"https://api.github.com/repos/simpspector/analyser/assignees{/user}","branches_url":"https://api.github.com/repos/simpspector/analyser/branches{/branch}","tags_url":"https://api.github.com/repos/simpspector/analyser/tags","blobs_url":"https://api.github.com/repos/simpspector/analyser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpspector/analyser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpspector/analyser/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpspector/analyser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpspector/analyser/statuses/{sha}","languages_url":"https://api.github.com/repos/simpspector/analyser/languages","stargazers_url":"https://api.github.com/repos/simpspector/analyser/stargazers","contributors_url":"https://api.github.com/repos/simpspector/analyser/contributors","subscribers_url":"https://api.github.com/repos/simpspector/analyser/subscribers","subscription_url":"https://api.github.com/repos/simpspector/analyser/subscription","commits_url":"https://api.github.com/repos/simpspector/analyser/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpspector/analyser/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpspector/analyser/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpspector/analyser/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpspector/analyser/contents/{+path}","compare_url":"https://api.github.com/repos/simpspector/analyser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpspector/analyser/merges","archive_url":"https://api.github.com/repos/simpspector/analyser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpspector/analyser/downloads","issues_url":"https://api.github.com/repos/simpspector/analyser/issues{/number}","pulls_url":"https://api.github.com/repos/simpspector/analyser/pulls{/number}","milestones_url":"https://api.github.com/repos/simpspector/analyser/milestones{/number}","notifications_url":"https://api.github.com/repos/simpspector/analyser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpspector/analyser/labels{/name}","releases_url":"https://api.github.com/repos/simpspector/analyser/releases{/id}","created_at":"2015-02-17T18:40:04Z","updated_at":"2015-03-30T11:44:09Z","pushed_at":"2015-06-10T21:07:07Z","git_url":"git://github.com/simpspector/analyser.git","ssh_url":"git@github.com:simpspector/analyser.git","clone_url":"https://github.com/simpspector/analyser.git","svn_url":"https://github.com/simpspector/analyser","homepage":"","size":472,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":2,"default_branch":"master"}},"base":{"label":"simpspector:master","ref":"master","sha":"6d6bb0c8e9cd7adac4900fa424e86a073d692d3d","user":{"login":"simpspector","id":11267955,"avatar_url":"https://avatars.githubusercontent.com/u/11267955?v=3","gravatar_id":"","url":"https://api.github.com/users/simpspector","html_url":"https://github.com/simpspector","followers_url":"https://api.github.com/users/simpspector/followers","following_url":"https://api.github.com/users/simpspector/following{/other_user}","gists_url":"https://api.github.com/users/simpspector/gists{/gist_id}","starred_url":"https://api.github.com/users/simpspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpspector/subscriptions","organizations_url":"https://api.github.com/users/simpspector/orgs","repos_url":"https://api.github.com/users/simpspector/repos","events_url":"https://api.github.com/users/simpspector/events{/privacy}","received_events_url":"https://api.github.com/users/simpspector/received_events","type":"Organization","site_admin":false},"repo":{"id":30931414,"name":"analyser","full_name":"simpspector/analyser","owner":{"login":"simpspector","id":11267955,"avatar_url":"https://avatars.githubusercontent.com/u/11267955?v=3","gravatar_id":"","url":"https://api.github.com/users/simpspector","html_url":"https://github.com/simpspector","followers_url":"https://api.github.com/users/simpspector/followers","following_url":"https://api.github.com/users/simpspector/following{/other_user}","gists_url":"https://api.github.com/users/simpspector/gists{/gist_id}","starred_url":"https://api.github.com/users/simpspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpspector/subscriptions","organizations_url":"https://api.github.com/users/simpspector/orgs","repos_url":"https://api.github.com/users/simpspector/repos","events_url":"https://api.github.com/users/simpspector/events{/privacy}","received_events_url":"https://api.github.com/users/simpspector/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simpspector/analyser","description":"this is the analyser component to simpspector/simpspector - all the static code inspection is done here","fork":false,"url":"https://api.github.com/repos/simpspector/analyser","forks_url":"https://api.github.com/repos/simpspector/analyser/forks","keys_url":"https://api.github.com/repos/simpspector/analyser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simpspector/analyser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simpspector/analyser/teams","hooks_url":"https://api.github.com/repos/simpspector/analyser/hooks","issue_events_url":"https://api.github.com/repos/simpspector/analyser/issues/events{/number}","events_url":"https://api.github.com/repos/simpspector/analyser/events","assignees_url":"https://api.github.com/repos/simpspector/analyser/assignees{/user}","branches_url":"https://api.github.com/repos/simpspector/analyser/branches{/branch}","tags_url":"https://api.github.com/repos/simpspector/analyser/tags","blobs_url":"https://api.github.com/repos/simpspector/analyser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simpspector/analyser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simpspector/analyser/git/refs{/sha}","trees_url":"https://api.github.com/repos/simpspector/analyser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simpspector/analyser/statuses/{sha}","languages_url":"https://api.github.com/repos/simpspector/analyser/languages","stargazers_url":"https://api.github.com/repos/simpspector/analyser/stargazers","contributors_url":"https://api.github.com/repos/simpspector/analyser/contributors","subscribers_url":"https://api.github.com/repos/simpspector/analyser/subscribers","subscription_url":"https://api.github.com/repos/simpspector/analyser/subscription","commits_url":"https://api.github.com/repos/simpspector/analyser/commits{/sha}","git_commits_url":"https://api.github.com/repos/simpspector/analyser/git/commits{/sha}","comments_url":"https://api.github.com/repos/simpspector/analyser/comments{/number}","issue_comment_url":"https://api.github.com/repos/simpspector/analyser/issues/comments{/number}","contents_url":"https://api.github.com/repos/simpspector/analyser/contents/{+path}","compare_url":"https://api.github.com/repos/simpspector/analyser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simpspector/analyser/merges","archive_url":"https://api.github.com/repos/simpspector/analyser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simpspector/analyser/downloads","issues_url":"https://api.github.com/repos/simpspector/analyser/issues{/number}","pulls_url":"https://api.github.com/repos/simpspector/analyser/pulls{/number}","milestones_url":"https://api.github.com/repos/simpspector/analyser/milestones{/number}","notifications_url":"https://api.github.com/repos/simpspector/analyser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simpspector/analyser/labels{/name}","releases_url":"https://api.github.com/repos/simpspector/analyser/releases{/id}","created_at":"2015-02-17T18:40:04Z","updated_at":"2015-03-30T11:44:09Z","pushed_at":"2015-06-10T21:07:07Z","git_url":"git://github.com/simpspector/analyser.git","ssh_url":"git@github.com:simpspector/analyser.git","clone_url":"https://github.com/simpspector/analyser.git","svn_url":"https://github.com/simpspector/analyser","homepage":"","size":472,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/38"},"html":{"href":"https://github.com/simpspector/analyser/pull/38"},"issue":{"href":"https://api.github.com/repos/simpspector/analyser/issues/38"},"comments":{"href":"https://api.github.com/repos/simpspector/analyser/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/simpspector/analyser/statuses/dd675527dd32c18fea322ea44fc4b245b898105f"}}}}