{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/575","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/575/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/575/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/575","id":71072538,"number":575,"title":"Generic Sniffs for CodeAnalysis and Methods","user":{"login":"jpgerdeman","id":1579014,"avatar_url":"https://avatars.githubusercontent.com/u/1579014?v=3","gravatar_id":"","url":"https://api.github.com/users/jpgerdeman","html_url":"https://github.com/jpgerdeman","followers_url":"https://api.github.com/users/jpgerdeman/followers","following_url":"https://api.github.com/users/jpgerdeman/following{/other_user}","gists_url":"https://api.github.com/users/jpgerdeman/gists{/gist_id}","starred_url":"https://api.github.com/users/jpgerdeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpgerdeman/subscriptions","organizations_url":"https://api.github.com/users/jpgerdeman/orgs","repos_url":"https://api.github.com/users/jpgerdeman/repos","events_url":"https://api.github.com/users/jpgerdeman/events{/privacy}","received_events_url":"https://api.github.com/users/jpgerdeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-26T14:05:47Z","updated_at":"2015-04-26T14:36:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/575","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/575","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/575.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/575.patch"},"body":"The following sniffs are added:\r\n\r\n- **Generic_Sniffs_CodeAnalysis_FunctionLengthSniff**  warns resp. errors on very long functions.\r\n- **Generic_Sniffs_CodeAnalysis_NumberOfMethodsInClassSniff** warns resp. errors, when a class contains a lot of methods.\r\n- **Generic_Sniffs_Functions_SpaceBeforeParenthesisSniff** checks the spacing for a parenthesis in a functions signature.\r\n- **Generic_Sniffs_Methods_ForceVisibilitySniff** checks if the visibility of a class method is defined.\r\n- **Generic_Sniffs_Methods_MethodSignatureSniff** checks if a class methods signature matches a specific pattern (order of tokens)."},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/96392451","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/575#issuecomment-96392451","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/575","id":96392451,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T14:36:50Z","updated_at":"2015-04-26T14:36:50Z","body":"The #540 PR adds proper button to repo homepage, but it's not yet merged. "}}