{"action":"created","comment":{"url":"https://api.github.com/repos/simpspector/analyser/pulls/comments/38261886","id":38261886,"diff_hunk":"@@ -0,0 +1,48 @@\n+<?php\n+\n+namespace SimpSpector\\Analyser\\Loader;\n+\n+use SimpSpector\\Analyser\\Config\\NodeBuilder;\n+use SimpSpector\\Analyser\\Config\\TreeFactory;\n+use SimpSpector\\Analyser\\Exception\\MissingSimpSpectorConfigException;\n+use SimpSpector\\Analyser\\Repository\\RepositoryInterface;\n+use Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\n+use Symfony\\Component\\Config\\Definition\\NodeInterface;\n+\n+/**\n+ * @author David Badura <d.a.badura@gmail.com>\n+ */\n+class DefaultConfigLoader implements LoaderInterface\n+{\n+    /**\n+     * @var LoaderInterface\n+     */\n+    private $loader;\n+    /**\n+     * @var string\n+     */\n+    private $default;\n+\n+    /**\n+     * @param LoaderInterface $loader\n+     * @param string $default","path":"src/Loader/DefaultConfigLoader.php","position":28,"original_position":28,"commit_id":"e136ba86a6291855643767e4466d9e4bcdc99bdb","original_commit_id":"e136ba86a6291855643767e4466d9e4bcdc99bdb","user":{"login":"tolry","id":259744,"avatar_url":"https://avatars.githubusercontent.com/u/259744?v=3","gravatar_id":"","url":"https://api.github.com/users/tolry","html_url":"https://github.com/tolry","followers_url":"https://api.github.com/users/tolry/followers","following_url":"https://api.github.com/users/tolry/following{/other_user}","gists_url":"https://api.github.com/users/tolry/gists{/gist_id}","starred_url":"https://api.github.com/users/tolry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolry/subscriptions","organizations_url":"https://api.github.com/users/tolry/orgs","repos_url":"https://api.github.com/users/tolry/repos","events_url":"https://api.github.com/users/tolry/events{/privacy}","received_events_url":"https://api.github.com/users/tolry/received_events","type":"User","site_admin":false},"body":"needs additional comment or more expressive variable name, e.g. 'defaultFilepath'?\r\n","created_at":"2015-08-29T13:13:32Z","updated_at":"2015-08-29T13:13:32Z","html_url":"https://github.com/simpspector/analyser/pull/60#discussion_r38261886","pull_request_url":"https://api.github.com/repos/simpspector/analyser/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/comments/38261886"},"html":{"href":"https://github.com/simpspector/analyser/pull/60#discussion_r38261886"},"pull_request":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/simpspector/analyser/pulls/60","id":43694265,"html_url":"https://github.com/simpspector/analyser/pull/60","diff_url":"https://github.com/simpspector/analyser/pull/60.diff","patch_url":"https://github.com/simpspector/analyser/pull/60.patch","issue_url":"https://api.github.com/repos/simpspector/analyser/issues/60","number":60,"state":"open","locked":false,"title":"default config","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":"","created_at":"2015-08-29T13:01:35Z","updated_at":"2015-08-29T13:13:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"399c54e8e6fe1e16a198333ffb5c4afdd147ce78","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simpspector/analyser/pulls/60/commits","review_comments_url":"https://api.github.com/repos/simpspector/analyser/pulls/60/comments","review_comment_url":"https://api.github.com/repos/simpspector/analyser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simpspector/analyser/issues/60/comments","statuses_url":"https://api.github.com/repos/simpspector/analyser/statuses/e136ba86a6291855643767e4466d9e4bcdc99bdb","head":{"label":"simpspector:default-config","ref":"default-config","sha":"e136ba86a6291855643767e4466d9e4bcdc99bdb","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-08-29T13:01:35Z","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":720,"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":18,"forks":0,"open_issues":18,"watchers":2,"default_branch":"master"}},"base":{"label":"simpspector:master","ref":"master","sha":"192f95cd7fca029af331f00ee6acdf3581437902","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-08-29T13:01:35Z","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":720,"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":18,"forks":0,"open_issues":18,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/60"},"html":{"href":"https://github.com/simpspector/analyser/pull/60"},"issue":{"href":"https://api.github.com/repos/simpspector/analyser/issues/60"},"comments":{"href":"https://api.github.com/repos/simpspector/analyser/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simpspector/analyser/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/simpspector/analyser/statuses/e136ba86a6291855643767e4466d9e4bcdc99bdb"}}}}