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

Formatting ternary operators #28

Open
mancunianez opened this issue Feb 20, 2023 · 0 comments
Open

Formatting ternary operators #28

mancunianez opened this issue Feb 20, 2023 · 0 comments

Comments

@mancunianez
Copy link

As it was decided on Developers Chat (Feb 20, 2023) we need create new PHPCS rule for ternary operators.

Expected Behavior

Split long condition onto several lines, keeping the question mark and the colon at the front

$b = $condition3 && $condition4
    ? $foo_man_this_is_too_long_what_should_i_do
    : $bar;

Current Behavior

There is currently no rule for formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant