Change layout of the mustBePosted format to standardise it
authorSam Reed <reedy@users.mediawiki.org>
Sun, 14 Feb 2010 21:12:11 +0000 (21:12 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 14 Feb 2010 21:12:11 +0000 (21:12 +0000)
includes/api/ApiBlock.php
includes/api/ApiDelete.php
includes/api/ApiEmailUser.php
includes/api/ApiImport.php
includes/api/ApiLogin.php
includes/api/ApiMove.php
includes/api/ApiProtect.php
includes/api/ApiUnblock.php
includes/api/ApiUndelete.php

index d8121b5..8f9300d 100644 (file)
@@ -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;
index f1213b2..44be2e7 100644 (file)
@@ -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;
index 12abc26..53a38f8 100644 (file)
@@ -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;
index 1a127e6..b0c0cc0 100644 (file)
@@ -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;
index fcf9463..2c0101c 100644 (file)
@@ -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;
index 1e0b1ef..0509cfe 100644 (file)
@@ -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;
index 164ebd1..5dabc91 100644 (file)
@@ -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;
index 386dcbc..0299309 100644 (file)
@@ -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;
index ff4a9f3..a88440e 100644 (file)
@@ -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;