Skip to content

1.0.9: feat: Add Mago for code formatting and linting

Choose a tag to compare

@pierresh pierresh released this 09 Nov 07:04
· 43 commits to master since this release
- Install carthage-software/mago for modern PHP formatting
- Create mago.toml configuration for PHP 8.1
- Add composer scripts:
  - `composer format:check`: Check code formatting without changes
  - `composer format`: Apply Mago code formatting
  - `composer lint`: Run Mago linter

Applied formatting improvements:
- Convert tabs to spaces (4-space indentation)
- Consistent quote usage (single quotes where appropriate)
- Improved multi-line array formatting
- Better code structure and readability

Mago provides opinionated, consistent code formatting that complements
Rector's code modernization and PHPStan's static analysis.

Benefits:
- Consistent code style across the entire codebase
- No manual formatting decisions needed
- Automated enforcement of PHP coding standards
- Integrates well with existing tooling

All tests pass (3/3) and PHPStan analysis passes at max level.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>