Spiral framework comes with an extension designed to unify the coding style of its components and your applications. The extension code style is based on strict PSR-12 with no exceptions.
Extension repository: https://github.com/spiral/code-style
The actual formatting and style-checking is based on:
To install the extension:
composer require --dev spiral/code-style
To check code-style compliance:
# vendor/bin/spiral-cs check <dir1> <dir2> <file1>.... vendor/bin/spiral-cs check src tests
To automatically fix code-style:
# vendor/bin/spiral-cs fix <dir1> <dir2> <file1>.... vendor/bin/spiral-cs fix src tests
The extensions will force CL endings.