Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -415,7 +415,7 @@ |
416 | 416 | if ( !$this->mInternalMode ) { |
417 | 417 | // Ignore mustBePosted() for internal calls |
418 | 418 | if ( $module->mustBePosted() && !$this->mRequest->wasPosted() ) |
419 | | - $this->dieUsageMsg( array ('mustbeposted', $this->mAction ) ); |
| 419 | + $this->dieUsageMsg( array ( 'mustbeposted', $this->mAction ) ); |
420 | 420 | |
421 | 421 | // See if custom printer is used |
422 | 422 | $this->mPrinter = $module->getCustomPrinter(); |
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -318,7 +318,7 @@ |
319 | 319 | return array ( |
320 | 320 | 'Returns image information and upload history' |
321 | 321 | ); |
322 | | - } |
| 322 | + } |
323 | 323 | |
324 | 324 | public function getPossibleErrors() { |
325 | 325 | return array_merge( parent::getPossibleErrors(), array( |
Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -332,7 +332,7 @@ |
333 | 333 | |
334 | 334 | $pageInfo['preload'] = $text; |
335 | 335 | } |
336 | | - } |
| 336 | + } |
337 | 337 | return $pageInfo; |
338 | 338 | } |
339 | 339 | |
Index: trunk/phase3/includes/api/ApiUpload.php |
— | — | @@ -138,9 +138,9 @@ |
139 | 139 | // Cleanup any temporary mess |
140 | 140 | $this->mUpload->cleanupTempFile(); |
141 | 141 | |
142 | | - if( isset($result['chunked-output']) ) { |
143 | | - foreach ($result['chunked-output'] as $key => $value) { |
144 | | - if($value === null) $value = ""; |
| 142 | + if ( isset( $result['chunked-output'] ) ) { |
| 143 | + foreach ( $result['chunked-output'] as $key => $value ) { |
| 144 | + if ( $value === null ) $value = ""; |
145 | 145 | $this->getResult()->addValue( null, $key, $value ); |
146 | 146 | } |
147 | 147 | } else { |
— | — | @@ -248,8 +248,8 @@ |
249 | 249 | $this->getResult()->setIndexedTagName( $result['details'], 'error' ); |
250 | 250 | |
251 | 251 | $this->dieUsage( 'An internal error occurred', 'internal-error', 0, $error ); |
252 | | - } elseif( $this->mParams['enablechunks'] ) { |
253 | | - return array("chunked-output" => $status->value); |
| 252 | + } elseif ( $this->mParams['enablechunks'] ) { |
| 253 | + return array( "chunked-output" => $status->value ); |
254 | 254 | } |
255 | 255 | |
256 | 256 | $file = $this->mUpload->getLocalFile(); |