phpcs-composer
phpcs-composer copied to clipboard
Same Line Control Structure vs. The Conditional Operator
In the latest release we allow same line control structures. What are the benefits of using this type of control structure over the conditional operator?
If the goal is to produce the minimal amount of code on one line, then the latter is probably the better choice (not to mention better for readability).