php-cs-fixer-custom-fixers
php-cs-fixer-custom-fixers copied to clipboard
Request: empty method to single line
Hello,
I have a request.
I'd like to make the following code.
public function test()
{
}
to
public function test() {}
,similar to ConstructorEmptyBracesFixer
, as the former takes too much space. Would be appreciated if you could create one for such a case.
Thank you for your consideration.
I wonder what about these cases:
function a(): void
{
}
function b(
int $x
)
{
}
not mentioning other cases.
Maybe it is worth raising a discussion in a main repo.
I'd like to see them being converted to:
function a(): void {}
function b( int $x ) {}