-
Notifications
You must be signed in to change notification settings - Fork 229
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
Code cleanup (WIP) #274
Code cleanup (WIP) #274
Conversation
That's a huge Pull request to check ! Thanks;). I checked many files and I'm mostly ok. One thing that bug me is the modification of the EOL character in the language file. A large number of users still use Windows's Notepad (so LF is big no go !) and I want those files to be really easy to change (In addition there's less noise in the files changed tab). |
I was thinking about using some online service like Crowdin, later on. Then users can translate there and you just pull the data files into the project. Then it's no problem anymore. But for now, I just changed the line endings of the translations back to CRLF. |
@horus68 has already set up transifex but I did not spent enough time on it to enable integration with Github |
I just merged your most recent commits into the PR. |
I tested your branch and did not see any regression for now using PHP 5.4 / 5.5 With PHP 7 there is a problem with $config :
I'll continue to test till the weekend (I installed your branch on my main library) and will merge it on monday if everything goes well |
Were there any further problems with this branch? |
Besides the problem with PHP7, I don't think I found anything. I tried to fix the PHP7 problem in early august but I didn't understood the problem |
I just merged all recent changes into this branch. I'll try it with PHP 7.0 soon and hopefully fix that last bug. |
Thanks a lot, I won't merge anything else in the meantime to avoid complicating your task even more :(. |
It seems PHP 7 ignores I also had to change the config loading order for the "live" config to not overwrite the "test" config. Could you try it again, please? |
Thanks a lot .... especially for your patience :). |
Note: There has been a change in EOL from previous master to the merged files (was Windows, now Unix). |
I know but this was the oldest PR and the cleanup was needed. With this PR, everything except languages files should use LF. |
I'll try to see what I can do for the existing PRs |
It would be great if you could have a look on the changes I had to make on composer.json / lock to make it work fine. A second pair of eye would reassure me. Saucelabs also give me trouble but I'll handle that. |
@seblucas Sure, I'll have an eye on it, but probably not before the weekend. But I'll stay in touch. |
Code cleanup
This is a working snapshot of a complete overhaul of the COPS codebase with your merges from today included.
Most packages are now external libs and pulled in by Composer (and its Autoloader). Scrutinizer checks code formatting (Symfony style). No more multiple classes in one PHP file. And some code fixes/cleanups (more to come).
No functional changes were made to the code.
Builds fine in my Travis and Scrutinizer.
After merging, you have to fix the links in the README to point to your badges again.