Skip to content

Add PHP-CS-Fixer to php85 Environment#105

Draft
google-labs-jules[bot] wants to merge 3 commits into
refactor/move-phpunit-config-938799894641842006from
feat/add-php-cs-fixer-5574286366246635111
Draft

Add PHP-CS-Fixer to php85 Environment#105
google-labs-jules[bot] wants to merge 3 commits into
refactor/move-phpunit-config-938799894641842006from
feat/add-php-cs-fixer-5574286366246635111

Conversation

@google-labs-jules

Copy link
Copy Markdown

This change adds the PHP-CS-Fixer tool to the php85 environment. It includes the necessary dependency configuration, a default ruleset, and fixes to the Docker build process to handle potential Docker Hub rate limits. It also updates the .gitignore file to prevent caching issues.


PR created automatically by Jules for task 5574286366246635111 started by @dounokouno

This commit introduces PHP-CS-Fixer to the php85 environment to allow for automated code style checking and fixing.

- Adds 'friendsofphp/php-cs-fixer' to php85/composer.json.
- Creates a default .php-cs-fixer.dist.php configuration file using the PSR12 ruleset.
- Updates Dockerfile.php to install Composer directly, avoiding Docker Hub rate limits.
- Updates .gitignore to exclude cache files generated by PHP-CS-Fixer and PHPUnit.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Applies automated code style fixes across the project using PHP-CS-Fixer with the PSR12 ruleset. This ensures consistent code formatting.
This commit introduces and configures PHP-CS-Fixer to format a specific subset of files.

- Installs 'friendsofphp/php-cs-fixer' in the php85 environment.
- Creates a .php-cs-fixer.dist.php configuration file to target only index.php, index.test.php, lib/TransmitMail.php, and the tests/ directory.
- Applies PSR12 code style formatting to the targeted files.
- Updates Dockerfile.php to install Composer directly, avoiding Docker Hub rate limits.
- Updates .gitignore to exclude cache files generated by PHP-CS-Fixer and PHPUnit.
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.

0 participants