wiki.techinc.nl/includes/utils
Kunal Mehta 24ae4318b3 Don't use phpcs:ignoreFile to selectively ignore sniffs
Because it doesn't work. `phpcs:ignoreFile` is intended as a performance
shortcut, and gives up on the file as soon as that token is found.
Instead, use `phpcs:disable` which does support selectively disabling
some sniffs. And since disabling is local to the file, there's no need
to re-enable it at the bottom of the file.

<https://github.com/squizlabs/PHP_CodeSniffer/issues/1903> has some
relevant discussion and clarification from upstream on this.

And make the files that are now being re-enabled pass PHPCS.

Change-Id: Ia4d8c45045f61cf9f24eb1d8631ff98d99c82d69
2018-04-08 17:08:53 -07:00
..
AutoloadGenerator.php Don't use phpcs:ignoreFile to selectively ignore sniffs 2018-04-08 17:08:53 -07:00
AvroValidator.php
BatchRowIterator.php
BatchRowUpdate.php
BatchRowWriter.php Remove leading backslashes from "use \…" tags 2017-12-28 16:30:05 +01:00
ExecutableFinder.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
FileContentsHasher.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
MWCryptHKDF.php
MWCryptRand.php
MWFileProps.php
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
ZipDirectoryReader.php
ZipDirectoryReaderError.php

The classes in this directory are general utilities for use by any part of
MediaWiki. They do not favour any particular user interface and are not
constrained to serve any particular feature. This is similar to includes/libs,
except that some dependency on the MediaWiki framework (such as the use of
MWException, Status or wfDebug()) disqualifies them from use outside of
MediaWiki without modification.

Utilities should not use global configuration variables, rather they should rely
on the caller to configure their behaviour.