roslov / psr12ext

PSR-12 Extended Coding Standard
MIT License
3 stars 1 forks source link

Be compatible with PER 2.x #52

Open roslov opened 4 months ago

roslov commented 4 months ago

https://www.php-fig.org/per/coding-style/

roslov commented 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>