Closed mgrip closed 6 years ago
interestingly prettier doesn't necessarily put each case on its own line if smaller ones fit https://prettier.io/playground/#N4Igxg9gdgLgprEAuEBLAZgAgBQCc4CGANkQJ4BKhJFVZAMtAOYBiArlGDKtNgJSYAyAZgAkMABaoAzgDp8xMvOpLFtUgyiMAsnAkQAJgDkCAWzh9+wADpRMmfDFa5bMXKzgBuGwF8bNjDhiklKYAD6hohIEMILCQXAA8hJwuAAqkpqxolIQZpQKNAX51BqMAEIQEESEUABqBLioBABG1ZY2dg5OLm6ePiAANCAQAA5c0FLIoA24EADuAAoNCJMoBABuEKj6gyAEUjDI6MRScEPNuARgANa6AMojV6iayK7uQ-oQYEcnZ2hQp1wMAWl0YJgIPyIpyGACspAAPMqXG73UxwOjPOCQ6HDVgwEZ4gBM2L+j1wgOQIGaLVIRGguxGjVgAHVthJkAAOAAMQ0ZEFOzMuI0pjLggPWWKG+AAjqxUPgQQQwRCkMcoX9TiZUK9ekMpM9GNUAIqsCDwElDGAtVn6dlIQmWy6oIgGgDCuXBlKg0ElIFYp1SLVWatO3m8QA
From what I can tell the language used in PSR12 doesn't disallow that if we can accomplish the same thing
Ahh actually it groups together the &&
cases in parens and puts them on their own line
Fixed in #140
input:
output:
PSR12 specifies: