Continuous integration/PHP CodeSniffer

PHP CodeSniffer is a utility to detect code style errors in PHP code. We use composer as a wrapper to manage the CodeSniffer version, dependencies, and execution.

First, fetch the development dependencies by running.

For most MediaWiki extensions, skins and PHP libraries, executing  will also execute CodeSniffer. Due to the large size of MediaWiki core, it is exposed as a separate command,. If you run into issues with composer timing out, you can run it directly with.