-
Notifications
You must be signed in to change notification settings - Fork 75
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
Phpdoc improvements #21
Phpdoc improvements #21
Conversation
arendvw
commented
Jun 16, 2016
- Improved comments from the doctrine point of view
- Added getter/setter @method comments for base comments
- Added better indenting of @Property comments
- Added better type annotations (conversion from doctrine type to php, and hinting for date and time formats)
- Added available options for enum types (and format for time based formats)
- Improved comments from the doctrine point of view - Added getter/setter comments for base comments - Added better indenting of @Property and @method comments - Added better php-typing (conversion from doctrine type to php, and hinting for date and time formats - Added available options for enum types.
- Improved comments from the doctrine point of view - Added getter/setter comments for base comments - Added better indenting of @Property and @method comments - Added better php-typing (conversion from doctrine type to php, and hinting for date and time formats - Added available options for enum types.
} else { | ||
$commentOptions[] = sprintf("Type: %s(%s)", $column["type"], $column["length"]); | ||
} | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be careful about CS, we are in symfony1 not Symfony 2.
Should be :
}
else
{
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for the heads up - this file did not follow the conventions to begin with in many cases, but I've adjusted the committed part.
Could you provide a sample of a generated class before and after your changes? |
A (payment) transaction table: Before
After:
|
And sfGuardUser (before):
sfGuardUser after:
|
- Fixed CS issues - Getters/Setters would have a different name if the base class had lowercase prefixes.
Ok for me. Can you squash your commits into only one? |
- Improved comments from the doctrine point of view - Added getter/setter comments for base comments - Added better indenting of @Property and @method comments - Added better php-typing (conversion from doctrine type to php, and hinting for date and time formats - Added available options for enum types. feature(better-comments): - Improved comments from the doctrine point of view - Added getter/setter comments for base comments - Added better indenting of @Property and @method comments - Added better php-typing (conversion from doctrine type to php, and hinting for date and time formats - Added available options for enum types. - Added timestamp autocomplete - Fixed CS issues - Getters/Setters would have a different name if the base class had lowercase prefixes.
…1 into dev-phpdoc-improvements
Sure, is this what you meant? Or should I cherry pick the commit into a new branch? |
This is what we mean: https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/ Thanks for the PR 👍 |