Open roslov opened 4 months ago
Use a single line for methods with empty bodies. For example:
public method demo() {}
Check this:
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie">
<properties>
<!-- Allow empty function bodies to be formatted on a single line -->
<property name="allowEmpty" value="true"/>
</properties>
</rule>
https://www.php-fig.org/per/coding-style/