Files
breadcrumb-the-shire/.agents/skills/starterkit-php-style-ci/references/style-workflow.md
fs 0bf7f62fd8 chore: move php-cs-fixer config into tools
- 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
2026-04-01 16:38:58 +02:00

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

  1. 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).
  2. Danach cs:fix.
  3. Nur relevante Diffs uebernehmen, grosse Misch-Diffs vermeiden.
  4. Anschliessend:
docker compose exec php vendor/bin/phpunit
docker compose exec php vendor/bin/phpstan analyse -c phpstan.neon --no-progress

Review-Fokus

  1. ordered_imports, braces_position, statement_indentation.
  2. Kein semantischer Drift bei anon classes, arrow functions, array maps.