{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3245","repository_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3245/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3245/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3245/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3245","id":273165202,"number":3245,"title":"NoEmptyPhpdocFixer keeps spaces after removal","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars1.githubusercontent.com/u/924196?v=4","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},"labels":[{"id":5114732,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-11T18:19:43Z","updated_at":"2017-11-12T00:11:01Z","closed_at":"2017-11-11T20:54:59Z","author_association":"CONTRIBUTOR","body":"When I run `NoEmptyPhpdocFixer` on empty phpdoc, it keeps spaces there:\r\n\r\n```diff\r\n-    /**\r\n-     */\r\n+    \r\n     protected f\r\n```\r\n\r\nI've tried to run it with `BracesFixer` to remove spaces, but with no success.\r\n\r\nWhat should I use?\r\n\r\n- PHP CS Fixer 2.8.1\r\n- PHP 7.1"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/343703889","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/3245#issuecomment-343703889","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3245","id":343703889,"user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars1.githubusercontent.com/u/924196?v=4","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},"created_at":"2017-11-12T00:11:01Z","updated_at":"2017-11-12T00:11:01Z","author_association":"CONTRIBUTOR","body":"So I found a checkers, that does remove trailing spaces: `PHP_CodeSniffer\\Standards\\Squiz\\Sniffs\\WhiteSpace\\SuperfluousWhitespaceSniff`\r\n\r\n![image](https://user-images.githubusercontent.com/924196/32694663-284325b4-c746-11e7-90e7-299d63f5d704.png)\r\n\r\nBut as you see, in finall version it replaces docblock with one empty line. Which is wrong.\r\n\r\nThat's how I get to my original issue, that `NoEmptyPhpdocFixer` replaces docs with spaces.\r\n**It should remove the docs, instead of replacing it with new line.**\r\n\r\nCould we fix that?"}}
{"actor":{"display_login":"TomasVotruba"}}