@@ -121,8 +121,14 @@ There are two configurable options:
121
121
``` xml
122
122
<rule ref =" Generic.Debug.ClosureLinter" >
123
123
<properties >
124
- <property name =" errorCodes" type =" array" value =" 0210" />
125
- <property name =" ignoreCodes" type =" array" value =" 0001,0110,0240" />
124
+ <property name =" errorCodes" type =" array" >
125
+ <element value =" 0210" />
126
+ </property >
127
+ <property name =" ignoreCodes" type =" array" >
128
+ <element value =" 0001" />
129
+ <element value =" 0110" />
130
+ <element value =" 0240" />
131
+ </property >
126
132
</properties >
127
133
</rule >
128
134
```
@@ -462,8 +468,10 @@ This sniff discourages the use of alias functions that are kept in PHP for compa
462
468
``` xml
463
469
<rule ref =" Generic.PHP.ForbiddenFunctions" >
464
470
<properties >
465
- <property name =" forbiddenFunctions" type =" array"
466
- value =" print=>echo,create_function=>null" />
471
+ <property name =" forbiddenFunctions" type =" array" >
472
+ <element key =" print" value =" echo" />
473
+ <element key =" create_function" value =" null" />
474
+ </property >
467
475
</properties >
468
476
</rule >
469
477
```
@@ -612,8 +620,10 @@ Setting the `ignoreIndentationTokens` property provides the sniff with a list of
612
620
``` xml
613
621
<rule ref =" Generic.WhiteSpace.ScopeIndent" >
614
622
<properties >
615
- <property name =" ignoreIndentationTokens" type =" array"
616
- value =" T_COMMENT,T_DOC_COMMENT_OPEN_TAG" />
623
+ <property name =" ignoreIndentationTokens" type =" array" >
624
+ <element value =" T_COMMENT" />
625
+ <element value =" T_DOC_COMMENT_OPEN_TAG" />
626
+ </property >
617
627
</properties >
618
628
</rule >
619
629
```
@@ -884,8 +894,10 @@ See the [Generic.WhiteSpace.ScopeIndent](#genericwhitespacescopeindent) sniff fo
884
894
<properties >
885
895
<property name =" exact" value =" true" />
886
896
<property name =" tabIndent" value =" true" />
887
- <property name =" ignoreIndentationTokens" type =" array"
888
- value =" T_COMMENT,T_DOC_COMMENT_OPEN_TAG" />
897
+ <property name =" ignoreIndentationTokens" type =" array" >
898
+ <element value =" T_COMMENT" />
899
+ <element value =" T_DOC_COMMENT_OPEN_TAG" />
900
+ </property >
889
901
</properties >
890
902
</rule >
891
903
```
0 commit comments