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

Add PHPCS (+ fixer) and set coding style to PSR12 #181

Merged
merged 7 commits into from
Dec 21, 2022

Conversation

unfulvio-godaddy
Copy link
Member

@unfulvio-godaddy unfulvio-godaddy commented Dec 5, 2022

Summary

This PR adds PHPCS (via PHPCompatibility) and sets the coding style to PSR12.

PHP CS Fixer is also added to format all existing codebase to that standard.

Details

Need to confirm if PSR12 is the desired standard, and the current automatic refactor from PHP CS Fixer is acceptable. The plan would be to iterate on the code while updating/adding tests and addressing both code style and PhpStan code level as we go.

QA

  • Code review
  • Unit tests pass
  • PhpStan passes
  • PHPCompatibility and PHPCS checks pass

@unfulvio-godaddy unfulvio-godaddy self-assigned this Dec 5, 2022
@coveralls
Copy link

coveralls commented Dec 5, 2022

Coverage Status

Coverage decreased (-1.0%) to 11.201% when pulling aad2d18 on add-phpcs-with-per-coding-standards into d6a8420 on trunk.

@unfulvio-godaddy unfulvio-godaddy requested a review from a team December 5, 2022 07:54
@jeffpaul jeffpaul added this to the 0.6.0 milestone Dec 5, 2022
@unfulvio-godaddy unfulvio-godaddy force-pushed the add-phpcs-with-per-coding-standards branch from 9733469 to 22ab571 Compare December 19, 2022 17:28
@unfulvio-godaddy unfulvio-godaddy changed the title Add PHPCS (with baseline) and set coding style to PSR12 Add PHPCS (+ fixer) and set coding style to PSR12 Dec 19, 2022
Copy link
Contributor

@rneudorf-godaddy rneudorf-godaddy left a comment

Choose a reason for hiding this comment

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

Preformed similar test as described here. Looks good.

@unfulvio-godaddy unfulvio-godaddy merged commit bcfabe0 into trunk Dec 21, 2022
@unfulvio-godaddy unfulvio-godaddy deleted the add-phpcs-with-per-coding-standards branch December 21, 2022 01:56
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.

4 participants