Skip to content

Commit 2ce74ab

Browse files
committed
Usage: update the "explain" output
The PSR1 standard now contains 8 sniffs, not 7.
1 parent 2a0e3f8 commit 2ce74ab

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

wiki/Usage.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -303,22 +303,25 @@ The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz and
303303

304304
PHP_CodeSniffer can print you a list of the sniffs that a coding standard includes by specifying the `-e` command line argument along with the `--standard` argument. This allows you to see what checks will be applied when you use a given standard.
305305

306-
$ phpcs --standard=PSR1 -e
307-
308-
The PSR1 standard contains 7 sniffs
309-
310-
Generic (3 sniffs)
311-
------------------
312-
Generic.Files.ByteOrderMark
313-
Generic.NamingConventions.UpperCaseConstantName
314-
Generic.PHP.DisallowShortOpenTag
315-
316-
PSR1 (3 sniffs)
317-
---------------
318-
PSR1.Classes.ClassDeclaration
319-
PSR1.Files.SideEffects
320-
PSR1.Methods.CamelCapsMethodName
321-
322-
Squiz (1 sniff)
323-
----------------
324-
Squiz.Classes.ValidClassName
306+
```
307+
$ phpcs --standard=PSR1 -e
308+
309+
The PSR1 standard contains 8 sniffs
310+
311+
Generic (4 sniffs)
312+
------------------
313+
Generic.Files.ByteOrderMark
314+
Generic.NamingConventions.UpperCaseConstantName
315+
Generic.PHP.DisallowAlternativePHPTags
316+
Generic.PHP.DisallowShortOpenTag
317+
318+
PSR1 (3 sniffs)
319+
---------------
320+
PSR1.Classes.ClassDeclaration
321+
PSR1.Files.SideEffects
322+
PSR1.Methods.CamelCapsMethodName
323+
324+
Squiz (1 sniff)
325+
---------------
326+
Squiz.Classes.ValidClassName
327+
```

0 commit comments

Comments
 (0)