Fixup spaces to tabs from r62404
authorSam Reed <reedy@users.mediawiki.org>
Sun, 14 Feb 2010 14:29:24 +0000 (14:29 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 14 Feb 2010 14:29:24 +0000 (14:29 +0000)
includes/api/ApiDelete.php
includes/api/ApiEditPage.php
includes/api/ApiImport.php
includes/api/ApiMove.php
includes/api/ApiProtect.php
includes/api/ApiQueryBacklinks.php
includes/api/ApiQueryBase.php
includes/api/ApiQueryRevisions.php
includes/api/ApiRollback.php
includes/api/ApiUndelete.php

index af64a2f..f1213b2 100644 (file)
@@ -210,14 +210,14 @@ class ApiDelete extends ApiBase {
                );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'token' ),
                        array( 'invalidtitle', 'title' ),
                        array( 'nosuchpageid', 'pageid' ),
                        array( 'notanarticle' ),
                        array( 'hookaborted', 'error' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index 1271610..d09feac 100644 (file)
@@ -346,7 +346,7 @@ class ApiEditPage extends ApiBase {
                return 'Create and edit pages.';
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'title' ),
                        array( 'missingtext' ),
@@ -380,7 +380,7 @@ class ApiEditPage extends ApiBase {
                        array( 'unknownerror', 'retval' ),
                        array( 'code' => 'nosuchsection', 'info' => 'There is no section section.' ),
                        array( 'code' => 'invalidsection', 'info' => 'The section parameter must be set to an integer or \'new\'' ),
-        ) );
+               ) );
        }
 
        private function getMaxArticleSize() {
index c2b2f25..1a127e6 100644 (file)
@@ -141,7 +141,7 @@ class ApiImport extends ApiBase {
                );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'cantimport' ),
                        array( 'missingparam', 'token' ),
@@ -150,7 +150,7 @@ class ApiImport extends ApiBase {
                        array( 'cantimport-upload' ),
                        array( 'import-unknownerror', 'source' ),
                        array( 'import-unknownerror', 'result' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index b9d41fb..1e0b1ef 100644 (file)
@@ -210,7 +210,7 @@ class ApiMove extends ApiBase {
                );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'to' ),
                        array( 'missingparam', 'token' ),
@@ -220,7 +220,7 @@ class ApiMove extends ApiBase {
                        array( 'notanarticle' ),
                        array( 'invalidtitle', 'to' ),
                        array( 'sharedfile-exists' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index bd90e31..164ebd1 100644 (file)
@@ -172,7 +172,7 @@ class ApiProtect extends ApiBase {
                );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'title' ),
                        array( 'missingparam', 'token' ),
@@ -186,7 +186,7 @@ class ApiProtect extends ApiBase {
                        array( 'protect-invalidlevel', 'level' ),
                        array( 'invalidexpiry', 'expiry' ),
                        array( 'pastexpiry', 'expiry' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index 3b8d2a2..a21502a 100644 (file)
@@ -454,13 +454,13 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
                }
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'invalidtitle', 'title' ),
                        array( 'missingparam', 'title' ),
                        array( 'code' => 'bad_image_title', 'info' => "The title for {$this->getModuleName()} query must be an image" ),
                        array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index 252d25e..cdfb5b9 100644 (file)
@@ -408,11 +408,11 @@ abstract class ApiQueryBase extends ApiBase {
                return substr( $this->keyToTitle( $keyPart . 'x' ), 0, - 1 );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'invalidtitle', 'title' ),
                        array( 'invalidtitle', 'key' ),
-        ) );
+               ) );
        }
 
        /**
index 557d686..e8e33df 100644 (file)
@@ -561,7 +561,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'nosuchrevid', 'diffto' ),
                        array( 'code' => 'revids', 'info' => 'The revids= parameter may not be used with the list options (limit, startid, endid, dirNewer, start, end).' ),
@@ -571,7 +571,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                        array( 'code' => 'badparams', 'info' => 'end and endid cannot be used together' ),
                        array( 'code' => 'badparams', 'info' => 'user and excludeuser cannot be used together' ),
                        array( 'code' => 'nosuchsection', 'info' => 'There is no section section in rID' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index cc9c470..fca9e59 100644 (file)
@@ -114,7 +114,7 @@ class ApiRollback extends ApiBase {
                        );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'title' ),
                        array( 'missingparam', 'user' ),
@@ -122,7 +122,7 @@ class ApiRollback extends ApiBase {
                        array( 'invalidtitle', 'title' ),
                        array( 'notanarticle' ),
                        array( 'invaliduser', 'user' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {
index d594d1f..ff4a9f3 100644 (file)
@@ -118,7 +118,7 @@ class ApiUndelete extends ApiBase {
                );
        }
        
-    public function getPossibleErrors() {
+       public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'title' ),
                        array( 'missingparam', 'token' ),
@@ -127,7 +127,7 @@ class ApiUndelete extends ApiBase {
                        array( 'sessionfailure' ),
                        array( 'invalidtitle', 'title' ),
                        array( 'cannotundelete' ),
-        ) );
+               ) );
        }
 
        protected function getExamples() {