forked from DASPRiD/ZFCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
30 lines (24 loc) · 993 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
This is the PHPCS sniff for the Zend Framework 2 coding standard.
It is currently not complete yet, as a few sniffs are still missing.
DONE:
- Check for proper function call argument style
- Check for function braces being on a line by themself
- Check for invalid usage for short open tags
- Check for valid indentation
- Check for character limit (80 soft, 120 hard)
- Check for valid unix line-endings
- Check for valid variable names
- Check for invalid usage of closing PHP tag
- Check for invalid usage of perl-style hash comments
TODO:
- Check for proper abstract class naming
- Check for valid interface naming
- Check for valid class/method naming
- Check for valid constant naming
- Check for proper user of string literals
- Check for proper array styles
- Check for proper class/method documentation blocks
- Check for invalid use of 'var' keyword
- Check for proper argument style in method declarations
- Check for proper if statement usage
- Check for proper switch usage