Revision: 46105
Author:   catrope
Date:     2009-01-23 22:54:28 +0000 (Fri, 23 Jan 2009)

Log Message:
-----------
new-upload branch: Code style consistency

Modified Paths:
--------------
    branches/new-upload/phase3/includes/api/ApiUpload.php

Modified: branches/new-upload/phase3/includes/api/ApiUpload.php
===================================================================
--- branches/new-upload/phase3/includes/api/ApiUpload.php       2009-01-23 
22:53:50 UTC (rev 46104)
+++ branches/new-upload/phase3/includes/api/ApiUpload.php       2009-01-23 
22:54:28 UTC (rev 46105)
@@ -43,7 +43,7 @@
                $this->mParams = $this->extractRequestParams();
                $request = $this->getMain()->getRequest();
                // Add the uploaded file to the params array
-               $this->mParams['file'] = $request->getFileName('file');
+               $this->mParams['file'] = $request->getFileName( 'file' );
                
                // Check whether upload is enabled
                if( !UploadFromBase::isEnabled() )
@@ -94,7 +94,7 @@
                // Cleanup any temporary mess
                $this->mUpload->cleanupTempFile();
                
-               $this->getResult()->addValue(null, $this->getModuleName(), 
$result);
+               $this->getResult()->addValue( null, $this->getModuleName(), 
$result );
        }
        
        private function performUpload() {
@@ -138,7 +138,7 @@
                                case UploadFromBase::VERIFICATION_ERROR:
                                        $result['error'] = 'verification-error';
                                        $args = $resultDetails['veri'];
-                                       $code = array_shift($args);
+                                       $code = array_shift( $args );
                                        $result['verification-error'] = $code;
                                        $result['args'] = $args;
                                        $this->getResult()->setIndexedTagName( 
$result['args'], 'arg' );
@@ -173,7 +173,7 @@
                }
                
                $status = $this->mUpload->performUpload( 
$this->mParams['comment'],
-                       $this->mParams['comment'], $this->mParams['watch'], 
$wgUser);
+                       $this->mParams['comment'], $this->mParams['watch'], 
$wgUser );
                
                if( !$status->isGood() ) {
                        $result['result'] = 'Failure';



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to