{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/489","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/489/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/489/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/489","id":57572412,"number":489,"title":"PSR2 - blanks before and after operators","user":{"login":"legionth","id":1578709,"avatar_url":"https://avatars.githubusercontent.com/u/1578709?v=3","gravatar_id":"","url":"https://api.github.com/users/legionth","html_url":"https://github.com/legionth","followers_url":"https://api.github.com/users/legionth/followers","following_url":"https://api.github.com/users/legionth/following{/other_user}","gists_url":"https://api.github.com/users/legionth/gists{/gist_id}","starred_url":"https://api.github.com/users/legionth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legionth/subscriptions","organizations_url":"https://api.github.com/users/legionth/orgs","repos_url":"https://api.github.com/users/legionth/repos","events_url":"https://api.github.com/users/legionth/events{/privacy}","received_events_url":"https://api.github.com/users/legionth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-13T08:34:10Z","updated_at":"2015-02-13T09:45:43Z","closed_at":null,"body":"Hi,\r\n\r\nCurrently there is no rule to find blanks before and after operators.\r\nWe are currently using something like this:\r\n```php\r\n $link = '?'.build_query(array($this->getName()=>$value)+(is_array($overview) ? $overview : $overview->getArguments()),'','&amp;');\r\n```\r\nPSR2 demands whitespace around operators like . and + ."},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/74228741","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/489#issuecomment-74228741","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/489","id":74228741,"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-02-13T09:45:43Z","updated_at":"2015-02-13T09:45:43Z","body":"I'm pretty sure PSR2 does not specify any rule like this. In the conclusion, they explicitly say that operators are intentionally omitted: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#7-conclusion"}}