Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be compatible with PER 2.x #52

Open
roslov opened this issue May 11, 2024 · 1 comment
Open

Be compatible with PER 2.x #52

roslov opened this issue May 11, 2024 · 1 comment
Labels
future release This should be checked later

Comments

@roslov
Copy link
Owner

roslov commented May 11, 2024

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

@roslov
Copy link
Owner Author

roslov commented May 11, 2024

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>

@roslov roslov added the future release This should be checked later label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future release This should be checked later
Projects
None yet
Development

No branches or pull requests

1 participant