File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 81
81
</rule >
82
82
<rule ref =" Squiz.WhiteSpace.SemicolonSpacing" />
83
83
<rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
84
+ <rule ref =" Generic.CodeAnalysis.EmptyPHPStatement" />
85
+ <rule ref =" Squiz.WhiteSpace.LogicalOperatorSpacing" />
86
+ <rule ref =" Squiz.WhiteSpace.CastSpacing" />
84
87
</ruleset >
Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ we do not respect this rule:
53
53
<rule ref="Generic.Formatting.SpaceAfterCast"/>
54
54
```
55
55
56
+ - Do not use space inside type casting
57
+
58
+ ```
59
+ <rule ref="Squiz.WhiteSpace.CastSpacing"/>
60
+ ```
61
+
56
62
- Use lowercase for PHP functions
57
63
58
64
```
@@ -104,6 +110,18 @@ we do not respect this rule:
104
110
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
105
111
```
106
112
113
+ - Do not use empty php statement
114
+
115
+ ```
116
+ <rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/>
117
+ ```
118
+
119
+ - Add a single space before and after logical operator
120
+
121
+ ```
122
+ <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
123
+ ```
124
+
107
125
### Custom
108
126
- Some others checks are made about array (` => ` alignments and indentation)
109
127
You can’t perform that action at this time.
0 commit comments