- relocate .php-cs-fixer.dist.php to tools/php-cs-fixer/.php-cs-fixer.dist.php - update composer scripts, docs, quality gates, and style skill references - keep finder scope stable via project-root resolution - fix pre-existing unused imports reported by php-cs-fixer
740 B
740 B
Local Style Workflow
Commands
vendor/bin/php-cs-fixer fix --config=tools/php-cs-fixer/.php-cs-fixer.dist.php --dry-run --diff --verbose
composer cs:fix
Praktikabler Ablauf
- Erst Style-Check laufen lassen (
vendor/bin/php-cs-fixer fix --config=tools/php-cs-fixer/.php-cs-fixer.dist.php --dry-run --diff --verbose). - Danach
cs:fix. - Nur relevante Diffs uebernehmen, grosse Misch-Diffs vermeiden.
- Anschliessend:
docker compose exec php vendor/bin/phpunit
docker compose exec php vendor/bin/phpstan analyse -c phpstan.neon --no-progress
Review-Fokus
ordered_imports,braces_position,statement_indentation.- Kein semantischer Drift bei anon classes, arrow functions, array maps.