{"action":"created","comment":{"url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/comments/35085934","id":35085934,"diff_hunk":"@@ -27,6 +27,17 @@ public function testSupport()\n         $this->assertFalse($loader->supports('test.xml'));\n     }\n \n+    public function testEasyLoaderPath()\n+    {\n+        $locator = new FileLocator();\n+        $loader = new YamlFileLoader($locator);\n+\n+        $metadatasAbsolute  = $loader->load( __DIR__ . '/../../../Resources/metadata/extended.yml' )->getMetadatas();\n+        $metadatasEasy = $loader->load( 'extended.yml' )->getMetadatas();","path":"Tests/Metadata/Loader/YamlFileLoaderTest.php","position":10,"original_position":10,"commit_id":"b5e5f1364a757aa9f8997a5289624b656bd73454","original_commit_id":"b5e5f1364a757aa9f8997a5289624b656bd73454","user":{"login":"lennerd","id":1609692,"avatar_url":"https://avatars.githubusercontent.com/u/1609692?v=3","gravatar_id":"","url":"https://api.github.com/users/lennerd","html_url":"https://github.com/lennerd","followers_url":"https://api.github.com/users/lennerd/followers","following_url":"https://api.github.com/users/lennerd/following{/other_user}","gists_url":"https://api.github.com/users/lennerd/gists{/gist_id}","starred_url":"https://api.github.com/users/lennerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lennerd/subscriptions","organizations_url":"https://api.github.com/users/lennerd/orgs","repos_url":"https://api.github.com/users/lennerd/repos","events_url":"https://api.github.com/users/lennerd/events{/privacy}","received_events_url":"https://api.github.com/users/lennerd/received_events","type":"User","site_admin":false},"body":"Can you remove the extra whitespaces in line 35 and line 36?","created_at":"2015-07-21T09:44:18Z","updated_at":"2015-07-21T09:44:18Z","html_url":"https://github.com/lennerd/vipx-bot-detect/pull/21#discussion_r35085934","pull_request_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/comments/35085934"},"html":{"href":"https://github.com/lennerd/vipx-bot-detect/pull/21#discussion_r35085934"},"pull_request":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21","id":38813601,"html_url":"https://github.com/lennerd/vipx-bot-detect/pull/21","diff_url":"https://github.com/lennerd/vipx-bot-detect/pull/21.diff","patch_url":"https://github.com/lennerd/vipx-bot-detect/pull/21.patch","issue_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues/21","number":21,"state":"open","locked":false,"title":"Simplifies YAML file loading","user":{"login":"acmitch","id":4482055,"avatar_url":"https://avatars.githubusercontent.com/u/4482055?v=3","gravatar_id":"","url":"https://api.github.com/users/acmitch","html_url":"https://github.com/acmitch","followers_url":"https://api.github.com/users/acmitch/followers","following_url":"https://api.github.com/users/acmitch/following{/other_user}","gists_url":"https://api.github.com/users/acmitch/gists{/gist_id}","starred_url":"https://api.github.com/users/acmitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmitch/subscriptions","organizations_url":"https://api.github.com/users/acmitch/orgs","repos_url":"https://api.github.com/users/acmitch/repos","events_url":"https://api.github.com/users/acmitch/events{/privacy}","received_events_url":"https://api.github.com/users/acmitch/received_events","type":"User","site_admin":false},"body":"Issue #19 &middot; Updates the `YamlFileLoader` loader to read from `/Resources/metadata/` by default, simplifying usability. An absolute path can still be passed to override the default behavior.\r\n\r\n```php\r\n# Instantiate a BotDetector with the YamlFileLoader instance and path to YAML.\r\n$detector = new Vipx\\BotDetect\\BotDetector($loader, 'extended.yml');\r\n\r\n```\r\n\r\n**NOTE:** This is my second pull request due to complications with the GitHub desktop application. This request has the test cases as requested.","created_at":"2015-06-29T20:25:11Z","updated_at":"2015-07-21T09:44:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e003b57b954c6d4b52e438525386151cf19d11fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21/commits","review_comments_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21/comments","review_comment_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues/21/comments","statuses_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/statuses/b5e5f1364a757aa9f8997a5289624b656bd73454","head":{"label":"acmitch:master","ref":"master","sha":"b5e5f1364a757aa9f8997a5289624b656bd73454","user":{"login":"acmitch","id":4482055,"avatar_url":"https://avatars.githubusercontent.com/u/4482055?v=3","gravatar_id":"","url":"https://api.github.com/users/acmitch","html_url":"https://github.com/acmitch","followers_url":"https://api.github.com/users/acmitch/followers","following_url":"https://api.github.com/users/acmitch/following{/other_user}","gists_url":"https://api.github.com/users/acmitch/gists{/gist_id}","starred_url":"https://api.github.com/users/acmitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmitch/subscriptions","organizations_url":"https://api.github.com/users/acmitch/orgs","repos_url":"https://api.github.com/users/acmitch/repos","events_url":"https://api.github.com/users/acmitch/events{/privacy}","received_events_url":"https://api.github.com/users/acmitch/received_events","type":"User","site_admin":false},"repo":{"id":38269190,"name":"vipx-bot-detect","full_name":"acmitch/vipx-bot-detect","owner":{"login":"acmitch","id":4482055,"avatar_url":"https://avatars.githubusercontent.com/u/4482055?v=3","gravatar_id":"","url":"https://api.github.com/users/acmitch","html_url":"https://github.com/acmitch","followers_url":"https://api.github.com/users/acmitch/followers","following_url":"https://api.github.com/users/acmitch/following{/other_user}","gists_url":"https://api.github.com/users/acmitch/gists{/gist_id}","starred_url":"https://api.github.com/users/acmitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmitch/subscriptions","organizations_url":"https://api.github.com/users/acmitch/orgs","repos_url":"https://api.github.com/users/acmitch/repos","events_url":"https://api.github.com/users/acmitch/events{/privacy}","received_events_url":"https://api.github.com/users/acmitch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/acmitch/vipx-bot-detect","description":"A bot detector written in PHP detecting bots visiting your webservice","fork":true,"url":"https://api.github.com/repos/acmitch/vipx-bot-detect","forks_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/forks","keys_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/teams","hooks_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/hooks","issue_events_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/issues/events{/number}","events_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/events","assignees_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/assignees{/user}","branches_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/branches{/branch}","tags_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/tags","blobs_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/git/refs{/sha}","trees_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/statuses/{sha}","languages_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/languages","stargazers_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/stargazers","contributors_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/contributors","subscribers_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/subscribers","subscription_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/subscription","commits_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/commits{/sha}","git_commits_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/git/commits{/sha}","comments_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/comments{/number}","issue_comment_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/issues/comments{/number}","contents_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/contents/{+path}","compare_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/merges","archive_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/downloads","issues_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/issues{/number}","pulls_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/pulls{/number}","milestones_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/milestones{/number}","notifications_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/labels{/name}","releases_url":"https://api.github.com/repos/acmitch/vipx-bot-detect/releases{/id}","created_at":"2015-06-29T20:19:55Z","updated_at":"2015-06-29T20:19:55Z","pushed_at":"2015-06-29T20:23:31Z","git_url":"git://github.com/acmitch/vipx-bot-detect.git","ssh_url":"git@github.com:acmitch/vipx-bot-detect.git","clone_url":"https://github.com/acmitch/vipx-bot-detect.git","svn_url":"https://github.com/acmitch/vipx-bot-detect","homepage":"","size":133,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lennerd:master","ref":"master","sha":"fd060018c935cc2a98751651605ebc2209ababae","user":{"login":"lennerd","id":1609692,"avatar_url":"https://avatars.githubusercontent.com/u/1609692?v=3","gravatar_id":"","url":"https://api.github.com/users/lennerd","html_url":"https://github.com/lennerd","followers_url":"https://api.github.com/users/lennerd/followers","following_url":"https://api.github.com/users/lennerd/following{/other_user}","gists_url":"https://api.github.com/users/lennerd/gists{/gist_id}","starred_url":"https://api.github.com/users/lennerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lennerd/subscriptions","organizations_url":"https://api.github.com/users/lennerd/orgs","repos_url":"https://api.github.com/users/lennerd/repos","events_url":"https://api.github.com/users/lennerd/events{/privacy}","received_events_url":"https://api.github.com/users/lennerd/received_events","type":"User","site_admin":false},"repo":{"id":5819519,"name":"vipx-bot-detect","full_name":"lennerd/vipx-bot-detect","owner":{"login":"lennerd","id":1609692,"avatar_url":"https://avatars.githubusercontent.com/u/1609692?v=3","gravatar_id":"","url":"https://api.github.com/users/lennerd","html_url":"https://github.com/lennerd","followers_url":"https://api.github.com/users/lennerd/followers","following_url":"https://api.github.com/users/lennerd/following{/other_user}","gists_url":"https://api.github.com/users/lennerd/gists{/gist_id}","starred_url":"https://api.github.com/users/lennerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lennerd/subscriptions","organizations_url":"https://api.github.com/users/lennerd/orgs","repos_url":"https://api.github.com/users/lennerd/repos","events_url":"https://api.github.com/users/lennerd/events{/privacy}","received_events_url":"https://api.github.com/users/lennerd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lennerd/vipx-bot-detect","description":"A bot detector written in PHP detecting bots visiting your webservice","fork":false,"url":"https://api.github.com/repos/lennerd/vipx-bot-detect","forks_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/forks","keys_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/teams","hooks_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/hooks","issue_events_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues/events{/number}","events_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/events","assignees_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/assignees{/user}","branches_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/branches{/branch}","tags_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/tags","blobs_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/git/refs{/sha}","trees_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/statuses/{sha}","languages_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/languages","stargazers_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/stargazers","contributors_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/contributors","subscribers_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/subscribers","subscription_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/subscription","commits_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/commits{/sha}","git_commits_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/git/commits{/sha}","comments_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/comments{/number}","issue_comment_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues/comments{/number}","contents_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/contents/{+path}","compare_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/merges","archive_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/downloads","issues_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues{/number}","pulls_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls{/number}","milestones_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/milestones{/number}","notifications_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/labels{/name}","releases_url":"https://api.github.com/repos/lennerd/vipx-bot-detect/releases{/id}","created_at":"2012-09-15T10:56:34Z","updated_at":"2015-06-10T10:04:02Z","pushed_at":"2015-07-21T09:42:57Z","git_url":"git://github.com/lennerd/vipx-bot-detect.git","ssh_url":"git@github.com:lennerd/vipx-bot-detect.git","clone_url":"https://github.com/lennerd/vipx-bot-detect.git","svn_url":"https://github.com/lennerd/vipx-bot-detect","homepage":"","size":400,"stargazers_count":27,"watchers_count":27,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":4,"forks":12,"open_issues":4,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21"},"html":{"href":"https://github.com/lennerd/vipx-bot-detect/pull/21"},"issue":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues/21"},"comments":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/lennerd/vipx-bot-detect/statuses/b5e5f1364a757aa9f8997a5289624b656bd73454"}}}}