-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TASK: Cosmetic cleanup of DoctrineDbalContentGraphProjection
#5092
Conversation
Sorts `when`-matchers and -handlers alphabetically and moves other private methods to the bottom of the class
…trinedbaladapter-2
Thanks for sorting things... but is it really worth to do so? Sorting a 1000Lines class is just a bit evil because git wont keep up with it ... git blame will be useless (unless magic cow powder is used) and there is history to preserve ... |
I wondered the same, because I will certainly forget doing that whenever I add something later, doing a quick search or using phpstorms structure thing are fast enough that I wouldn't even bother thinking something is alphabetical. |
It's a pitty that git (or rather the github diff view) isn't better with these pure cosmetic changes. The
With the follow-ups (#5096 and #5097) I'll add more handlers, basically covering all remaining events. So it's not very likely that new handlers will be added very often after that. And then we at least have a common scheme that we can follow.. (and I will have an eye on that). Besides, I set up my PHPStorm to automatically sort those for my own projections: |
I think I skipped over your concern re git history/blameability.. good point. |
haha trust i do not. :D I would actually review this by confirming that my php storm would sort them the same way and then diffing both outputs. So that is not the point as you also mentioned. But blaming is not simple.
only when using
so with the right tooling its not impossible, tough phpstorm and github ui sadly dont support any advanced git flags like
|
@mhsdesign @kitsunet I closed this before because I really want to get to the actual changes. But I realized that..
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, I didn't know that one! |
Lol couldnt live without that seriously :D ... but despite my phpstan being configured to order the same way as yours does i cannot confirm these changes. Idk. But in you i trust. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooooookkkkkaaaaaay :D
Sorts
when
-matchers and -handlers alphabetically and moves other private methods to the bottom of the classNote: This is just a cosmetic change, no behavior has been changed