Closed eerison closed 8 months ago
There is NewlineAfterStatementRector rule for that
You may need to run twice when apply NewlineAfterStatementRector
to ensure everything printed corectly.
Oh, it seems that's not cover use trait, in that case, you need to have new Nop()
after that, ensure that uses only once.
Ahhh I see, well I do not have code style rule applied. But good to know :), if we have a rule to solve this then this can be closed
Thank you for reply <3
In case NewlineAfterStatementRector
don't apply on use trait, the feature should be on NewlineAfterStatementRector
is there any way to add a blank like between trait and method?
this rule https://github.com/rectorphp/rector-phpunit/blob/main/docs/rector_rules_overview.md#addprophecytraitrector
Should apply
But it is not adding this blank line after trait.
Should it be handled here or other tool should do it like phpcs?