{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1539","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1539/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1539/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1539/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1539","id":118708746,"number":1539,"title":"Feature request: echo/print/case without parantheses","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T21:39:04Z","updated_at":"2015-11-25T09:05:18Z","closed_at":null,"body":"similar to `IncludeFixer`: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/1.11/Symfony/CS/Fixer/Symfony/IncludeFixer.php\r\n\r\n```php\r\necho('foo');\r\nprint('foo');\r\n\r\nswitch ($foo) {\r\n    case('bar'): \r\n        // ..\r\n        break;\r\n}\r\n```\r\n\r\nto:\r\n\r\n```php\r\necho 'foo';\r\nprint 'foo';\r\n\r\nswitch ($foo) {\r\n    case 'bar': \r\n        // ..\r\n        break;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/159541538","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1539#issuecomment-159541538","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1539","id":159541538,"user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars.githubusercontent.com/u/10462973?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T09:05:18Z","updated_at":"2015-11-25T09:05:18Z","body":"This would be 3 fixers I guess @keradus ?\r\n\r\nLittle note for myself for test cases:\r\n```php\r\n$a = 5.1;\r\n$b = 1.0;\r\nswitch($a) {\r\n    case (int) $a < 1 : {\r\n        echo 'leave alone';\r\n        break;\r\n    }\r\n    case ($a < 2)/* test */: {\r\n        echo 'fix 1';\r\n        break;\r\n    }\r\n    case (3) : {\r\n        echo 'fix 2';\r\n        break;\r\n    }\r\n    case /**/(/**/ // test\r\n        4\r\n        /**/)//\r\n        /**/: {\r\n        echo 'fix 3';\r\n        break;\r\n    }\r\n    case (((int)$b) + 4.1): {\r\n        echo 'fix 4';\r\n        break;\r\n    }\r\n    case ($b + 1) * 2: {\r\n        echo 'leave alone';\r\n        break;\r\n    }\r\n}\r\n```"}}