Pattern: Malformed function declaration
Issue: -
Checks that function declarations match a specific pattern of whitespace and bracket placement.
By default, comments placed within the function declaration will generate an error, but the rule can be told to ignore comments by setting the ignoreComments
property to true
.
<rule ref="Squiz.Functions.FunctionDeclaration">
<properties>
<property name="ignoreComments" value="false" />
</properties>
</rule>