Skip to content

feat: add PHP-CS-Fixer configuration and update composer.json for code style fixes#48

Merged
wozozo merged 3 commits intomasterfrom
php-cs-fixer
Apr 30, 2025
Merged

feat: add PHP-CS-Fixer configuration and update composer.json for code style fixes#48
wozozo merged 3 commits intomasterfrom
php-cs-fixer

Conversation

@wozozo
Copy link
Contributor

@wozozo wozozo commented Apr 21, 2025

This pull request introduces a PHP-CS-Fixer configuration to the project, updates the development dependencies in composer.json, and adds a new script for automatically fixing code style issues. These changes aim to improve code quality and streamline development workflows.

PHP-CS-Fixer Integration:

  • Added a new .php-cs-fixer.dist.php configuration file to define rules and file paths for PHP-CS-Fixer. The rules include PSR-12 compliance, strict parameter checks, short array syntax, and removal of unused imports.

Updates to composer.json:

  • Added friendsofphp/php-cs-fixer as a development dependency to enable code style fixing.
  • Introduced a new fix script to composer.json for running PHP-CS-Fixer with the --allow-risky=yes option. This script simplifies the process of applying code style fixes.

@wozozo wozozo force-pushed the php-cs-fixer branch 3 times, most recently from 51d1523 to 1240a6b Compare April 30, 2025 00:34
@wozozo wozozo marked this pull request as ready for review April 30, 2025 00:35
@wozozo wozozo merged commit d3ad337 into master Apr 30, 2025
12 checks passed
@wozozo wozozo deleted the php-cs-fixer branch April 30, 2025 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants