Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Add Fixer descriptions #2400

wants to merge 3 commits into from

Conversation

SpacePossum
Copy link
Contributor

No description provided.

@SpacePossum SpacePossum changed the title Add desccriptions. Add Fixer descriptions. Dec 14, 2016
@keradus keradus changed the title Add Fixer descriptions. Add Fixer descriptions Dec 14, 2016
| Replaces rand, srand, getrandmax functions calls with their mt_*
| analogs.
| Replaces `rand`, `mt_rand`, `srand`, `getrandmax` functions calls with
| their mt_* analogs.
Copy link
Member

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?

Copy link
Contributor Author

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\']`.',
Copy link
Member

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?

Copy link
Contributor Author

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)
Copy link
Member

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? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ordered_class_elements ? ;)

@keradus keradus added this to the v2.0.1 milestone Dec 15, 2016
@keradus
Copy link
Member

keradus commented Dec 15, 2016

Thank you @SpacePossum.

@keradus keradus closed this in 1fe4e61 Dec 15, 2016
@keradus keradus deleted the master_descripions_2 branch December 15, 2016 14:36
@keradus
Copy link
Member

keradus commented Dec 15, 2016

Great work here!

keradus added a commit that referenced this pull request Dec 17, 2016
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants