PSR-12 foreach multiline not defined

30 показвания
Преминаване към първото непрочетено съобщение

Julian Wittorf

непрочетено,
24.02.2023 г., 6:17:4024.02.23 г.
до PHP Framework Interoperability Group
Hi,

I ran across this issue while comparing different tools like PHP_CodeSniffer and PHP CS Fixer and basically there is no explicit ruling for a foreach-structure with multi-line arguments.

I've added some thoughts and code examples to the already opened issue on GitHub.

Since the general style rules for control structures doesn't say anything about multi-lines, there should be some further input on this topic - either in general or explicitly for the foreach-loop.

Any thoughts on this?
Отговор до всички
Отговор до автора
Препращане
0 нови съобщения