{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/466","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/466/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/466/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/466","id":55991625,"number":466,"title":"PHPCS Fixer issue when there is no space after colon  ","user":{"login":"sertand","id":997564,"avatar_url":"https://avatars.githubusercontent.com/u/997564?v=3","gravatar_id":"","url":"https://api.github.com/users/sertand","html_url":"https://github.com/sertand","followers_url":"https://api.github.com/users/sertand/followers","following_url":"https://api.github.com/users/sertand/following{/other_user}","gists_url":"https://api.github.com/users/sertand/gists{/gist_id}","starred_url":"https://api.github.com/users/sertand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sertand/subscriptions","organizations_url":"https://api.github.com/users/sertand/orgs","repos_url":"https://api.github.com/users/sertand/repos","events_url":"https://api.github.com/users/sertand/events{/privacy}","received_events_url":"https://api.github.com/users/sertand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-30T03:49:22Z","updated_at":"2015-01-30T08:04:41Z","closed_at":null,"body":"When fixing the following code PHPCS adds extra spaces between the string and the closing brace. Fixer works fine when there is a single space after phpcs: \r\n```js\r\n// Original code:\r\nfn.phpcs(\r\n    {phpcs:'rocks my world'}\r\n);\r\n\r\n// After running fixer:\r\nfn.phpcs(\r\n    {phpcs:'rocks my world'    }\r\n);\r\n"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/72166917","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/466#issuecomment-72166917","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/466","id":72166917,"user":{"login":"gsherwood","id":185976,"avatar_url":"https://avatars.githubusercontent.com/u/185976?v=3","gravatar_id":"","url":"https://api.github.com/users/gsherwood","html_url":"https://github.com/gsherwood","followers_url":"https://api.github.com/users/gsherwood/followers","following_url":"https://api.github.com/users/gsherwood/following{/other_user}","gists_url":"https://api.github.com/users/gsherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/gsherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsherwood/subscriptions","organizations_url":"https://api.github.com/users/gsherwood/orgs","repos_url":"https://api.github.com/users/gsherwood/repos","events_url":"https://api.github.com/users/gsherwood/events{/privacy}","received_events_url":"https://api.github.com/users/gsherwood/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T08:04:41Z","updated_at":"2015-01-30T08:04:41Z","body":"Looks to be latest PHPCS with Squiz standard running over JS.\r\n\r\nThe fixable error is `There must be a single space after the colon in a property/label declaration` but the fix is incorrect when there are no spaces after the colon."}}