{"action":"created","issue":{"url":"https://api.github.com/repos/puli/issues/issues/92","labels_url":"https://api.github.com/repos/puli/issues/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/puli/issues/issues/92/comments","events_url":"https://api.github.com/repos/puli/issues/issues/92/events","html_url":"https://github.com/puli/issues/issues/92","id":96782229,"number":92,"title":"Fix Scrutinizer issues","user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puli/issues/labels/Help%20Wanted","name":"Help Wanted","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-23T10:34:17Z","updated_at":"2015-07-27T07:22:02Z","closed_at":null,"body":"Scrutinizer's issues for the different Puli repositories should be fixed:\r\n\r\n* https://scrutinizer-ci.com/g/puli/repository/issues/1.0\r\n* https://scrutinizer-ci.com/g/puli/discovery/issues/master\r\n* https://scrutinizer-ci.com/g/puli/url-generator/issues/master\r\n* https://scrutinizer-ci.com/g/puli/manager/issues/master\r\n* https://scrutinizer-ci.com/g/puli/cli/issues/master\r\n* https://scrutinizer-ci.com/g/puli/composer-plugin/issues/master\r\n\r\nHelp and PRs appreciated, even if they fix just some issues."},"comment":{"url":"https://api.github.com/repos/puli/issues/issues/comments/125109373","html_url":"https://github.com/puli/issues/issues/92#issuecomment-125109373","issue_url":"https://api.github.com/repos/puli/issues/issues/92","id":125109373,"user":{"login":"webmozart","id":176399,"avatar_url":"https://avatars.githubusercontent.com/u/176399?v=3","gravatar_id":"","url":"https://api.github.com/users/webmozart","html_url":"https://github.com/webmozart","followers_url":"https://api.github.com/users/webmozart/followers","following_url":"https://api.github.com/users/webmozart/following{/other_user}","gists_url":"https://api.github.com/users/webmozart/gists{/gist_id}","starred_url":"https://api.github.com/users/webmozart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmozart/subscriptions","organizations_url":"https://api.github.com/users/webmozart/orgs","repos_url":"https://api.github.com/users/webmozart/repos","events_url":"https://api.github.com/users/webmozart/events{/privacy}","received_events_url":"https://api.github.com/users/webmozart/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T07:22:02Z","updated_at":"2015-07-27T07:22:02Z","body":"@SenseException We need code to turn a URL into a relative URL. That is, something like:\r\n\r\n```php\r\nUrl::makeRelative('/images/logo.png', '/css/style.css');\r\n// => ../images/logo.png\r\n\r\nUrl::makeRelative('http://example.com/images/logo.png', 'http://example.com/css/style.css');\r\n// => ../images/logo.png\r\n```\r\n\r\nI guess the best place to add this class is https://github.com/webmozart/path-util, as we can reuse the functionality of the `Path` class. Do you want to work on that?"}}