File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1717 <exclude name =" WordPress.Files.FileName" />
1818 <exclude name =" WordPress.NamingConventions.ValidVariableName" />
1919 <exclude name =" Generic.Arrays.DisallowShortArraySyntax" />
20+ <exclude name =" WordPress.PHP.YodaConditions" />
2021 </rule >
2122
2223 <rule ref =" WordPress-Docs" />
3233
3334 <rule ref =" PSR2.Methods.FunctionClosingBrace" />
3435
35- <!-- Disallow long array syntax -->
36+ <!-- Disallow long array syntax. -->
3637 <rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
3738
39+ <!-- Disallow Yoda conditions. -->
40+ <rule ref =" Generic.ControlStructures.DisallowYodaConditions" />
41+
3842 <!-- Check code for cross-version PHP compatibility. -->
3943 <config name =" testVersion" value =" 5.4-" />
4044 <rule ref =" PHPCompatibility" >
You can’t perform that action at this time.
0 commit comments