@@ -30,29 +30,29 @@ You can verify whether the standard can be found:
30
30
31
31
``` sh
32
32
$ phpcs -i
33
- The installed coding standards are MySource, PSR1, PHPCS, Zend, Squiz, PEAR, PSR2 and PMAStandard
33
+ The installed coding standards are MySource, PSR1, PHPCS, Zend, Squiz, PEAR, PSR2 and PhpMyAdmin
34
34
```
35
35
36
36
Run CodeSniffer:
37
37
38
38
``` sh
39
- $ phpcs --standard=PMAStandard /path/to/code
39
+ $ phpcs --standard=PhpMyAdmin /path/to/code
40
40
```
41
41
42
- You can optionally make PMAStandard the default for all invocations of phpcs, then you don't need to
42
+ You can optionally make PhpMyAdmin the default for all invocations of phpcs, then you don't need to
43
43
manually specify it each time on the command line:
44
44
45
45
``` sh
46
- $ phpcs --config-set default_standard PMAStandard
46
+ $ phpcs --config-set default_standard PhpMyAdmin
47
47
```
48
48
49
49
## Using
50
50
51
- PMAStandard has its tuned coding style checks, such as missing ` @author ` ,
52
- ` @copyright ` , ` @link ` or other tags. Let's take a look at an example, checked with PMAStandard :
51
+ PhpMyAdmin has its tuned coding style checks, such as missing ` @author ` ,
52
+ ` @copyright ` , ` @link ` or other tags. Let's take a look at an example, checked with PhpMyAdmin :
53
53
54
54
``` sh
55
- $ phpcs --standard=PMAStandard /path/to/code/myfile.php
55
+ $ phpcs --standard=PhpMyAdmin /path/to/code/myfile.php
56
56
123 | WARNING | Line exceeds 85 characters; contains 139 characters
57
57
184 | ERROR | Line indented incorrectly; expected at least 20 spaces, found
58
58
| | 16
0 commit comments