-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Reformat DAO files to pass linting and use short array syntax #11418
Conversation
b41f439
to
3010d6b
Compare
@totten let's merge this after the 4.7.30-rc is cut. |
@mlutfy will you please ask jenkins to retest this once you've upgraded php on the apache side of our ci? |
@mlutfy this is highly prone to merge conflicts so ping me as soon as you get PHP upgraded on our CI server and I'll do a regen + rebase. |
jenkins, test this please |
3010d6b
to
5e2d78f
Compare
I have rebased the PR, lets wait for the test build to pass. |
@monishdeb did you regenerate the dao files when you rebased? |
Reformat DAO files to pass linting and use short array syntax
Overview
Our code standards covered every file in the core repo except the autogenerated DAOs. This cleans them up to pass
civilint
standards. It also makes them the first set of files to use the short array syntax now that we've officially dropped support for php 5.3 :)Before
DAO*.php files were a bit unsightly.
After
Code looks much better.
Technical Details
We really need to get ourselves a better php prettifier. I had to do some regex hacks to get the output to come out ok.