wiki.techinc.nl/includes/api
Bartosz Dziewoński 485f66f174 Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
Find: /isset\(\s*([^()]+?)\s*\)\s*\?\s*\1\s*:\s*/
Replace with: '\1 ?? '

(Everywhere except includes/PHPVersionCheck.php)
(Then, manually fix some line length and indentation issues)

Then manually reviewed the replacements for cases where confusing
operator precedence would result in incorrect results
(fixing those in I478db046a1cc162c6767003ce45c9b56270f3372).

Change-Id: I33b421c8cb11cdd4ce896488c9ff5313f03a38cf
2018-05-30 18:06:13 -07:00
..
i18n Localisation updates from https://translatewiki.net. 2018-05-29 22:01:52 +02:00
ApiAMCreateAccount.php Remove "@author Bryan Davis" and "Brad Jorsch" annotations 2017-06-26 15:25:46 -06:00
ApiAuthManagerHelper.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiBase.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiBlock.php Improve test coverage for ApiBlock.php to 100% 2018-03-26 18:17:32 +03:00
ApiChangeAuthenticationData.php Remove "@author Bryan Davis" and "Brad Jorsch" annotations 2017-06-26 15:25:46 -06:00
ApiCheckToken.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiClearHasMsg.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiClientLogin.php Remove "@author Bryan Davis" and "Brad Jorsch" annotations 2017-06-26 15:25:46 -06:00
ApiComparePages.php Fix called function case in a bunch of places 2018-01-22 09:10:09 -08:00
ApiContinuationManager.php API: i18n for warnings and errors 2016-12-06 10:20:48 -05:00
ApiCSPReport.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiDelete.php Improve test coverage for ApiDelete.php 2018-03-26 14:36:11 +03:00
ApiDisabled.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiEditPage.php Get ~100% test coverage for ApiEditPage.php and fix a couple of bugs 2018-03-28 15:33:24 +03:00
ApiEmailUser.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiErrorFormatter.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiExpandTemplates.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFeedContributions.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFeedRecentChanges.php Drop the 'CategorizedRecentChanges' feature 2018-02-15 10:45:10 -08:00
ApiFeedWatchlist.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiFileRevert.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatBase.php Convert OutputHandler functions to a class 2018-03-20 21:11:32 -07:00
ApiFormatFeedWrapper.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatJson.php Add more checks to ApiStructureTest.php 2018-04-08 15:58:06 +03:00
ApiFormatNone.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatPhp.php Add more checks to ApiStructureTest.php 2018-04-08 15:58:06 +03:00
ApiFormatRaw.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatXml.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiHelp.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiHelpParamValueMessage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiImageRotate.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiImport.php A few doc comment fixups 2017-12-04 11:11:52 +11:00
ApiLinkAccount.php Remove "@author Bryan Davis" and "Brad Jorsch" annotations 2017-06-26 15:25:46 -06:00
ApiLogin.php BotPasswords: Indicate when a password needs reset 2018-05-04 09:48:23 -04:00
ApiLogout.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiMain.php API: Introduce "templated parameters" 2018-05-16 16:19:31 -04:00
ApiManageTags.php Make API documentation links language aware 2017-04-05 11:08:25 -04:00
ApiMergeHistory.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiMessage.php Split ApiMessage to class per file 2018-05-27 00:31:30 +00:00
ApiMessageTrait.php Split ApiMessage to class per file 2018-05-27 00:31:30 +00:00
ApiModuleManager.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiMove.php Test ApiMove 2018-04-15 14:13:08 +03:00
ApiOpenSearch.php A few doc comment fixups 2017-12-04 11:11:52 +11:00
ApiOptions.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiPageSet.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiParamInfo.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiParse.php Skins: getDefaultStyles can now define render blocking CSS 2018-04-26 13:00:19 -07:00
ApiPatrol.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiProtect.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiPurge.php Swap isset by null check in ApiSetNotificationTimestamp/ApiPurge 2018-04-05 12:39:24 +02:00
ApiQuery.php Rename ApiQueryContributions to ApiQueryUserContribs to match api module name 2018-05-26 23:07:15 +00:00
ApiQueryAllCategories.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllDeletedRevisions.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
ApiQueryAllImages.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryAllLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllMessages.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllPages.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllRevisions.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryAllUsers.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryAuthManagerInfo.php Remove "@author Bryan Davis" and "Brad Jorsch" annotations 2017-06-26 15:25:46 -06:00
ApiQueryBacklinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryBacklinksprop.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiQueryBase.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryBlocks.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryCategories.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryCategoryInfo.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryCategoryMembers.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryContributors.php ApiQueryContributors: Use correct variable 2018-03-03 23:31:02 -05:00
ApiQueryDeletedRevisions.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
ApiQueryDeletedrevs.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
ApiQueryDisabled.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryDuplicateFiles.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryExternalLinks.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiQueryExtLinksUsage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryFilearchive.php Pass $key into CommentStore methods and use MediawikiServices 2018-02-05 15:34:12 +00:00
ApiQueryFileRepoInfo.php Make API documentation links language aware 2017-04-05 11:08:25 -04:00
ApiQueryGeneratorBase.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryImageInfo.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
ApiQueryImages.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryInfo.php Add varianttitles parameter to API query prop=info 2018-04-09 22:03:19 +00:00
ApiQueryIWBacklinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryIWLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLangBacklinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLangLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLogEvents.php Don't target log_user_text for registered users 2018-03-06 16:22:35 +00:00
ApiQueryMyStashedFiles.php Make API documentation links language aware 2017-04-05 11:08:25 -04:00
ApiQueryPagePropNames.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryPageProps.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryPagesWithProp.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryPrefixSearch.php build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0 2017-06-26 17:14:31 +00:00
ApiQueryProtectedTitles.php Pass $key into CommentStore methods and use MediawikiServices 2018-02-05 15:34:12 +00:00
ApiQueryQueryPage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryRandom.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryRecentChanges.php Merge "Add ability to filter based on rc_title in API" 2018-05-24 10:13:06 +00:00
ApiQueryRevisions.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryRevisionsBase.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQuerySearch.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQuerySiteinfo.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiQueryStashImageInfo.php Make API documentation links language aware 2017-04-05 11:08:25 -04:00
ApiQueryTags.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryTokens.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryUserContribs.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiQueryUserInfo.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryUsers.php Pass $key into CommentStore methods and use MediawikiServices 2018-02-05 15:34:12 +00:00
ApiQueryWatchlist.php Replace rc_patrolled values with contants, part I 2018-04-11 22:35:31 +02:00
ApiQueryWatchlistRaw.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiRawMessage.php Split ApiMessage to class per file 2018-05-27 00:31:30 +00:00
ApiRemoveAuthenticationData.php Remove "@author Bryan Davis" and "Brad Jorsch" annotations 2017-06-26 15:25:46 -06:00
ApiResetPassword.php Merge "Remove "@author Bryan Davis" and "Brad Jorsch" annotations" 2017-06-27 06:02:23 +00:00
ApiResult.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiRevisionDelete.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiRollback.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiRsd.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiSerializable.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiSetNotificationTimestamp.php Swap isset by null check in ApiSetNotificationTimestamp/ApiPurge 2018-04-05 12:39:24 +02:00
ApiSetPageLanguage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiStashEdit.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiTag.php Fix inconsistent capitalization of different method calls 2017-12-27 12:35:13 +01:00
ApiTokens.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiUnblock.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiUndelete.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiUpload.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiUsageException.php Split ApiUsageException and UsageException to class per file 2018-05-27 20:43:55 +00:00
ApiUserrights.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
ApiValidatePassword.php Make API documentation links language aware 2017-04-05 11:08:25 -04:00
ApiWatch.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
IApiMessage.php Split ApiMessage to class per file 2018-05-27 00:31:30 +00:00
SearchApi.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
UsageException.php Split ApiUsageException and UsageException to class per file 2018-05-27 20:43:55 +00:00