Php-cs-fixer: [Proposal] Array Un-Align Fixer

Created on 16 Dec 2014  Â·  21Comments  Â·  Source: FriendsOfPHP/PHP-CS-Fixer

Does the reverse of our array align fixer, and makes sure array elements are not aligned up.

I'd be happy to write this for the contrib level to hopefully go into 1.5.

kinfeature request

Most helpful comment

why alignment is not correct?

It makes more sense to not align to reduce diff sizes and prevent merge conflicts.

All 21 comments

I won't be using it, but yeah, why not. If anyone will then it is a nice to have it !

Yeh, there's been some talk in the symfony community about applying such a standard to symfony, nothing concrete yet though.

I'll get this done shortly - if not today, then this week.

OK.

Can we reopen this, i know some projects that would like this ;)

2014-12-16 22:50 GMT+01:00 Dariusz RumiÅ„ski [email protected]:

OK.

—
Reply to this email directly or view it on GitHub
https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/882#issuecomment-67238747
.

I didn't close it, it was @GrahamCampbell

From what I understood the fixer will be proposed by @GrahamCampbell , the idea wasn't rejected ;)

Yeh. It's going to be the very next fixer for me to write.

Cool, having an open ticket for that is nice, both for contributors as
users.

2014-12-17 1:14 GMT+01:00 Graham Campbell [email protected]:

Yeh. It's going to be the very next fixer for me to write.

—
Reply to this email directly or view it on GitHub
https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/882#issuecomment-67257263
.

Sure.

:+1: yes please :yum:

:+1:
@GrahamCampbell i have tried with symfony level but nothing happen.

Nothing happen because this is only _proposal_ of fixer at Symfony level.

If nobody does this by July/August, I'll take it on. :)

nearly 1 year after the issue created, it's too long @GrahamCampbell , could you start it now ?

It would be great to have it done indeed, but please remember @ptcong, everyone of us spend his free time to work on this project, and we simply need to use some kind of prioritization.

If you want that fixer done please simply consider helping creating it (guide).

@keradus ya, i know, but i mean, after 1 years, still have nobody take it then @GrahamCampbell should take it nearly if he have free time, don't need to wait others take it.

@ptcong No, I'm telling you I will do it then. I'm not bringing it forward. If you want to write it first, then that's fine by me. I just won't be doing it any earlier.

Implemented in #1167 and #1168

Closing due to merge of both PRs

Guys, just wondering, what is the reason of implementing these fixers and why alignment is not correct?

why alignment is not correct?

It makes more sense to not align to reduce diff sizes and prevent merge conflicts.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bilge picture Bilge  Â·  3Comments

ndench picture ndench  Â·  3Comments

kcloze picture kcloze  Â·  3Comments

OskarStark picture OskarStark  Â·  3Comments

teohhanhui picture teohhanhui  Â·  3Comments