-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add Fixer descriptions #2400
Add Fixer descriptions #2400
Conversation
| Replaces rand, srand, getrandmax functions calls with their mt_* | ||
| analogs. | ||
| Replaces `rand`, `mt_rand`, `srand`, `getrandmax` functions calls with | ||
| their mt_* analogs. |
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.
Should mt_*
also be embedded within back ticks?
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.
👍
new CodeSample('<?php echo(\'example\');', array('use' => 'print')), | ||
), | ||
null, | ||
'The fixer can be configured to change `print` to `echo` `[\'use\' => \'echo\']` or `echo` to `print` `[\'use\' => \'print\']`.', |
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.
How about using double quotes here so we don't need to escape single quotes?
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.
👍
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function isCandidate(Tokens $tokens) |
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.
Wondering, should the reordering be done by a fixer? 😄
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.
ordered_class_elements ? ;)
Thank you @SpacePossum. |
Great work here! |
… description (localheinz) This PR was merged into the 2.0-dev branch. Discussion ---------- ProtectedToPrivateFixer - Use backticks for visibility in description This PR * [ ] encloses `protected` and `private` in backticks in the description of the `ProtectedToPrivateFixer` Follows #2400. Commits ------- e8e15c6 Fix: Use backticks for visibility in description
No description provided.