Page MenuHomePhabricator

Switch to MediaWiki coding style
Closed, ResolvedPublic

Description

In PR 63 the snake_case variable names were not picked up by phpcs. I was going to suggest we add a phpcs check for this, but it might be better to just switch to using the standard MediaWiki coding rules (like we do on most PHP codebases).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I've modified the existing code to use the Mediawiki coding rules, but it is probably better if we merge the pending PRs and then work on refactoring the code as this will reduce conflicts.

Github Pull Request (for changing the phpcs rules and automatic linting fixes based on the MediaWiki coding rules) can be found here

First part of this is merged, thanks!

The exclusions can now be sorted out.

The second part of this task can be found on this PR (removing exclusions and fixing linting errors/warnings)