swagger-api / swagger-api/swagger-codegen
[PHP] Better code format
Open
Nobody has claimed this yet.
Client: PHP
Enhancement: Code format
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
When using PHP CodeSniffer, we found potential enhancemnets for auto-generated PHP code.
Swagger-codegen version
- Current master
Steps to reproduce
composer install
./vendor/bin/phpcs --extensions=php ./lib
Related issues
https://github.com/swagger-api/swagger-codegen/pull/5190#issuecomment-290909884
Suggest a Fix
If anyone wants to work on the enhancement, please reply to let us know.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run composer install and ./vendor/bin/phpcs --extensions=php ./lib to reproduce the reported formatting findings. Review the PHP files under lib and the related discussion in pull request 5190; done means the reported PHP CodeSniffer issues are resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100