Skip to content

Commit 37ebacd

Browse files
gsherwoodjrfnl
authored andcommitted
Updated Fixing Errors Automatically (markdown)
1 parent f949b50 commit 37ebacd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wiki/Fixing-Errors-Automatically.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Diff reports are more easily used when output to a file. They can then be applie
4343
$ patch -p0 -ui /path/to/changes.diff
4444
patching file /path/to/code/file.php
4545

46+
> Note: The `*nix` `diff` command is required for generating reports in `diff` format. Windows users may need to ensure that the `diff` command is available by either installing [DiffUtils](http://gnuwin32.sourceforge.net/packages/diffutils.htm) or, if available, adding the Git `/usr/bin/` subdirectory to the Windows system `PATH`.
47+
4648
## Using the PHP Code Beautifier and Fixer
4749
To automatically fix as many sniff violations as possible, use the `phpcbf` command in place of the `phpcs` command. While most of the PHPCS command line arguments can be used by PHPCBF, some are specific to reporting and will be ignored. Running PHPCBF with the `-h` or `--help` command line arguments will print a list of commands that PHPCBF will respond to. The output of `phpcbf -h` is shown below.
4850
```

0 commit comments

Comments
 (0)