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 PHPCBF Version setting #1645

Merged
merged 5 commits into from
May 6, 2017
Merged

Add PHPCBF Version setting #1645

merged 5 commits into from
May 6, 2017

Conversation

UziTech
Copy link
Contributor

@UziTech UziTech commented May 5, 2017

What does this implement/fix? Explain your changes.

This adds a setting to PHP for the PHPCBF Version.

If the PHPCBF version is 3 than it removes the --no-patch flag

Does this close any currently open issues?

#1643

Any other comments?

The setting is defaulted to 2 so it doesn't change the current behavior

Checklist

Check all those that are applicable and complete.

  • Merged with latest master branch
  • Regenerate documentation with npm run docs

@UziTech
Copy link
Contributor Author

UziTech commented May 5, 2017

I think this fixes #1194 as well

PHP:
phpcbf_path: true
phpcbf_version: true
standard: true
Copy link
Owner

Choose a reason for hiding this comment

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

I think standard should still be the transform function from before? i.e standard: ["standard", (standard) ->..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If PHPCS is called without a standard the PEAR standard is used any ways. If we want to default the standard to PEAR I feel it would be better to use the default property in options

Copy link
Owner

Choose a reason for hiding this comment

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

Sounds good. Let's set PEAR as default, so we are backwards compatible. Otherwise, this looks good to go!

@@ -5874,23 +5874,41 @@
"title": "PHPCBF Path",
"type": "string",
"default": "",
"description": "Path to the `phpcbf` CLI executable (Supported by PHP-CS-Fixer)",
Copy link
Owner

Choose a reason for hiding this comment

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

Good catch.

@Glavin001 Glavin001 self-assigned this May 6, 2017
Copy link
Owner

@Glavin001 Glavin001 left a comment

Choose a reason for hiding this comment

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

  • Set PEAR to be default value of standard
  • Rebuild docs

@Glavin001 Glavin001 merged commit f570243 into Glavin001:master May 6, 2017
@Glavin001
Copy link
Owner

Thanks for contributing!

@Glavin001
Copy link
Owner

Published to v0.29.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants