Reputation: 1090
I'm using Laravel Pint for code styling in my Laravel project. I have a function with a multi-line comment block that includes various tags such as @description, @author, and @email. When I run Laravel Pint to format my code, the comment block gets formatted, Here's an example of the original comment block:
/**
* @description THis is a function
* @author Arafaht
* @email [email protected]
*/
/**
* @description THis is a function
*
* @author Arafaht
*
* @email [email protected]
*/
As you can see, there are new lines added after the parameters. I need to avoid this formatting. I've checked PHP_CS Fixer docs, but I couldn't find any specific rules or settings related to this. Is there a way to configure Laravel Pint to avoid this? Any insights or suggestions would be greatly appreciated. Thank you!
Upvotes: 0
Views: 942
Reputation: 1090
Disabling phpdoc_separation worked for me:
"phpdoc_separation": false
Upvotes: 0