You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -98,17 +98,17 @@ php bin/phpcbf -h
98
98
99
99
## Getting Started
100
100
101
-
The default coding standard used by PHP_CodeSniffer is the PEAR coding standard. To check a file against the PEAR coding standard, simply specify the file's location:
101
+
The default coding standard used by PHP_CodeSniffer is the PSR12 coding standard. To check a file against the PSR12 coding standard, simply specify the file's location:
102
102
```bash
103
103
phpcs /path/to/code/myfile.php
104
104
```
105
105
Or if you wish to check an entire directory you can specify the directory location instead of a file.
106
106
```bash
107
107
phpcs /path/to/code-directory
108
108
```
109
-
If you wish to check your code against the PSR-12 coding standard, use the `--standard` command line argument:
109
+
If you wish to check your code against the PEAR coding standard, use the `--standard` command line argument:
110
110
```bash
111
-
phpcs --standard=PSR12 /path/to/code-directory
111
+
phpcs --standard=PEAR /path/to/code-directory
112
112
```
113
113
114
114
If PHP_CodeSniffer finds any coding standard errors, a report will be shown after running the command.
0 commit comments