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();
// 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 {
$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();