From 2e7d867478f1c9a34994236555bc493535da5da8 Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Wed, 16 Nov 2011 00:17:26 +0000 Subject: [PATCH] Removed the 'eclipse helper' bit on top of every API module It's a parctice that dates back to 2006 when the API was first written, and frankly isn't covered by the coding conventions. Same thing with the docblocks, they're all copypasted with some bits changed and don't even make sense if you look at them in the genereated code docs. I don't feel that any of us depend on this anymore (get a better IDE), so in the inerest of consistancy it's time we said goodbye to it. --- includes/api/ApiBlock.php | 5 ----- includes/api/ApiDelete.php | 5 ----- includes/api/ApiDisabled.php | 5 ----- includes/api/ApiEditPage.php | 5 ----- includes/api/ApiEmailUser.php | 5 ----- includes/api/ApiExpandTemplates.php | 5 ----- includes/api/ApiFeedWatchlist.php | 5 ----- includes/api/ApiFileRevert.php | 5 ----- includes/api/ApiFormatBase.php | 5 ----- includes/api/ApiFormatDbg.php | 5 ----- includes/api/ApiFormatDump.php | 5 ----- includes/api/ApiFormatJson.php | 5 ----- includes/api/ApiFormatPhp.php | 5 ----- includes/api/ApiFormatRaw.php | 5 ----- includes/api/ApiFormatTxt.php | 5 ----- includes/api/ApiFormatWddx.php | 5 ----- includes/api/ApiFormatXml.php | 5 ----- includes/api/ApiFormatYaml.php | 5 ----- includes/api/ApiHelp.php | 5 ----- includes/api/ApiImport.php | 5 ----- includes/api/ApiLogin.php | 5 ----- includes/api/ApiLogout.php | 5 ----- includes/api/ApiMain.php | 5 ----- includes/api/ApiMove.php | 5 ----- includes/api/ApiOpenSearch.php | 5 ----- includes/api/ApiPageSet.php | 5 ----- includes/api/ApiParamInfo.php | 5 ----- includes/api/ApiParse.php | 5 ----- includes/api/ApiPatrol.php | 4 ---- includes/api/ApiProtect.php | 5 ----- includes/api/ApiPurge.php | 4 ---- includes/api/ApiQuery.php | 5 ----- includes/api/ApiQueryAllCategories.php | 5 ----- includes/api/ApiQueryAllLinks.php | 5 ----- includes/api/ApiQueryAllUsers.php | 5 ----- includes/api/ApiQueryAllimages.php | 5 ----- includes/api/ApiQueryAllmessages.php | 5 ----- includes/api/ApiQueryAllpages.php | 5 ----- includes/api/ApiQueryBacklinks.php | 5 ----- includes/api/ApiQueryBase.php | 5 ----- includes/api/ApiQueryBlocks.php | 5 ----- includes/api/ApiQueryCategories.php | 5 ----- includes/api/ApiQueryCategoryInfo.php | 5 ----- includes/api/ApiQueryCategoryMembers.php | 5 ----- includes/api/ApiQueryDeletedrevs.php | 5 ----- includes/api/ApiQueryDisabled.php | 5 ----- includes/api/ApiQueryDuplicateFiles.php | 5 ----- includes/api/ApiQueryExtLinksUsage.php | 5 ----- includes/api/ApiQueryExternalLinks.php | 5 ----- includes/api/ApiQueryFilearchive.php | 5 ----- includes/api/ApiQueryIWBacklinks.php | 5 ----- includes/api/ApiQueryIWLinks.php | 5 ----- includes/api/ApiQueryImageInfo.php | 5 ----- includes/api/ApiQueryImages.php | 5 ----- includes/api/ApiQueryInfo.php | 5 ----- includes/api/ApiQueryLangBacklinks.php | 5 ----- includes/api/ApiQueryLangLinks.php | 5 ----- includes/api/ApiQueryLinks.php | 5 ----- includes/api/ApiQueryLogEvents.php | 5 ----- includes/api/ApiQueryPageProps.php | 5 ----- includes/api/ApiQueryProtectedTitles.php | 5 ----- includes/api/ApiQueryQueryPage.php | 5 ----- includes/api/ApiQueryRandom.php | 5 ----- includes/api/ApiQueryRecentChanges.php | 5 ----- includes/api/ApiQueryRevisions.php | 5 ----- includes/api/ApiQuerySearch.php | 5 ----- includes/api/ApiQuerySiteinfo.php | 5 ----- includes/api/ApiQueryTags.php | 5 ----- includes/api/ApiQueryUserContributions.php | 5 ----- includes/api/ApiQueryUserInfo.php | 5 ----- includes/api/ApiQueryUsers.php | 5 ----- includes/api/ApiQueryWatchlist.php | 5 ----- includes/api/ApiQueryWatchlistRaw.php | 5 ----- includes/api/ApiResult.php | 5 ----- includes/api/ApiRollback.php | 5 ----- includes/api/ApiRsd.php | 4 ---- includes/api/ApiUnblock.php | 5 ----- includes/api/ApiUndelete.php | 5 ----- includes/api/ApiUpload.php | 5 ----- includes/api/ApiUserrights.php | 5 ----- includes/api/ApiWatch.php | 5 ----- 81 files changed, 402 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 0e73c6881a..aa5add3c2b 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that facilitates the blocking of users. Requires API write mode * to be enabled. diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 83cf6f0c93..57129f7ec1 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that facilitates deleting pages. The API equivalent of action=delete. * Requires API write mode to be enabled. diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index 1b8f8dffcf..b182dfed79 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that dies with an error immediately. * diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index e3106461a8..acd9ba17ae 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * A module that allows for editing and creating pages. * diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 82d8b6f2ec..b41b96418b 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API Module to facilitate sending of emails to users * @ingroup API diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index deb84fa347..7fbbb5630c 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that functions as a shortcut to the wikitext preprocessor. Expands * any templates in a provided string, and returns the result of this expansion diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 36b0ba9200..71a26ed0a1 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * This action allows users to get their watchlist items in RSS/Atom formats. * When executed, it performs a nested call to the API to get the needed data, diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index 50d685667f..0a21680954 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 65b11f157e..04a76b03bd 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * This is the abstract base class for API formatters. * diff --git a/includes/api/ApiFormatDbg.php b/includes/api/ApiFormatDbg.php index 32f223d7c1..92619f761a 100644 --- a/includes/api/ApiFormatDbg.php +++ b/includes/api/ApiFormatDbg.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API PHP's var_export() output formatter * @ingroup API diff --git a/includes/api/ApiFormatDump.php b/includes/api/ApiFormatDump.php index bde3e56d25..0f055e130c 100644 --- a/includes/api/ApiFormatDump.php +++ b/includes/api/ApiFormatDump.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API PHP's var_dump() output formatter * @ingroup API diff --git a/includes/api/ApiFormatJson.php b/includes/api/ApiFormatJson.php index e3755d7369..e728d057a0 100644 --- a/includes/api/ApiFormatJson.php +++ b/includes/api/ApiFormatJson.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API JSON output formatter * @ingroup API diff --git a/includes/api/ApiFormatPhp.php b/includes/api/ApiFormatPhp.php index cfcc2a0350..60552c40f9 100644 --- a/includes/api/ApiFormatPhp.php +++ b/includes/api/ApiFormatPhp.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API Serialized PHP output formatter * @ingroup API diff --git a/includes/api/ApiFormatRaw.php b/includes/api/ApiFormatRaw.php index 7591287195..db81aacd7b 100644 --- a/includes/api/ApiFormatRaw.php +++ b/includes/api/ApiFormatRaw.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * Formatter that spits out anything you like with any desired MIME type * @ingroup API diff --git a/includes/api/ApiFormatTxt.php b/includes/api/ApiFormatTxt.php index 54a620fc1f..e26b82b044 100644 --- a/includes/api/ApiFormatTxt.php +++ b/includes/api/ApiFormatTxt.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API Text output formatter * @ingroup API diff --git a/includes/api/ApiFormatWddx.php b/includes/api/ApiFormatWddx.php index 77fb4cd549..1bc9d0251c 100644 --- a/includes/api/ApiFormatWddx.php +++ b/includes/api/ApiFormatWddx.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API WDDX output formatter * @ingroup API diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index 6931eb592b..054784b1a4 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API XML output formatter * @ingroup API diff --git a/includes/api/ApiFormatYaml.php b/includes/api/ApiFormatYaml.php index ecf3590028..dbcdb21cec 100644 --- a/includes/api/ApiFormatYaml.php +++ b/includes/api/ApiFormatYaml.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** * API YAML output formatter * @ingroup API diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 4a43047011..c5bab77b70 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * This is a simple class to handle action=help * diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 11c953c538..81411fd945 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * API module that imports an XML file like Special:Import does * diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index ae660fd258..47f0f82673 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -25,11 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * Unit to authenticate log-in attempts to the current wiki. * diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 96ce5c9984..9bccf0e3cd 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * API module to allow users to log out of the wiki. API equivalent of * Special:Userlogout. diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index c087eb04cd..bf5ee01c96 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -25,11 +25,6 @@ * @defgroup API API */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * This is the main API class, used for both external and internal processing. * When executed, it will create the requested formatter object, diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index f3294ee73c..ccf642f3f3 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API Module to move pages * @ingroup API diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 013a47a797..b409c24842 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 26b4de3374..7be439f996 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * This class contains a list of pages that the client has requested. * Initially, when the client passes in titles=, pageids=, or revisions= diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 20963aedc8..72d424964a 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index b1e344c913..26ad39a0e4 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -22,11 +22,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index f9428cc85f..74c97e3d7f 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -24,10 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - require_once ( 'ApiBase.php' ); -} - /** * Allows user to patrol pages * @ingroup API diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 0c7b9b5a36..bc1d87c080 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index db5d22b36e..6b720e0b8c 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -25,10 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - require_once( 'ApiBase.php' ); -} - /** * API interface for page purging * @ingroup API diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 09f6c5d538..55b00afa33 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * This is the main query class. It behaves similar to ApiMain: based on the * parameters given, it will create a list of titles to work on (an ApiPageSet diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 23e361c2a5..122cbb2d8f 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all categories, even the ones that don't have * category pages. diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index a4a325196d..5fdab3b8ab 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate links from all pages together. * diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index c26c2008f1..03aceb0110 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all registered users. * diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllimages.php index bdb819d889..2670175e5d 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllimages.php @@ -26,11 +26,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all available pages. * diff --git a/includes/api/ApiQueryAllmessages.php b/includes/api/ApiQueryAllmessages.php index ddd849195a..e92d07b75d 100644 --- a/includes/api/ApiQueryAllmessages.php +++ b/includes/api/ApiQueryAllmessages.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query action to return messages from site message cache * diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index 32765b43da..9d0b89e864 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all available pages. * diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 27cb39cdf8..164789a77d 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * This is a three-in-one module to query: * * backlinks - links pointing to the given page, diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 49db0c2ced..f70eca8cb3 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * This is a base class for all Query modules. * It provides some common functionality such as constructing various SQL diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index a97d515b28..1ac7835bd2 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all user blocks * diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index 823eef94a2..c75960cdff 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to enumerate categories the set of pages belong to. * diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 1f38bb4bfc..bfa36271d5 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * This query adds the subelement to all pages with the list of categories the page is in * diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index 0fe1489a5b..bdc4e5c072 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to enumerate pages that belong to a category. * diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 546e0817e0..1bb8ff84eb 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all deleted revisions. * diff --git a/includes/api/ApiQueryDisabled.php b/includes/api/ApiQueryDisabled.php index 30a53dd5dc..aa31881408 100644 --- a/includes/api/ApiQueryDisabled.php +++ b/includes/api/ApiQueryDisabled.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that does nothing * diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 90c345c4a8..63bf844827 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to list duplicates of the given file(s) * diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 4bf9d4ff0f..a9db9d982e 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index c9711651bf..814463d007 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to list all external URLs found on a given set of pages. * diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 166f0094dc..17387c8786 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -26,11 +26,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all deleted files. * diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 5d31abd8fa..feda1779cd 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -25,11 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * This gives links pointing to the given interwiki * @ingroup API diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index a0cff72d6a..6e37d3e908 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -25,11 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to list all interwiki links on a page * diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 884ec48919..31484d4fd2 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query action to get image information and upload history. * diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index dfd5722d8a..b2a8af83ea 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * This query adds an subelement to all pages with the list of images embedded into those pages. * diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 2d42d1a247..bc84b3a288 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query module to show basic page information. * diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index d808cce830..1573494499 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -25,11 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * This gives links pointing to the given interwiki * @ingroup API diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index aafa2947e2..d5acb37963 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to list all langlinks (links to correspanding foreign language pages). * diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index e2524a5066..f80ddaa377 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiQueryBase.php" ); -} - /** * A query module to list all wiki links on a given set of pages. * diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 309c742ebb..427f694ef1 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query action to List the log events, with optional filtering by various parameters. * diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 1731c7976a..a253c88174 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query module to show basic page information. * diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index f3b1436bb4..10503d3d81 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all create-protected pages. * diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 1414ad512d..5eba0de66c 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to get the results of a QueryPage-based special page * diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index 0779b35e41..2e9e2dd500 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -25,11 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to get list of random pages * diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 7d62f33f48..4f95d42e2c 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query action to enumerate the recent changes that were done to the wiki. * Various filters are supported. diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 435bfe73e3..3591e29461 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query action to enumerate revisions of a given page, or show top revisions of multiple pages. * Various pieces of information may be shown - flags, comments, and the actual wiki markup of the rev. diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 6f08e69d87..a7e09747f3 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to perform full text search within wiki titles and content * diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index fb84dece76..0ba88bb295 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * A query action to return meta information about the wiki site. * diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 6be8d6c0ad..12cea1d719 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate change tags. * diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 842fb0d1d9..76d35143fb 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * This query action adds a list of a specified user's contributions to the output. * diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index ca1dfb6d47..e21836d962 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to get information about the currently logged-in user * diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 76f815c442..8cc7eb0cef 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to get information about a list of users * diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index e69ab50644..2af6d7fba4 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * This query action allows clients to retrieve a list of recently modified pages * that are part of the logged-in user's watchlist. diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 124be7dc2f..506944f0b3 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * This query action allows clients to retrieve a list of pages * on the logged-in user's watchlist. diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index 3b912fd790..798b227567 100644 --- a/includes/api/ApiResult.php +++ b/includes/api/ApiResult.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * This class represents the result of the API operations. * It simply wraps a nested array() structure, adding some functions to simplify array's modifications. diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index bbe90dc23d..44ba7ab271 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index 3bca7259be..57cca334b7 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -25,10 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - require_once( 'ApiBase.php' ); -} - /** * API module for sending out RSD information * @ingroup API diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 85a972ff0e..451580737f 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * API module that facilitates the unblocking of users. Requires API write mode * to be enabled. diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 9315ac3502..e3c66d6223 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 18117ddd35..6c3562c841 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index 796f306127..6b6bbf81cb 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -25,11 +25,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index 9266fca8c4..edf039d064 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiBase.php' ); -} - /** * API module to allow users to watch a page * -- 2.20.1