wiki.techinc.nl/includes
TChin 47adb6d65a Refactor global variables to use MediaWikiServices instead
Automatically refactors wg prefixed globals to use MediaWikiServices config using Rector. Doesn't include files that set globals or files that fail CI.

Rector Gist: https://gist.github.com/tchin25/7cc54f6d23aedef010b22e4dfbead228

* This patch uses a modified source code rector library for our specific use case and the rector will have different effects without it.

A writeup for future reference is here: https://meta.wikimedia.org/wiki/User:TChin_(WMF)/Using_Rector_On_MediaWiki

Change-Id: I1a691f01cd82e60bf41207d32501edb4b9835e37
2022-01-10 13:55:53 -05:00
..
actions Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
api Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
auth Fix indent in TemporaryPasswordPrimaryAuthenticationProvider 2021-12-09 22:42:35 +01:00
block Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
cache Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
changes Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
changetags Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
collation Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
CommentFormatter Call LinkBatch::setCaller in CommentParser 2021-12-16 22:26:40 +01:00
composer Pass link in a map 2021-12-23 17:54:05 +00:00
config Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
content Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
context Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00
dao
db Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
debug Fix typos in comments (L) 2022-01-09 22:54:04 +05:30
deferred Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
diff Fix typos in comments (C-D) 2021-12-30 18:00:02 +05:30
edit Introduced PreparedUpdate to replace PreparedEdit 2021-12-20 21:19:52 +01:00
editpage Fix typos in comments (I-J) 2021-12-30 20:38:04 +05:30
exception Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
export Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
externalstore Fix typos in comments (E-H) 2021-12-30 18:14:43 +05:30
filebackend LockManager: distinguish conflicts from other kinds of lock errors 2021-11-09 21:58:20 +00:00
filerepo Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
gallery Add a ParserModifyImageHTML hook for PageImages 2021-12-15 15:33:16 +11:00
historyblob HistoryBlobStub: add getLocation() to get $mOldId 2021-10-19 18:23:30 +00:00
Hook Fix typos in comments (E-H) 2021-12-30 18:14:43 +05:30
HookContainer Fix typos in comments (E-H) 2021-12-30 18:14:43 +05:30
htmlform Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
http Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
import Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
installer Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
interwiki Use getWithSetCallback() instead of get() + set() 2021-11-18 18:58:13 +00:00
jobqueue Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
json
language Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
languages Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
libs Fix typos in comments (S) 2022-01-09 23:28:53 +05:30
linkeddata
linker Add comment flag to LinkRenderer 2021-11-02 13:03:20 +01:00
logging Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
mail Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
media Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
Message Add Message/MessageValue user group member parameter type 2021-11-16 11:24:35 -05:00
Navigation
objectcache Fix typos in comments (S) 2022-01-09 23:28:53 +05:30
page Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
pager Deprecate mediawiki.pager.tablePager module for more generic module 2022-01-07 08:26:52 -08:00
ParamValidator/TypeDef UserDef: creating from id 0 should be unknown user, not context ip 2021-09-14 03:25:40 +00:00
parser Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
password Fix typos in comments (N-R) 2022-01-09 23:14:44 +05:30
Permissions Merge "Make some generic array type hints in PHPDocs more specific" 2021-12-18 16:10:42 +00:00
poolcounter Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00
preferences preferences: Introduce SignatureValidatorFactory service 2021-12-14 12:10:32 +00:00
profiler profiler: Remove deprecated profileIn/profileOut 2022-01-02 22:25:38 +01:00
rcfeed Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
registration Fix typos in comments (E-H) 2021-12-30 18:14:43 +05:30
resourceloader Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
Rest Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
Revision Fix typos in comments (N-R) 2022-01-09 23:14:44 +05:30
revisiondelete Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
revisionlist
search Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
session Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
Settings Settings: Fix GlobalConfigBuilder use of GLOBALS for PHP 8.1 2021-12-17 00:19:49 +00:00
shell Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
site Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
skins Fix typos in comments (S) 2022-01-09 23:28:53 +05:30
sparql
specialpage Fix typos in comments (S) 2022-01-09 23:28:53 +05:30
specials Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
Storage Fix typos in comments (N-R) 2022-01-09 23:14:44 +05:30
templates
tidy Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
title Merge "Make some generic array type hints in PHPDocs more specific" 2021-12-18 16:10:42 +00:00
upload Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
user Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
utils Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
watcheditem Fix typos in comments (N-R) 2022-01-09 23:14:44 +05:30
watchlist
widget Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
xml Use LanguageNameUtils constants instead of strings 2021-12-05 22:13:34 +01:00
.htaccess
ActorMigration.php
ActorMigrationBase.php
AutoLoader.php Merge "LinksUpdate refactor" 2022-01-10 18:34:18 +00:00
BadFileLookup.php Use getWithSetCallback() instead of get() + set() 2021-11-18 18:58:13 +00:00
CategoriesRdf.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
Category.php Remove Title from signatures in CategoryViewer 2021-09-13 16:14:06 +00:00
CategoryViewer.php Remove or replace usages of "sane" 2021-11-22 15:48:03 +00:00
CommentStore.php Fix various typos in documentation 2021-08-23 09:03:44 +00:00
CommentStoreComment.php
config-merge-strategies.php Settings: Add config merge strategies to apply on settings 2021-12-09 20:37:54 +00:00
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php Fix typos in comments (C-D) 2021-12-30 18:00:02 +05:30
DefaultSettings.php Merge "Write to multiple categorylinks tables on update" 2022-01-10 18:34:25 +00:00
Defines.php objectcache: make CACHE_MEMCACHED alias "memcached-php" 2021-11-10 18:55:47 +00:00
DeprecatedGlobal.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
DerivativeRequest.php build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
DevelopmentSettings.php Set $wgIncludejQueryMigrate to false as default 2021-08-29 02:09:35 +02:00
DummyLinker.php Introduce CommentFormatter 2021-09-28 11:13:03 -07:00
EditPage.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
Emptiable.php
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
FauxRequestUpload.php
FauxResponse.php
FeedUtils.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
FileDeleteForm.php Change return format of DeletePage again 2021-11-29 15:09:42 +00:00
ForeignResourceManager.php
ForkController.php
FormOptions.php
GitInfo.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
GlobalFunctions.php Hard deprecate wfGetCache() and wfGetMainCache() 2022-01-09 22:25:00 +01:00
HeaderCallback.php
Hooks.php
Html.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
Linker.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
LinkFilter.php
ListToggle.php
MagicWord.php
MagicWordArray.php docs: Fix nullable documentation for class properties 2021-09-24 00:54:53 +00:00
MagicWordFactory.php
MediaWiki.php Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
MediaWikiServices.php Fix typos in comments (M) 2022-01-09 23:00:20 +05:30
MediaWikiVersionFetcher.php
MergeHistory.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
MovePage.php Drop pr_user from page_restrictions 2021-12-06 14:15:39 +01:00
MWGrants.php Reapply "GrantsInfo service to replace MWGrants" 2021-09-18 08:52:22 +00:00
MWNamespace.php Emit correct version in deprecation warnings for MWNamespace 2021-12-27 12:37:36 +00:00
MWTimestamp.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
NoLocalSettings.php NoLocalSettings: Pass an EmptyBagOStuff to TemplateParser 2021-11-03 17:23:26 +00:00
OrderedStreamingForkController.php
OutputHandler.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
OutputPage.php Fix typos in comments (N-R) 2022-01-09 23:14:44 +05:30
PageProps.php Soft deprecate PageProps::getInstance() 2021-09-26 00:22:26 +00:00
PathRouter.php
PHPVersionCheck.php Tweak error message for missing composer dependencies 2021-11-17 09:53:57 -08:00
Pingback.php
ProtectionForm.php
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php
ServiceWiring.php Merge "Introduced PreparedUpdate to replace PreparedEdit" 2021-12-20 20:41:14 +00:00
Setup.php Fix typos in comments (S) 2022-01-09 23:28:53 +05:30
SiteConfiguration.php Fix typos in comments (S) 2022-01-09 23:28:53 +05:30
SiteStats.php SiteStats: Replace usages of "sane" 2021-11-22 13:38:40 +00:00
SiteStatsInit.php
Status.php
StreamFile.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
StubGlobalUser.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
StubObject.php StubObject: add magic __get() and __set() 2021-09-04 05:37:25 +00:00
StubUserLang.php
TemplateParser.php TemplateParser: Remove support for deprecated cache-disabling parameter 2021-09-17 19:48:54 +00:00
TemplatesOnThisPageFormatter.php
Title.php DeprecationHelper: avoid closures 2021-12-10 17:15:13 +00:00
TitleArray.php docs: Declare UserArray/TitleArray as Iterator<User>/Iterator<Title> 2021-08-30 22:37:54 +02:00
TitleArrayFromResult.php docs: Declare UserArray/TitleArray as Iterator<User>/Iterator<Title> 2021-08-30 22:37:54 +02:00
TitleFactory.php Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs 2021-11-29 14:23:26 -05:00
TrackingCategories.php Register omitted tracking categories 2021-10-16 12:14:47 +00:00
WebRequest.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00
WebRequestUpload.php
WebResponse.php Refactor global variables to use MediaWikiServices instead 2022-01-10 13:55:53 -05:00
WebStart.php Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
WikiMap.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
WikiReference.php Remove or replace usages of "sane" 2021-11-22 13:35:17 +00:00