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.
1 parent 2e6132b commit 948403fCopy full SHA for 948403f
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