Closing bracket of if
-condition on own line when condition is multiline
#7885
-
Hello, I am looking for a rule which helps me to ensure, that if an if-condition is multiline, that the closing bracket of the condition and the opening brace of the code block is on an own new line. Example: if ($report->getWarehouseId() &&
!in_array($reportId, $this->getDeletableReportIdsInWarehouses([$report->getWarehouseId()]))) {
throw new StockValuationException();
} should be fixed to:
Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
julienfalque
Mar 15, 2024
Replies: 2 comments 2 replies
-
There's no such rule at the moment but #7813 aims to introduce it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
windaishi
-
I found that there is a ruleset called |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no such rule at the moment but #7813 aims to introduce it.