Remove arrays from getDescription where we are only using 1 line
authorSam Reed <reedy@users.mediawiki.org>
Tue, 25 May 2010 20:46:09 +0000 (20:46 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 25 May 2010 20:46:09 +0000 (20:46 +0000)
16 files changed:
includes/api/ApiBlock.php
includes/api/ApiDelete.php
includes/api/ApiDisabled.php
includes/api/ApiEmailUser.php
includes/api/ApiGo.php
includes/api/ApiHelp.php
includes/api/ApiImport.php
includes/api/ApiLogout.php
includes/api/ApiMove.php
includes/api/ApiPatrol.php
includes/api/ApiProtect.php
includes/api/ApiPurge.php
includes/api/ApiQueryImageInfo.php
includes/api/ApiUnblock.php
includes/api/ApiUserrights.php
includes/api/ApiWatch.php

index d0b0095..e26f528 100644 (file)
@@ -168,9 +168,7 @@ class ApiBlock extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Block a user'
-               );
+               return 'Block a user';
        }
        
        public function getPossibleErrors() {
index 2dfd176..8737eff 100644 (file)
@@ -235,9 +235,7 @@ class ApiDelete extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Delete a page'
-               );
+               return 'Delete a page';
        }
 
        public function getPossibleErrors() {
index 3845486..d2468ca 100644 (file)
@@ -60,9 +60,7 @@ class ApiDisabled extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'This module has been disabled'
-               );
+               return 'This module has been disabled';
        }
 
        protected function getExamples() {
index 3dd607c..159c38b 100644 (file)
@@ -109,9 +109,7 @@ class ApiEmailUser extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Email a user.'
-               );
+               return 'Email a user.';
        }
 
        public function getPossibleErrors() {
index 9ce0c49..34592ad 100644 (file)
@@ -74,9 +74,7 @@ class ApiGo extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Determine the title one will be taken to by a "Go" search, if any'
-               );
+               return 'Determine the title one will be taken to by a "Go" search, if any';
        }
        
        public function getPossibleErrors() {
index d16fd29..d5f13e1 100644 (file)
@@ -130,9 +130,7 @@ class ApiHelp extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Display this help screen. Or the help screen for the specified module'
-               );
+               return 'Display this help screen. Or the help screen for the specified module';
        }
        
        protected function getExamples() {
index 2b6fe5b..aecaea6 100644 (file)
@@ -141,9 +141,7 @@ class ApiImport extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Import a page from another wiki, or an XML file'
-               );
+               return 'Import a page from another wiki, or an XML file';
        }
 
        public function getPossibleErrors() {
index 4eacb07..8939104 100644 (file)
@@ -63,9 +63,7 @@ class ApiLogout extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'This module is used to logout and clear session data'
-               );
+               return 'This module is used to logout and clear session data';
        }
 
        protected function getExamples() {
index 442feaa..5f6c875 100644 (file)
@@ -221,9 +221,7 @@ class ApiMove extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Move a page'
-               );
+               return 'Move a page';
        }
 
        public function getPossibleErrors() {
index dc246ef..d4d519a 100644 (file)
@@ -83,9 +83,7 @@ class ApiPatrol extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Patrol a page or revision'
-               );
+               return 'Patrol a page or revision';
        }
 
        public function getPossibleErrors() {
index 6c43b46..0dfa6a9 100644 (file)
@@ -193,9 +193,7 @@ class ApiProtect extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Change the protection level of a page'
-               );
+               return 'Change the protection level of a page';
        }
 
        public function getPossibleErrors() {
index 18e3299..8cd8b60 100644 (file)
@@ -98,9 +98,7 @@ class ApiPurge extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Purge the cache for the given titles'
-               );
+               return 'Purge the cache for the given titles';
        }
 
        public function getPossibleErrors() {
index 2ebc508..2d58003 100644 (file)
@@ -332,9 +332,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Returns image information and upload history'
-               );
+               return 'Returns image information and upload history';
        }
 
        public function getPossibleErrors() {
index f146075..31d0bef 100644 (file)
@@ -114,9 +114,7 @@ class ApiUnblock extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Unblock a user'
-               );
+               return 'Unblock a user';
        }
 
        public function getPossibleErrors() {
index 9686217..9d74cf3 100644 (file)
@@ -115,9 +115,7 @@ class ApiUserrights extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Add/remove a user to/from groups',
-               );
+               return 'Add/remove a user to/from groups';
        }
 
        public function getPossibleErrors() {
index 60c95d0..e9db698 100644 (file)
@@ -89,9 +89,7 @@ class ApiWatch extends ApiBase {
        }
 
        public function getDescription() {
-               return array(
-                       'Add or remove a page from/to the current user\'s watchlist'
-               );
+               return 'Add or remove a page from/to the current user\'s watchlist';
        }
 
        public function getPossibleErrors() {