Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes various code style issues and integrate PHP CS Fixer into drone #39745

Merged
merged 15 commits into from
Jan 31, 2023

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Jan 30, 2023

Summary of Changes

The https://github.com/PHP-CS-Fixer/PHP-CS-Fixer project is another code style fixer for PHP which we have a config for since #10992 but actually never used. This pr integrates it into drone and fixes the code base, primarily adding a trailing comma on multiline arrays where phpcs has a big weakness.

On the other side the PHP CS Fixer can't properly handle files where HTML syntax is mixed with PHP code, so it makes sense to use both projects in our CI pipeline.

This pr is a result from #39739 (review).

This can be merged by review.

@laoneo laoneo requested a review from zero-24 as a code owner January 30, 2023 13:10
Copy link
Member

@HLeithner HLeithner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a full code review on all files but only for real changes not for linebreaks and spaces. The PR looks ok except the 10 mentioned lines.

libraries/src/Form/Field/TransitionField.php Outdated Show resolved Hide resolved
libraries/src/Form/FormField.php Outdated Show resolved Hide resolved
libraries/src/Form/FormField.php Outdated Show resolved Hide resolved
tests/Unit/Libraries/Cms/Object/CMSObjectTest.php Outdated Show resolved Hide resolved
tests/Unit/Libraries/Cms/Uri/UriTest.php Outdated Show resolved Hide resolved
@HLeithner HLeithner merged commit 1e7527b into joomla:4.3-dev Jan 31, 2023
@HLeithner
Copy link
Member

Thanks

@laoneo laoneo deleted the cs branch January 31, 2023 10:21
@laoneo laoneo added this to the Joomla! 4.3.0 milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants