aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/rebuildImages.php
diff options
context:
space:
mode:
authorumherirrender <umherirrender_de.wp@web.de>2013-12-01 21:39:00 +0100
committerumherirrender <umherirrender_de.wp@web.de>2013-12-01 21:39:00 +0100
commit0bc583af2cf5aef63e006288ab9fbfa61994e9a9 (patch)
treef29757cf2f5da90c8e03d041581777db6710ae96 /maintenance/rebuildImages.php
parent5ca5672aacfa855ed1ac8f5570b9f7d10c1eb0b0 (diff)
downloadmediawikicore-0bc583af2cf5aef63e006288ab9fbfa61994e9a9.tar.gz
mediawikicore-0bc583af2cf5aef63e006288ab9fbfa61994e9a9.zip
Move closing parenthesis from multi line if and function to own line
The Line continuation Coding conventions prefers the closing parenthesis on the same line than the beginning curly braces. This is done for ifs and functions. Also move some boolean operator from the end of a line to the beginning and changed some indentation to make the condition hopefully better readable. Change-Id: Id0437b06bde86eb5a75bc59eefa19e7edb624426
Diffstat (limited to 'maintenance/rebuildImages.php')
-rw-r--r--maintenance/rebuildImages.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php
index 53bf823f0fdc..ed67ccdcf754 100644
--- a/maintenance/rebuildImages.php
+++ b/maintenance/rebuildImages.php
@@ -205,9 +205,16 @@ class ImageBuilder extends Maintenance {
}
if ( !$this->dryrun ) {
$file = wfLocalFile( $filename );
- if ( !$file->recordUpload( '', '(recovered file, missing upload log entry)', '', '', '',
- false, $timestamp ) )
- {
+ if ( !$file->recordUpload(
+ '',
+ '(recovered file, missing upload log entry)',
+ '',
+ '',
+ '',
+ false,
+ $timestamp
+ )
+ ) {
$this->output( "Error uploading file $fullpath\n" );
return;
}