extension_builder
extension_builder copied to clipboard
Keep new line after "case" statement
Currently the parser will rewrite case statements that look like this:
case '1':
something();
break;
to
case '1': something();
break;
Is this intended? Keeping a new line after the case statement would improve readability alot imho.
No it is not intended. The code is anytime completely rewritten by the parser & printer. There are some cases where the printer does not behave as wanted (for example line breaks in array definitions etc.) but it is quite hard to implement custom rules...
Have a look at \EBT\ExtensionBuilder\Service\Printer if you want to experiment with customizing the printer behaviour...