diff --git a/composer.json b/composer.json index 7d96925..5696bfe 100644 --- a/composer.json +++ b/composer.json @@ -52,6 +52,12 @@ "@php artisan key:generate --ansi", "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"", "@php artisan migrate --graceful --ansi" + ], + "pint": [ + "./vendor/bin/pint" + ], + "pint-test": [ + "./vendor/bin/pint --test" ] }, "extra": { diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..dca9072 --- /dev/null +++ b/pint.json @@ -0,0 +1,9 @@ +{ + "preset": "laravel", + "rules": { + "simplified_null_return": true, + "braces": false, + "new_with_braces": true, + "no_unused_imports": true + } +}