From bd1a643e6e0a36b44e599e931961eb3290d91c3c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 14 Feb 2010 21:12:11 +0000 Subject: [PATCH] Change layout of the mustBePosted format to standardise it --- includes/api/ApiBlock.php | 4 +++- includes/api/ApiDelete.php | 4 +++- includes/api/ApiEmailUser.php | 4 +++- includes/api/ApiImport.php | 4 +++- includes/api/ApiLogin.php | 4 +++- includes/api/ApiMove.php | 4 +++- includes/api/ApiProtect.php | 4 +++- includes/api/ApiUnblock.php | 4 +++- includes/api/ApiUndelete.php | 4 +++- 9 files changed, 27 insertions(+), 9 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index d8121b5405..8f9300d335 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -112,7 +112,9 @@ class ApiBlock extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $res ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index f1213b29b6..44be2e7966 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -172,7 +172,9 @@ class ApiDelete extends ApiBase { return array(); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 12abc26786..53a38f8b7a 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -72,7 +72,9 @@ class ApiEmailUser extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $result ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 1a127e63d7..b0c0cc0c50 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -98,7 +98,9 @@ class ApiImport extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $resultData ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index fcf9463155..2c0101c038 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -136,7 +136,9 @@ class ApiLogin extends ApiBase { $this->getResult()->addValue( null, 'login', $result ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isReadMode() { return false; diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 1e0b1efa53..0509cfee83 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -164,7 +164,9 @@ class ApiMove extends ApiBase { return $retval; } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 164ebd1ee9..5dabc91416 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -128,7 +128,9 @@ class ApiProtect extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $res ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 386dcbcc5a..02993092c5 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -77,7 +77,9 @@ class ApiUnblock extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $res ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index ff4a9f31d7..a88440ea8f 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -85,7 +85,9 @@ class ApiUndelete extends ApiBase { $this->getResult()->addValue( null, $this->getModuleName(), $info ); } - public function mustBePosted() { return true; } + public function mustBePosted() { + return true; + } public function isWriteMode() { return true; -- 2.20.1