From 3ecd4185016ffad58a03ecc17b71a37cdf943e35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Mon, 5 Oct 2015 10:56:32 +0200 Subject: [PATCH] ApiBase::PARAM_DFLT => null is the default anyway Change-Id: Ic3deeb6b3d7cacbdb85da9ba3cb19051c1182b8f --- includes/api/ApiQueryAllCategories.php | 2 -- includes/api/ApiQueryAllDeletedRevisions.php | 1 - includes/api/ApiQueryAllImages.php | 1 - includes/api/ApiQueryInfo.php | 2 -- includes/api/ApiQueryRevisionsBase.php | 4 ---- includes/api/ApiQuerySearch.php | 1 - includes/api/ApiQueryStashImageInfo.php | 2 -- includes/api/ApiQueryUserInfo.php | 1 - includes/api/ApiQueryUsers.php | 1 - includes/api/ApiUpload.php | 1 - 10 files changed, 16 deletions(-) diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 0711c90292..30978a1133 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -169,11 +169,9 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { ), ), 'min' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_TYPE => 'integer' ), 'max' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_TYPE => 'integer' ), 'limit' => array( diff --git a/includes/api/ApiQueryAllDeletedRevisions.php b/includes/api/ApiQueryAllDeletedRevisions.php index 4f7984e6ae..8cb1119d06 100644 --- a/includes/api/ApiQueryAllDeletedRevisions.php +++ b/includes/api/ApiQueryAllDeletedRevisions.php @@ -392,7 +392,6 @@ class ApiQueryAllDeletedRevisions extends ApiQueryRevisionsBase { 'namespace' => array( ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => 'namespace', - ApiBase::PARAM_DFLT => null, ), 'start' => array( ApiBase::PARAM_TYPE => 'timestamp', diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index 877423eb4d..699cba8629 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -374,7 +374,6 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { ) ), 'mime' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_ISMULTI => true, ), 'limit' => array( diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index b05c75c379..7967826a93 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -827,7 +827,6 @@ class ApiQueryInfo extends ApiQueryBase { public function getAllowedParams() { return array( 'prop' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array( 'protection', @@ -851,7 +850,6 @@ class ApiQueryInfo extends ApiQueryBase { ), 'token' => array( ApiBase::PARAM_DEPRECATED => true, - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array_keys( $this->getTokenFunctions() ) ), diff --git a/includes/api/ApiQueryRevisionsBase.php b/includes/api/ApiQueryRevisionsBase.php index f8dbf23c2a..2bc6570262 100644 --- a/includes/api/ApiQueryRevisionsBase.php +++ b/includes/api/ApiQueryRevisionsBase.php @@ -479,20 +479,16 @@ abstract class ApiQueryRevisionsBase extends ApiQueryGeneratorBase { ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-parse', ), 'section' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-section', ), 'diffto' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-diffto', ), 'difftotext' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotext', ), 'contentformat' => array( ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-contentformat', ), ); diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index b866f43e09..53939d8db7 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -302,7 +302,6 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { ApiBase::PARAM_ISMULTI => true, ), 'what' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_TYPE => array( 'title', 'text', diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index 3de72bfe6b..0a759616f5 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -78,12 +78,10 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { return array( 'filekey' => array( ApiBase::PARAM_ISMULTI => true, - ApiBase::PARAM_DFLT => null ), 'sessionkey' => array( ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DEPRECATED => true, - ApiBase::PARAM_DFLT => null ), 'prop' => array( ApiBase::PARAM_ISMULTI => true, diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index f916537369..93c0dd053c 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -250,7 +250,6 @@ class ApiQueryUserInfo extends ApiQueryBase { public function getAllowedParams() { return array( 'prop' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array( 'blockinfo', diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 1d0048ce80..a826c1b0a2 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -294,7 +294,6 @@ class ApiQueryUsers extends ApiQueryBase { public function getAllowedParams() { return array( 'prop' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array( 'blockinfo', diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index b621cb0dde..5ba7d25e01 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -782,7 +782,6 @@ class ApiUpload extends ApiBase { 'url' => null, 'filekey' => null, 'sessionkey' => array( - ApiBase::PARAM_DFLT => null, ApiBase::PARAM_DEPRECATED => true, ), 'stash' => false, -- 2.20.1