wiki.techinc.nl/includes
Thiemo Kreuz 3a66680ec5 Simplify a few list() that only care about the first element
The nice thing about explode() is that the resulting array is
guaranteed to contain at least one element. The array can not be
empty.

In some of these cases it might be possible to use strstr() instead,
but that returns an empty string when the needle character is not
found. explode() returns the original string in this case.

Change-Id: I6ad1f3273defeaf36e2305fd871eaaf9d3c1e134
2019-05-17 16:54:47 +02:00
..
actions Use HTTPS instead of protocol relative for WMF links 2019-05-17 08:12:10 +02:00
api Localisation updates from https://translatewiki.net. 2019-05-16 08:23:33 +02:00
auth Introduce a BlockManager service 2019-04-29 17:47:55 +01:00
block Fix AbstractBlock param types in documentation 2019-05-14 13:42:50 +01:00
cache localisation: Inject 'directory' option to LCStore classes 2019-05-14 16:35:29 +00:00
changes watchlist: fix nonsensical timestamp/boolean comparisons in EnhancedRecentChanges 2019-05-09 18:27:02 -07:00
changetags changetags: Remove deprecated unused method purgeTagUsageCache() 2019-05-11 16:03:01 +01:00
clientpool clientpool: Remove unused parameter from constructor header 2019-04-15 21:15:29 +01:00
collation Remove several methods, deprecated in 1.32 2019-05-09 11:36:44 -07:00
composer Add some more missing limit parameters to explode() calls 2019-04-05 14:34:39 +00:00
config Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
content Unstub $wgLang for PageContentLanguage hook 2019-05-16 18:49:53 +02:00
context context: Replace deprecated use of SkinFactory::getDefaultInstance() 2019-04-15 20:21:21 +01:00
dao dao: Correct return type doc for getLoadBalancer() 2019-04-11 22:24:43 +00:00
db Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
debug Fix class name handling in DeprecationHelper 2019-04-19 01:09:25 -07:00
deferred Reinstate small category refresh logic in LinksDeletionUpdate 2019-04-23 17:07:07 -07:00
diff Merge "diff: Wrap condition around brackets for more readability" 2019-04-16 18:46:20 +00:00
edit Avoid extra parse/save delay for users with non-canonical parser options 2019-04-14 02:00:16 +00:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
export Merge "allow xml page content or metadata dumps to target specific namespaces" 2019-05-13 06:51:45 +00:00
externalstore Deprecate the Http class 2019-05-06 12:07:26 +03:00
filebackend Fix/suppress misc phan errors (#5) 2019-04-05 15:53:37 -07:00
filerepo Remove FileRepoStatus 2019-05-14 16:55:59 +01:00
gallery Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
historyblob Move HistoryBlob classes to own files 2019-03-25 20:29:47 +01:00
htmlform Remove several methods, deprecated in 1.32 2019-05-09 11:36:44 -07:00
http Return result from HttpRequestFactory get and post methods 2019-05-13 11:32:17 +02:00
import Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
installer Simplify a few list() that only care about the first element 2019-05-17 16:54:47 +02:00
interwiki Clean up some database domain ID related code and fix some comments 2019-03-29 14:30:21 -07:00
jobqueue jobqueue: Remove deprecated unused method pushLazyJobs() 2019-05-13 10:37:28 +00:00
json
libs Merge "objectcache: restore a simple version of the apc.serializer check in APCUBagOStuff" 2019-05-17 10:01:41 +00:00
linkeddata linkeddata: Fix broken check in PageDataRequestHandler 2019-04-01 11:26:48 +00:00
linker Update LinkRenderer to use NamespaceInfo 2019-05-07 14:52:17 +02:00
logging SECURITY: LogPager: Don't STRAIGHT_JOIN when using log_search 2019-05-02 10:54:42 -07:00
mail Deprecate User::isBlocked() 2019-04-25 11:47:44 -04:00
media Simplify a few list() that only care about the first element 2019-05-17 16:54:47 +02:00
objectcache Remove unused EventRelayer code from ObjectCache::newWANCacheFromParams() 2019-05-09 16:13:15 -07:00
page page: Remove deprecated/unused methods in PageArchive class 2019-05-09 12:23:58 -07:00
pager Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
parser Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
password Hard deprecate Password::equals() 2019-04-12 18:39:14 -07:00
Permissions Permissions: Declare the $nsInfo property and document it in constructor 2019-05-05 17:21:39 +01:00
poolcounter Avoid/Replace usage of deprecated wfMemcKey() function 2019-05-02 14:27:31 +00:00
preferences Update DefaultPreferencesFactory to use NamespaceInfo 2019-05-06 12:19:13 +03:00
profiler Move SectionProfileCallback to its own file 2019-04-14 19:25:56 +00:00
rcfeed rcfeed: Replace usage of deprecated class RCFeedEngine (in comments) 2019-04-30 12:07:37 +00:00
registration registration: Deprecate ExtensionRegistry->load() in favor of ->queue() 2019-04-19 19:07:23 +01:00
resourceloader Remove several methods, deprecated in 1.32 2019-05-09 11:36:44 -07:00
Revision Merge "Force user id and actor id to 0 when loading from remote wikis" 2019-05-06 15:19:38 +00:00
revisiondelete RevDel: Avoid log_search rows with empty values for target_author_actor 2019-03-21 16:42:48 -04:00
revisionlist Move class RevisionListBase and friends to own file 2019-03-14 19:50:40 +01:00
search SearchResult: MW version number should be a string in wfDeprecated call 2019-05-14 12:36:30 +00:00
session Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
shell shell: annotate return types 2019-04-26 13:54:41 -07:00
site Remove wgSitesCacheFile and rebuildSitesCache.php (unused) 2019-03-15 20:03:44 +00:00
skins Use HTTPS instead of protocol relative for WMF links 2019-05-17 08:12:10 +02:00
sparql
specialpage Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
specials Simplify a few list() that only care about the first element 2019-05-17 16:54:47 +02:00
Storage Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
templates ChangesList: Comment out newlines in EnhancedChangesListGroup.mustache 2019-04-03 06:37:41 +02:00
tidy Collapse some nested if statements 2019-04-04 19:02:22 +00:00
title Merge "title: Convert binary regexp to use Unicode code points" 2019-05-15 11:20:03 +00:00
upload Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
user user: Remove deprecated and unused method getPasswordValidity() 2019-05-10 00:13:20 +01:00
utils Move ClassCollector to its own file 2019-04-14 19:46:18 +00:00
watcheditem watchlist: cleanup various method/variable names and comments in watchlist/store code 2019-05-09 17:44:16 -07:00
widget Make powersearch form use POST if JS is disabled 2019-05-08 13:39:57 -07:00
.htaccess
ActorMigration.php Use the ?? feature instead of isset() where it makes sense 2019-03-24 22:40:49 +01:00
AjaxDispatcher.php
AjaxResponse.php Use https://www.php.net/ instead of https://secure.php.net/ 2019-04-12 06:44:48 +02:00
AutoLoader.php Introduce PermissionManager service 2019-04-05 14:54:51 +00:00
Autopromote.php Deprecate User::isBlocked() 2019-04-25 11:47:44 -04:00
Block.php Fix Block::newLoad for IPv6 range blocks - follow-up to Ie8bebd8 2019-05-08 13:22:46 -05:00
CategoriesRdf.php
Category.php Reinstate small category refresh logic in LinksDeletionUpdate 2019-04-23 17:07:07 -07:00
CategoryFinder.php
CategoryViewer.php Use short assignment operator in PHP 2019-03-07 09:55:49 +01:00
CommentStore.php Fix misc phan errors by adjusting documentation (#8) 2019-04-05 23:31:16 -07:00
CommentStoreComment.php Fix CommentStoreComment RawMessage construction 2019-02-13 11:17:10 -05:00
ConfiguredReadOnlyMode.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
ContentSecurityPolicy.php CSP: Minor cleanup in ContentSecurityPolicy.php 2019-03-20 23:16:01 +01:00
DefaultSettings.php Use HTTPS instead of protocol relative for WMF links 2019-05-17 08:12:10 +02:00
Defines.php Make the XML dump schema version configurable. 2019-03-21 12:43:32 +01:00
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php DevelopmentSettings: Remove unused globals & declare $wgSQLMode 2019-04-13 17:54:30 +00:00
DummyLinker.php Drop Linker::formatTemplates, deprecated in 1.28 and unused 2019-02-08 17:43:33 -08:00
EditPage.php Merge "Remove unused title parameter from EditPage::getEditToolbar()" 2019-05-10 16:20:09 +00:00
EventRelayerGroup.php Drop EventRelayerGroup::singleton(), deprecated in 1.27 and unused 2019-02-09 07:15:34 +00:00
FauxRequest.php WebRequest: Change getFullRequestURL() to use local getProtocol() 2019-04-20 00:58:17 +01:00
FauxResponse.php Move FauxResponse class to own file 2019-03-02 18:55:13 +00:00
FeedUtils.php Avoid use of deprecated ObjectCache::getMainWANInstance method 2019-03-01 02:38:55 +00:00
FileDeleteForm.php Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ForeignResourceManager.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
ForkController.php
FormOptions.php Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
GitInfo.php build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 2019-02-07 18:39:42 +00:00
GlobalFunctions.php GlobalFunctions: Version for hard & soft deprecation must match 2019-05-09 15:56:40 +01:00
HeaderCallback.php Fix HeaderCallback failing on headers without a colon 2019-02-19 18:25:14 +01:00
Hooks.php
Html.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
Linker.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
LinkFilter.php Refactor calls to deprecated function Content::getNativeData() 2019-02-15 17:48:01 +00:00
ListToggle.php
MagicWord.php Simplify by using ?: operator 2019-04-15 15:05:00 +02:00
MagicWordArray.php Simplify by using ?: operator 2019-04-15 15:05:00 +02:00
MagicWordFactory.php
MediaWiki.php specials: Add $subpage param to RedirectSpecialPage::getRedirectQuery 2019-04-15 14:44:38 +00:00
MediaWikiServices.php Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
MediaWikiVersionFetcher.php
MergeHistory.php Improve documentation of constants throughout the codebase 2019-02-26 14:02:50 +01:00
Message.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
MovePage.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
MWGrants.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
MWNamespace.php MWNamespace: Remove deprecated method ::canTalk() and test suit 2019-04-20 21:07:50 +01:00
MWTimestamp.php
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php Simplify a few list() that only care about the first element 2019-05-17 16:54:47 +02:00
OutputPage.php Use HTTPS instead of protocol relative for WMF links 2019-05-17 08:12:10 +02:00
PageProps.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
PathRouter.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
PHPVersionCheck.php Use https://www.php.net/ instead of https://secure.php.net/ 2019-04-12 06:44:48 +02:00
Pingback.php Deprecate the Http class 2019-05-06 12:07:26 +03:00
ProtectionForm.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php Drop clearCache() from (Configured)ReadOnlyMode 2019-04-10 19:39:34 +03:00
Revision.php Move getPrevious/NextRevision logic out of Title 2019-05-05 21:08:46 +03:00
ServiceWiring.php Avoid various phpstorm warnings in MediaWikiServices due to "object" return hint 2019-05-09 15:14:39 +00:00
Setup.php Hypenate ChronologyProtector HTTP headers 2019-04-23 11:37:53 -07:00
SiteConfiguration.php Get rid of unnecessary func_get_args() and friends 2019-04-12 20:17:01 +00:00
SiteStats.php
SiteStatsInit.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
Status.php Status: Make various improvements to the Status class 2019-03-04 00:44:34 +00:00
StreamFile.php
StubObject.php StubObject: Use 'self' instead of 'StubObject' (or <ClassName>) 2019-04-17 14:01:17 +01:00
StubUserLang.php Split StubObject.php to have one class in one file 2019-04-14 14:20:42 +00:00
TemplateParser.php TemplateParser: Use operator short cut where necessary 2019-04-11 21:48:07 +01:00
TemplatesOnThisPageFormatter.php Make EditPage::getTemplates avoid page table query spam 2019-03-15 02:34:00 -07:00
Title.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
TitleArray.php
TitleArrayFromResult.php
TrackingCategories.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
WebRequest.php Allow the request ID to be passed in via the X-Request-Id header 2019-05-15 07:27:38 +00:00
WebRequestUpload.php Use https://www.php.net/ instead of https://secure.php.net/ 2019-04-12 06:44:48 +02:00
WebResponse.php Convert a few call_user_func*() calls to native PHP syntax 2019-03-07 19:25:40 -08:00
WebStart.php Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
WikiMap.php Optimize WikiMap::getWikiFromUrl() for the common local wiki case 2019-05-07 22:10:19 +00:00
WikiReference.php
Xml.php Collapse some nested if statements 2019-04-04 19:02:22 +00:00
XmlJsCode.php ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00
XmlSelect.php