Stylize API files
authorSam Reed <reedy@users.mediawiki.org>
Sat, 13 Feb 2010 01:41:37 +0000 (01:41 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 13 Feb 2010 01:41:37 +0000 (01:41 +0000)
includes/api/ApiMain.php
includes/api/ApiQueryImageInfo.php
includes/api/ApiQueryInfo.php
includes/api/ApiUpload.php

index da98632..8ccb8a6 100644 (file)
@@ -415,7 +415,7 @@ class ApiMain extends ApiBase {
                if ( !$this->mInternalMode ) {
                        // Ignore mustBePosted() for internal calls
                        if ( $module->mustBePosted() && !$this->mRequest->wasPosted() )
-                               $this->dieUsageMsg( array ('mustbeposted', $this->mAction ) );
+                               $this->dieUsageMsg( array ( 'mustbeposted', $this->mAction ) );
 
                        // See if custom printer is used
                        $this->mPrinter = $module->getCustomPrinter();
index e52d141..8441768 100644 (file)
@@ -318,7 +318,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                return array (
                        'Returns image information and upload history'
                );
-       }       
+       }
        
        public function getPossibleErrors() {
                return array_merge( parent::getPossibleErrors(), array(
index b1d1e9b..e562c4d 100644 (file)
@@ -332,7 +332,7 @@ class ApiQueryInfo extends ApiQueryBase {
                        
                                $pageInfo['preload'] = $text;
                        }
-               }               
+               }
                return $pageInfo;
        }
 
index 72146e6..12c1623 100644 (file)
@@ -138,9 +138,9 @@ class ApiUpload extends ApiBase {
                // Cleanup any temporary mess
                $this->mUpload->cleanupTempFile();
 
-               if( isset($result['chunked-output']) ) {
-                       foreach ($result['chunked-output'] as $key => $value) {
-                               if($value === null) $value = "";
+               if ( isset( $result['chunked-output'] ) ) {
+                       foreach ( $result['chunked-output'] as $key => $value ) {
+                               if ( $value === null ) $value = "";
                                $this->getResult()->addValue( null, $key, $value );
                        }
                } else {
@@ -248,8 +248,8 @@ class ApiUpload extends ApiBase {
                        $this->getResult()->setIndexedTagName( $result['details'], 'error' );
 
                        $this->dieUsage( 'An internal error occurred', 'internal-error', 0, $error );
-               } elseif( $this->mParams['enablechunks'] ) {
-                       return array("chunked-output" => $status->value);
+               } elseif ( $this->mParams['enablechunks'] ) {
+                       return array( "chunked-output" => $status->value );
                }
 
                $file = $this->mUpload->getLocalFile();