{"action":"opened","number":599,"pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/599","id":36008918,"html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/599","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/599.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/599.patch","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/599","number":599,"state":"open","locked":false,"title":"Fix division by zero warning in test report","user":{"login":"loonies","id":109212,"avatar_url":"https://avatars.githubusercontent.com/u/109212?v=3","gravatar_id":"","url":"https://api.github.com/users/loonies","html_url":"https://github.com/loonies","followers_url":"https://api.github.com/users/loonies/followers","following_url":"https://api.github.com/users/loonies/following{/other_user}","gists_url":"https://api.github.com/users/loonies/gists{/gist_id}","starred_url":"https://api.github.com/users/loonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loonies/subscriptions","organizations_url":"https://api.github.com/users/loonies/orgs","repos_url":"https://api.github.com/users/loonies/repos","events_url":"https://api.github.com/users/loonies/events{/privacy}","received_events_url":"https://api.github.com/users/loonies/received_events","type":"User","site_admin":false},"body":"Running sniff tests that doesn't produce any errors will raise\r\n\"Division by zero\" PHP warning while calculating fixable percentage.\r\nThis can happen if we filter out too much tests, or if sniff adds\r\nwarnings only, but not errors.\r\n\r\nI've found that this is [addressed in 3.0] by suppressing message. This\r\nfix will still print the message, but with zeros.\r\n\r\n[addressed in 3.0]: https://github.com/squizlabs/PHP_CodeSniffer/blob/3.0/tests/TestSuite.php#L56-L60","created_at":"2015-05-22T08:13:54Z","updated_at":"2015-05-22T08:13:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/599/commits","review_comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/599/comments","review_comment_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/599/comments","statuses_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/685ddfb64da84d3b5b36bdf274b9ffe2a7205867","head":{"label":"loonies:division-by-zero","ref":"division-by-zero","sha":"685ddfb64da84d3b5b36bdf274b9ffe2a7205867","user":{"login":"loonies","id":109212,"avatar_url":"https://avatars.githubusercontent.com/u/109212?v=3","gravatar_id":"","url":"https://api.github.com/users/loonies","html_url":"https://github.com/loonies","followers_url":"https://api.github.com/users/loonies/followers","following_url":"https://api.github.com/users/loonies/following{/other_user}","gists_url":"https://api.github.com/users/loonies/gists{/gist_id}","starred_url":"https://api.github.com/users/loonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loonies/subscriptions","organizations_url":"https://api.github.com/users/loonies/orgs","repos_url":"https://api.github.com/users/loonies/repos","events_url":"https://api.github.com/users/loonies/events{/privacy}","received_events_url":"https://api.github.com/users/loonies/received_events","type":"User","site_admin":false},"repo":{"id":36057682,"name":"PHP_CodeSniffer","full_name":"loonies/PHP_CodeSniffer","owner":{"login":"loonies","id":109212,"avatar_url":"https://avatars.githubusercontent.com/u/109212?v=3","gravatar_id":"","url":"https://api.github.com/users/loonies","html_url":"https://github.com/loonies","followers_url":"https://api.github.com/users/loonies/followers","following_url":"https://api.github.com/users/loonies/following{/other_user}","gists_url":"https://api.github.com/users/loonies/gists{/gist_id}","starred_url":"https://api.github.com/users/loonies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loonies/subscriptions","organizations_url":"https://api.github.com/users/loonies/orgs","repos_url":"https://api.github.com/users/loonies/repos","events_url":"https://api.github.com/users/loonies/events{/privacy}","received_events_url":"https://api.github.com/users/loonies/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/loonies/PHP_CodeSniffer","description":"PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.","fork":true,"url":"https://api.github.com/repos/loonies/PHP_CodeSniffer","forks_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/forks","keys_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/teams","hooks_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/hooks","issue_events_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/issues/events{/number}","events_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/events","assignees_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/assignees{/user}","branches_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/branches{/branch}","tags_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/tags","blobs_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/git/refs{/sha}","trees_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/statuses/{sha}","languages_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/languages","stargazers_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/stargazers","contributors_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/contributors","subscribers_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/subscribers","subscription_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/subscription","commits_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/commits{/sha}","git_commits_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/git/commits{/sha}","comments_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/comments{/number}","issue_comment_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/issues/comments{/number}","contents_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/contents/{+path}","compare_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/merges","archive_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/downloads","issues_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/issues{/number}","pulls_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/pulls{/number}","milestones_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/milestones{/number}","notifications_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/labels{/name}","releases_url":"https://api.github.com/repos/loonies/PHP_CodeSniffer/releases{/id}","created_at":"2015-05-22T07:10:31Z","updated_at":"2015-05-22T07:10:34Z","pushed_at":"2015-05-22T08:10:09Z","git_url":"git://github.com/loonies/PHP_CodeSniffer.git","ssh_url":"git@github.com:loonies/PHP_CodeSniffer.git","clone_url":"https://github.com/loonies/PHP_CodeSniffer.git","svn_url":"https://github.com/loonies/PHP_CodeSniffer","homepage":"http://pear.php.net/package/PHP_CodeSniffer","size":102145,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"squizlabs:master","ref":"master","sha":"8451638b4c896d5d7aedec240757243b6080625f","user":{"login":"squizlabs","id":997547,"avatar_url":"https://avatars.githubusercontent.com/u/997547?v=3","gravatar_id":"","url":"https://api.github.com/users/squizlabs","html_url":"https://github.com/squizlabs","followers_url":"https://api.github.com/users/squizlabs/followers","following_url":"https://api.github.com/users/squizlabs/following{/other_user}","gists_url":"https://api.github.com/users/squizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/squizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squizlabs/subscriptions","organizations_url":"https://api.github.com/users/squizlabs/orgs","repos_url":"https://api.github.com/users/squizlabs/repos","events_url":"https://api.github.com/users/squizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/squizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":2699935,"name":"PHP_CodeSniffer","full_name":"squizlabs/PHP_CodeSniffer","owner":{"login":"squizlabs","id":997547,"avatar_url":"https://avatars.githubusercontent.com/u/997547?v=3","gravatar_id":"","url":"https://api.github.com/users/squizlabs","html_url":"https://github.com/squizlabs","followers_url":"https://api.github.com/users/squizlabs/followers","following_url":"https://api.github.com/users/squizlabs/following{/other_user}","gists_url":"https://api.github.com/users/squizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/squizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squizlabs/subscriptions","organizations_url":"https://api.github.com/users/squizlabs/orgs","repos_url":"https://api.github.com/users/squizlabs/repos","events_url":"https://api.github.com/users/squizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/squizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/squizlabs/PHP_CodeSniffer","description":"PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.","fork":false,"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","forks_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/forks","keys_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/teams","hooks_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/hooks","issue_events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/events{/number}","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/events","assignees_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/assignees{/user}","branches_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/branches{/branch}","tags_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/tags","blobs_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/refs{/sha}","trees_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/{sha}","languages_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/languages","stargazers_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/stargazers","contributors_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/contributors","subscribers_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/subscribers","subscription_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/subscription","commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/commits{/sha}","git_commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/commits{/sha}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/comments{/number}","issue_comment_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments{/number}","contents_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/contents/{+path}","compare_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/merges","archive_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/downloads","issues_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues{/number}","pulls_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls{/number}","milestones_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/milestones{/number}","notifications_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels{/name}","releases_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/releases{/id}","created_at":"2011-11-03T04:06:24Z","updated_at":"2015-05-22T07:35:45Z","pushed_at":"2015-05-21T05:02:31Z","git_url":"git://github.com/squizlabs/PHP_CodeSniffer.git","ssh_url":"git@github.com:squizlabs/PHP_CodeSniffer.git","clone_url":"https://github.com/squizlabs/PHP_CodeSniffer.git","svn_url":"https://github.com/squizlabs/PHP_CodeSniffer","homepage":"http://pear.php.net/package/PHP_CodeSniffer","size":102145,"stargazers_count":1431,"watchers_count":1431,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":385,"mirror_url":null,"open_issues_count":49,"forks":385,"open_issues":49,"watchers":1431,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/599"},"html":{"href":"https://github.com/squizlabs/PHP_CodeSniffer/pull/599"},"issue":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/599"},"comments":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/599/comments"},"review_comments":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/599/comments"},"review_comment":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/599/commits"},"statuses":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/685ddfb64da84d3b5b36bdf274b9ffe2a7205867"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":1}}