[PHPCodeSniffer](https://www.mediawiki.org/wiki/Continuous_integration/PHP_CodeSniffer) helps us stick to same coding standards across MediaWiki and it's extensions. Currently `TextExtracts` [phpcs config](https://phabricator.wikimedia.org/diffusion/ETEX/browse/master/.phpcs.xml) differs from the MediaWiki one - the following sniffs are disabled:
```
MediaWiki.Commenting.FunctionComment.MissingParamComment
MediaWiki.Commenting.FunctionComment.MissingParamTag
MediaWiki.Commenting.FunctionComment.MissingReturn
MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic
MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
```
Runing `phpcs` without those sniffs gives 24 errors and 9 warnings in 4 files.
== Plan (YMMV)
[] Remove a sniff from the `.phpcs.xml` file, run `composer phpcs` or `phpcs -p -s`, get a list of violations,
provide patches in [Wikimedia Gerrit](https://www.mediawiki.org/wiki/Gerrit/Tutorial) to fix the violations. **If** you fix all violations for one sniff, also commit the removal of the exclusion from `.phpcs.xml` too.
== Developer Notes
CodeSniffer output: P5743