swagger-api / swagger-api/swagger-codegen

[PHP] Better code format

Open
#5,277 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.