wiki.techinc.nl/includes/parser
Tim Starling 9c3c0b704b Use array_fill_keys() instead of array_flip() if that reflects the developer's intention
array_fill_keys() was introduced in PHP 5.2.0 and works like
array_flip() except that it does only one thing (copying keys) instead
of two things (copying keys and values). That makes it faster and more
obvious.

When array_flip() calls were paired, I left them as is, because that
pattern is too cute. I couldn't kill something so cute.

Sometimes it was hard to figure out whether the values in array_flip()
result were used. That's the point of this change. If you use
array_fill_keys(), the intention is obvious.

Change-Id: If8d340a8bc816a15afec37e64f00106ae45e10ed
2021-06-15 00:11:10 +00:00
..
Hook FileRepo::findFile - support Authority 2021-05-26 19:01:12 -07:00
BlockLevelPass.php Don't p-wrap <aside> tags in extension HTML 2021-04-06 16:26:12 +02:00
CacheTime.php WikiPage: Document triggerOpportunisticLinksUpdate and related code 2021-05-05 02:03:30 +01:00
CoreMagicVariables.php Language: hard deprecate the noSeparators parameter to ::formatNum 2020-10-21 10:08:04 -04:00
CoreParserFunctions.php Make Parser::$mOutput private 2021-03-16 22:37:08 +00:00
CoreTagHooks.php Inline Parser::firstCallInit() into ::__construct() 2021-03-16 19:41:56 +00:00
DateFormatter.php Use more neutral or alternative language 2021-03-20 19:47:18 +00:00
DateFormatterFactory.php
LinkHolderArray.php Merge "Use static closures where safe to use" 2021-02-14 23:05:48 +00:00
MWTidy.php Deprecate MWTidy and TidyDriverBase::supportsValidate() 2021-03-16 12:29:55 -07:00
Parser.php Use Message::page instead of Message::title 2021-06-09 13:18:22 +00:00
ParserCache.php ParserCache: fix stats for metadata cache missed 2021-04-08 17:54:01 +02:00
ParserCacheFactory.php Convert ParserCache to PageRecord 2021-04-02 21:14:54 -06:00
ParserCacheMetadata.php Deprecate ParserCache::getKey and replace it with getMetadata 2020-10-13 08:31:22 -07:00
ParserFactory.php Parser: remove Title from method signatures 2021-04-29 18:11:46 +02:00
ParserOptions.php Clean up hard-deprecated Parser methods returning Revision 2021-04-26 13:59:53 -07:00
ParserOutput.php Use Message::page instead of Message::title 2021-06-09 13:18:22 +00:00
PPCustomFrame_Hash.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPDPart.php
PPDPart_Hash.php build: Updating mediawiki/mediawiki-phan-config to 0.10.5 2020-12-12 14:42:25 +01:00
PPDStack.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPDStack_Hash.php
PPDStackElement.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPDStackElement_Hash.php
PPFrame.php Fix even more PSR12.Properties.ConstantVisibility.NotFound 2020-05-16 00:28:41 +00:00
PPFrame_Hash.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPNode.php
PPNode_Hash_Array.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPNode_Hash_Attr.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPNode_Hash_Text.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPNode_Hash_Tree.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
PPTemplateFrame_Hash.php Improve docs from parser objects PPNode/PPFrame 2021-02-01 19:37:33 +00:00
Preprocessor.php Parser: initialize preprocessor in constructor 2021-03-16 22:37:40 +00:00
Preprocessor_Hash.php parser: convert Preprocessor to WANCache and inject dependencies 2021-01-11 20:21:10 -08:00
RemexStripTagHandler.php
RevisionOutputCache.php Implement caching for old revision HTML endpoint 2020-12-15 23:40:08 +01:00
Sanitizer.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
StripState.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00