2026-03-19 18:23:04 +01:00
|
|
|
# Local Style Workflow
|
|
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-03-24 20:13:16 +01:00
|
|
|
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose
|
2026-03-19 18:23:04 +01:00
|
|
|
composer cs:fix
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Praktikabler Ablauf
|
|
|
|
|
|
2026-03-24 20:13:16 +01:00
|
|
|
1. Erst Style-Check laufen lassen (`vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose`).
|
2026-03-19 18:23:04 +01:00
|
|
|
2. Danach `cs:fix`.
|
|
|
|
|
3. Nur relevante Diffs uebernehmen, grosse Misch-Diffs vermeiden.
|
|
|
|
|
4. Anschliessend:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
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.
|