-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[PHP] Better code format #5277
Comments
In #3863 I've added support for PHP CS Fixer which seems to becoming PHP CS style tool of choice, not only can it find CS violations, it can fix them. Would need to update the config file for a new version. Also, I'm using full code inspection from PHPStorm which also catches typos and such (some of which are also fixed in the PR linked). |
For the time being, we can leverage PHP-CS-Fixer to update the code in terms of style and format. Ideally I want to update the templates for PHP API client without the need to run php-cs-fixer manually. |
That was the original idea, but you get to also run php-cs-fixer from CI, it can also be run in "find only" mode. |
Description
When using PHP CodeSniffer, we found potential enhancemnets for auto-generated PHP code.
Swagger-codegen version
Steps to reproduce
Related issues
#5190 (comment)
Suggest a Fix
If anyone wants to work on the enhancement, please reply to let us know.
The text was updated successfully, but these errors were encountered: