Looking for which (if either) of the following ternary statement\'s syntax is compliant with PSR-2 - I
One important thing to keep in mind is that PSR-2 states that lines SHOULD NOT be longer than 80 characters.
The ternary syntax can be pretty long sometimes, so I think we have a missing recommendation for a very common kind of code.
What I'm doing currently is indent it like this:
$stuff = $count > MyLongNamespace\MyLongClassName->get('count')
? 'yikes this seems to be some large stuff'
: 'erm this is rather small stuff';