Code Analysis & Testing

Coding Standards

Apply coding standards to all application and tests files

app/vendor/bin/php-cs-fixer fix
npx eslint --fix app/resources/js/**/*.js

or to see the changes before applying

app/vendor/bin/php-cs-fixer fix --diff --dry-run
npx eslint app/resources/js/**/*.js

Static Analysis

app/vendor/bin/psalm

Unit/Feature Tests

app/vendor/bin/phpunit

Code Coverage

app/vendor/bin/phpunit --coverage-text

or generate a more detailed HTML coverage report with

app/vendor/bin/phpunit --coverage-html .coverage

Last updated