From 02e3633756c254fb44e8255457e2e7f587abda5b Mon Sep 17 00:00:00 2001 From: Jonas Eberle Date: Fri, 12 Nov 2021 15:25:06 +0100 Subject: [PATCH] [TASK] allow newlines for ternary operator (#338) The previous configuration disallowed newlines in ternary operator like: $a = $condition1 && $condition2 ? $foo_man_this_is_too_long_what_should_i_do : $bar; This seems very arbitrary since breaking on other operators is in fact allowed. This change allows such longer statements to be broken apart over several lines. --- phpcs.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpcs.xml b/phpcs.xml index 3496c1b..7b1092b 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -122,7 +122,11 @@ - + + + + +