Pull Request for Issue #487 Add phpcbf tool to automatically fix errors found by phpcs tool in run:checker Command #489
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request related to the suggestion.
Pull Request for Issue #487 .
Summary of Changes
Change the way the tools are displayed in command line:
Testing Instructions
Go to the root of the project.
type vendor/bin/robo run:checker phpcbf
Expected result
If there are coding standard errors most of them if not all should be automatically fixed
Actual result
the console shows a message:
The tool you required is not known. Valid tools are phpmd, phpcs, phpcpd
Since phpcbf is not added yet in RoboFile.php
Documentation Changes Required
Probably. Just adding the fact that phpcbf is available. Usually it's installed at the same time and the same folder than phpcs. But that's to be verified.
Thanks for your feedback.