Adds php-cs-fixer as a dev dependency with PSR-12 configuration, adds a CI check, auto-fixes existing violations, and documents the tooling in the readme.
Changes
composer.json — Added friendsofphp/php-cs-fixer to require-dev
.php-cs-fixer.dist.php — New config using @PSR12 ruleset, excluding var/ and vendor/
.gitea/workflows/tests.yaml — Added Run php-cs-fixer dry-run step between dependency installation and tests
readme.md — Added Development section with Code Style and Running Tests subsections
.gitignore — Symfony recipe added entries for local php-cs-fixer override and cache
✅php vendor/bin/php-cs-fixer fix --dry-run — 0 files need fixing
✅php vendor/bin/phpunit — All 222 tests pass (469 assertions)
## Summary
Adds `php-cs-fixer` as a dev dependency with PSR-12 configuration, adds a CI check, auto-fixes existing violations, and documents the tooling in the readme.
## Changes
- **`composer.json`** — Added `friendsofphp/php-cs-fixer` to `require-dev`
- **`.php-cs-fixer.dist.php`** — New config using `@PSR12` ruleset, excluding `var/` and `vendor/`
- **`.gitea/workflows/tests.yaml`** — Added `Run php-cs-fixer` dry-run step between dependency installation and tests
- **`readme.md`** — Added Development section with Code Style and Running Tests subsections
- **`.gitignore`** — Symfony recipe added entries for local php-cs-fixer override and cache
- **58 PHP source/test files** — Auto-fixed PSR-12 violations (formatting only, no logic changes)
## Verification
- ✅ `php vendor/bin/php-cs-fixer fix --dry-run` — 0 files need fixing
- ✅ `php vendor/bin/phpunit` — All 222 tests pass (469 assertions)
- Add .dockerignore to exclude .git, vendor, var, tests, docs, .env
and other non-build files from Docker context
- Fix broken base64url padding in src/Data/Payload.php: str_pad was
a no-op because the length argument was always < string length.
Replaced with correct str_repeat approach
- Fix typo in bin/franken.sh: digtialadapt → digitaladapt
- Add comment to bin/franken.sh noting it's a dev utility
- Remove config/reference.php from git tracking (auto-generated file)
and add to .gitignore
- Fix readme.md: env.example → example.env (matches actual filename)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Adds
php-cs-fixeras a dev dependency with PSR-12 configuration, adds a CI check, auto-fixes existing violations, and documents the tooling in the readme.Changes
composer.json— Addedfriendsofphp/php-cs-fixertorequire-dev.php-cs-fixer.dist.php— New config using@PSR12ruleset, excludingvar/andvendor/.gitea/workflows/tests.yaml— AddedRun php-cs-fixerdry-run step between dependency installation and testsreadme.md— Added Development section with Code Style and Running Tests subsections.gitignore— Symfony recipe added entries for local php-cs-fixer override and cacheVerification
php vendor/bin/php-cs-fixer fix --dry-run— 0 files need fixingphp vendor/bin/phpunit— All 222 tests pass (469 assertions)371d1cebb0tocb378e20bc