/** Inserts a rollback link
*
- * @param $s
+ * @param $s string
* @param $rc RecentChange
*/
public function insertRollback( &$s, &$rc ) {
}
/**
- * @param $s
+ * @param $s string
* @param $rc RecentChange
* @param $classes
- * @return
*/
public function insertTags( &$s, &$rc, &$classes ) {
if ( empty($rc->mAttribs['ts_tags']) )
$votesLeft = count( $this->dbsByBucket[$bucket] ); // remaining DBs
$quorum = floor( $votesLeft/2 + 1 ); // simple majority
// Get votes for each DB, in order, until we have enough...
- foreach ( $this->dbsByBucket[$bucket] as $index => $lockDb ) {
+ foreach ( $this->dbsByBucket[$bucket] as $lockDb ) {
// Check that DB is not *known* to be down
if ( $this->cacheCheckFailures( $lockDb ) ) {
try {
/**
* Overridden by WebInstaller to provide lastPage parameters.
- * @param $page stirng
+ * @param $page string
* @return string
*/
protected function getDocUrl( $page ) {
* No help, it would just be misleading since it misses custom options
*/
protected function maybeHelp( $force = false ) {
- if ( !$force )
+ if ( !$force ) {
return;
+ }
parent::maybeHelp( true );
}
$dbw = wfGetDB( DB_MASTER );
$n = 0;
$conds = '';
- if ( $type !== false )
+ if ( $type !== false ) {
$conds = "job_cmd = " . $dbw->addQuotes( $type );
+ }
while ( $dbw->selectField( 'job', 'job_id', $conds, 'runJobs.php' ) ) {
$offset = 0;
for ( ; ; ) {
$job = !$type ? Job::pop( $offset ) : Job::pop_type( $type );
- if ( !$job )
+ if ( !$job ) {
break;
+ }
wfWaitForSlaves();
$t = microtime( true );