Laravel Pint: How to make formatting of empty classes and methods the same as non-empty ones? #52238
Unanswered
ulin-evgeny
asked this question in
Q&A
Replies: 1 comment
-
The formatting probably caused by the change in this PR. Setting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is the code for my
pint.json
file:The project has this code:
Laravel Pint changes it to this code:
The same goes for the class. The project has this code:
Laravel Pint changes it to this code:
I do not like it. I want the formatting of empty classes and methods to look the same as non-empty ones. How can I prevent Laravel Pint from removing newlines from empty methods and classes?
Beta Was this translation helpful? Give feedback.
All reactions