Commit graph

7 commits

Author SHA1 Message Date
Siebrand Mazeland
e304842ff2 Set visibility for class property of RegexlikeReplacer
Only used in StringUtils::delimiterReplace(). Search core and 600+
extensions.

Change-Id: Ibbf0edd1143f7bd2dc39e9ad913d1e4a38f60dfc
2013-11-07 23:05:55 +01:00
Siebrand Mazeland
e58e2c12a7 Set visibility on class properties of ExplodeIterator
Set to private. Only used in StringUtils::explode(). Searched
core and 600+ extensions.

Change-Id: Idbf981d1864f45bbb4adce08803dc693d9a5c200
2013-11-07 23:02:03 +01:00
Siebrand Mazeland
26ebff9f10 Set visibility on class properties of ReplacementArray
Usages in:

Core:
* HtmlFormatter: No referenced properties.
* Language: No referenced properties.
* LanguageConverter subclasses: I think there are no referenced properties
  here, but not 100% certain.
* Tidy: No referenced properties.

Extensions:
* AbuseFilter: No referenced properties.
* LiquidThreads: No referenced properties.
* Transliterator: No referenced properties.
* WYSIWIG: No referenced properties.

Change-Id: I1b2e3360468cbfc803ab884f999437e9b8c3758d
2013-11-07 22:48:37 +01:00
Siebrand Mazeland
14de776960 Set visibility of class properties of HashtableReplacer
Set to private. Not referenced in core or 600+ checked extensions.

Change-Id: I7275aa99fb9e4c0c0df9756c1b3433884a71f04c
2013-11-07 22:46:41 +01:00
Siebrand Mazeland
7a95d47961 Address some PHP CodeSniffer errors and warnings
Change-Id: I495481e3532834f1f8a45cda9402d609de7e2bd7
2013-11-07 22:32:16 +01:00
Siebrand Mazeland
655a03d26f Update formatting
Change-Id: I5ec6257295261caab6cb2d9eb9d32ce76cae08a2
2013-11-04 10:29:25 +01:00
Tim Starling
e4bcbe722e Introduce includes/utils directory
These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.

These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.

I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:

* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()

Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.

Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe
2013-11-04 11:00:42 +11:00
Renamed from includes/StringUtils.php (Browse further)