This repository contains ruleset for static analyses tools. Currently supported:
Current codestyle is PSR-12.
PHP Codesniffer ruleset is located in config/ruleset.xml
.
PHP CS Fixer ruleset is located in config/.php_cs
To apply it in your project do the following:
composer require --dev spiral/code-style
#vendor/bin/spiral-cs check <dir1> <dir2> <file1>....
vendor/bin/spiral-cs check src tests
#vendor/bin/spiral-cs fix <dir1> <dir2> <file1>....
vendor/bin/spiral-cs fix src tests