We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e6132b + 948403f commit f901926Copy full SHA for f901926
PHPCSDev/ruleset.xml
@@ -210,7 +210,10 @@
210
</rule>
211
212
<!-- Clean up: remove redundant code. -->
213
- <rule ref="Squiz.PHP.NonExecutableCode"/>
+ <rule ref="Squiz.PHP.NonExecutableCode">
214
+ <!-- Allow for return statement in otherwise empty function. -->
215
+ <exclude name="Squiz.PHP.NonExecutableCode.ReturnNotRequired"/>
216
+ </rule>
217
218
<!-- Clean up: no empty statements. -->
219
<rule ref="Generic.CodeAnalysis.EmptyPHPStatement"/>
0 commit comments