{"action":"created","comment":{"url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/comments/48512398","id":48512398,"diff_hunk":"@@ -0,0 +1,32 @@\n+<?php\n+\n+namespace ObjectCalisthenics\\Tests;\n+\n+use PHP_CodeSniffer;\n+\n+final class CodeSnifferRunner\n+{\n+    /**\n+     * @var PHP_CodeSniffer\n+     */\n+    private $codeSniffer;\n+\n+    public function __construct()\n+    {\n+        $this->codeSniffer = new PHP_CodeSniffer();\n+    }\n+\n+    /**\n+     * @param string $testedFile\n+     * @param string $sniffName\n+     *\n+     * @return int\n+     */\n+    public function detectErrorCountInFileForSniff($testedFile, $sniffName)\n+    {\n+        $this->codeSniffer->initStandard('../../../../../src/ObjectCalisthenics', [$sniffName]);","path":"tests/CodeSnifferRunner.php","position":27,"original_position":27,"commit_id":"dfd9f08ad8ec29bce89b2ff2a82b4ae4fb660477","original_commit_id":"dfd9f08ad8ec29bce89b2ff2a82b4ae4fb660477","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"body":"Thanks, it works.","created_at":"2015-12-28T23:15:21Z","updated_at":"2015-12-28T23:15:21Z","html_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/pull/21#discussion_r48512398","pull_request_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/comments/48512398"},"html":{"href":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/pull/21#discussion_r48512398"},"pull_request":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21","id":53598527,"html_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/pull/21","diff_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/pull/21.diff","patch_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/pull/21.patch","issue_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/21","number":21,"state":"open","locked":false,"title":"[WIP] Make it work with current tools + apply some exercise :)","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"body":"- [x] use stable PHPCS\r\n- [ ] test exercise coding standard on itself and make tests pass\r\n- [x] Travis added\r\n- [x] Scrutinizer added\r\n- [ ] fix coverage to 100 % (Abstract class failes)\r\n- [ ] fix code quality to 10\r\n- [ ] replace Squiz rules (fails in checking what is wanted), with own\r\n\r\n### Should be tested\r\n\r\n- [ ] use it in some other package, make sure phpcs autoloading works","created_at":"2015-12-14T17:53:43Z","updated_at":"2015-12-28T23:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74250bd21df62ec71dd12b2eefb34e24e673ff9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21/commits","review_comments_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21/comments","review_comment_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/21/comments","statuses_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/statuses/dfd9f08ad8ec29bce89b2ff2a82b4ae4fb660477","head":{"label":"TomasVotruba:upgrade","ref":"upgrade","sha":"dfd9f08ad8ec29bce89b2ff2a82b4ae4fb660477","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"repo":{"id":47881045,"name":"phpcs-calisthenics-rules","full_name":"TomasVotruba/phpcs-calisthenics-rules","owner":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TomasVotruba/phpcs-calisthenics-rules","description":"PHP CodeSniffer Object Calisthenics Sniffs/Rules","fork":true,"url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules","forks_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/forks","keys_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/teams","hooks_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/hooks","issue_events_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/issues/events{/number}","events_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/events","assignees_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/assignees{/user}","branches_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/branches{/branch}","tags_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/tags","blobs_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/git/refs{/sha}","trees_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/statuses/{sha}","languages_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/languages","stargazers_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/stargazers","contributors_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/contributors","subscribers_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/subscribers","subscription_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/subscription","commits_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/commits{/sha}","git_commits_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/git/commits{/sha}","comments_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/comments{/number}","issue_comment_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/issues/comments{/number}","contents_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/contents/{+path}","compare_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/merges","archive_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/downloads","issues_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/issues{/number}","pulls_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/pulls{/number}","milestones_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/milestones{/number}","notifications_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/labels{/name}","releases_url":"https://api.github.com/repos/TomasVotruba/phpcs-calisthenics-rules/releases{/id}","created_at":"2015-12-12T14:23:10Z","updated_at":"2015-12-12T14:23:11Z","pushed_at":"2015-12-14T11:45:59Z","git_url":"git://github.com/TomasVotruba/phpcs-calisthenics-rules.git","ssh_url":"git@github.com:TomasVotruba/phpcs-calisthenics-rules.git","clone_url":"https://github.com/TomasVotruba/phpcs-calisthenics-rules.git","svn_url":"https://github.com/TomasVotruba/phpcs-calisthenics-rules","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"upgrade"}},"base":{"label":"object-calisthenics:master","ref":"master","sha":"51b3b42033530ee32e6dbe114eb1ade5f94fab92","user":{"login":"object-calisthenics","id":8452398,"avatar_url":"https://avatars.githubusercontent.com/u/8452398?v=3","gravatar_id":"","url":"https://api.github.com/users/object-calisthenics","html_url":"https://github.com/object-calisthenics","followers_url":"https://api.github.com/users/object-calisthenics/followers","following_url":"https://api.github.com/users/object-calisthenics/following{/other_user}","gists_url":"https://api.github.com/users/object-calisthenics/gists{/gist_id}","starred_url":"https://api.github.com/users/object-calisthenics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object-calisthenics/subscriptions","organizations_url":"https://api.github.com/users/object-calisthenics/orgs","repos_url":"https://api.github.com/users/object-calisthenics/repos","events_url":"https://api.github.com/users/object-calisthenics/events{/privacy}","received_events_url":"https://api.github.com/users/object-calisthenics/received_events","type":"Organization","site_admin":false},"repo":{"id":22968104,"name":"phpcs-calisthenics-rules","full_name":"object-calisthenics/phpcs-calisthenics-rules","owner":{"login":"object-calisthenics","id":8452398,"avatar_url":"https://avatars.githubusercontent.com/u/8452398?v=3","gravatar_id":"","url":"https://api.github.com/users/object-calisthenics","html_url":"https://github.com/object-calisthenics","followers_url":"https://api.github.com/users/object-calisthenics/followers","following_url":"https://api.github.com/users/object-calisthenics/following{/other_user}","gists_url":"https://api.github.com/users/object-calisthenics/gists{/gist_id}","starred_url":"https://api.github.com/users/object-calisthenics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object-calisthenics/subscriptions","organizations_url":"https://api.github.com/users/object-calisthenics/orgs","repos_url":"https://api.github.com/users/object-calisthenics/repos","events_url":"https://api.github.com/users/object-calisthenics/events{/privacy}","received_events_url":"https://api.github.com/users/object-calisthenics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules","description":"PHP CodeSniffer Object Calisthenics Sniffs/Rules","fork":false,"url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules","forks_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/forks","keys_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/teams","hooks_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/hooks","issue_events_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/events{/number}","events_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/events","assignees_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/assignees{/user}","branches_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/branches{/branch}","tags_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/tags","blobs_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/git/refs{/sha}","trees_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/statuses/{sha}","languages_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/languages","stargazers_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/stargazers","contributors_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/contributors","subscribers_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/subscribers","subscription_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/subscription","commits_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/commits{/sha}","git_commits_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/git/commits{/sha}","comments_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/comments{/number}","issue_comment_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/comments{/number}","contents_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/contents/{+path}","compare_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/merges","archive_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/downloads","issues_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues{/number}","pulls_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls{/number}","milestones_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/milestones{/number}","notifications_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/labels{/name}","releases_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/releases{/id}","created_at":"2014-08-14T20:46:49Z","updated_at":"2015-12-28T00:53:42Z","pushed_at":"2015-12-14T17:53:44Z","git_url":"git://github.com/object-calisthenics/phpcs-calisthenics-rules.git","ssh_url":"git@github.com:object-calisthenics/phpcs-calisthenics-rules.git","clone_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules.git","svn_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules","homepage":null,"size":338,"stargazers_count":189,"watchers_count":189,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":14,"forks":20,"open_issues":14,"watchers":189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21"},"html":{"href":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/pull/21"},"issue":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/21"},"comments":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/statuses/dfd9f08ad8ec29bce89b2ff2a82b4ae4fb660477"}}}}