As developers, we understand the importance of code readability. A well-structured and easy-to-read codebase not only helps us understand our own code better but also makes it easier for other developers to contribute and maintain it.

By default, Laravel Pint's phpdoc_line_span rule enforces a multi-line format for PHPDoc comments.

However, sometimes we might have a one-liner PHPDoc comment, and in such cases, we can improve the readability of our code by using Laravel Pint's phpdoc_line_span rule to enforce a single-line format for PHPDoc comments.

By using Laravel Pint's phpdoc_line_span rule, we can improve the readability of our codebase by enforcing a consistent and easy-to-read format for one-liner PHPDoc comments.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners