}
/**
- * @param $file File:
+ * @param File $file
*/
public function setFile( $file ) {
$this->mFile = $file;
if ( $from == $to ) {
return null;
}
- return $this->mRedirectTarget = Title::makeTitle( NS_FILE, $to );
+ $this->mRedirectTarget = Title::makeTitle( NS_FILE, $to );
+ return $this->mRedirectTarget;
}
/**
}
$hash = $this->mFile->getSha1();
if ( !( $hash ) ) {
- return $this->mDupes = array();
+ $this->mDupes = array();
+ return $this->mDupes;
}
$dupes = RepoGroup::singleton()->findBySha1( $hash );
// Remove duplicates with self and non matching file sizes
$file = $this->mFile;
if ( ! $file instanceof LocalFile ) {
- wfDebug( __CLASS__ . '::' . __METHOD__ . ' is not supported for this file' );
+ wfDebug( __CLASS__ . '::' . __METHOD__ . " is not supported for this file\n" );
return TitleArray::newFromResult( new FakeResultWrapper( array() ) );
}