// Already handled by getExternalHeadScripts()
return '';
}
- return $this->getScriptsForBottomQueue();
+ return $this->getScriptsForBottomQueue();
}
/**
# Multiple DBs or commits might be used; keep the request as transactional as possible
if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] === 'POST' ) {
ignore_user_abort( true );
-}
\ No newline at end of file
+}
return array( $index, $options );
}
-}
\ No newline at end of file
+}
$json = self::jsonSerializeException( $e, false, FormatJson::ALL_OK );
if ( $json !== false ) {
$logger = LoggerFactory::getInstance( "{$channel}-json" );
- $logger->error( $json, array( 'private' => true ) );
+ $logger->error( $json, array( 'private' => true ) );
}
Hooks::run( 'LogException', array( $e, $suppressed ) );
wfDebug( __METHOD__ . ": skipped because storage uses sha1 paths\n" );
return Status::newGood();
} else {
- return call_user_func_array('parent::' . $function, $args );
+ return call_user_func_array( 'parent::' . $function, $args );
}
}
}
array( 'changeFieldPurgeTable', 'l10n_cache', 'lc_value', 'bytea',
"replace(lc_value,'\','\\\\')::bytea" ),
// 1.23.9
- array( 'rebuildTextSearch'),
+ array( 'rebuildTextSearch' ),
// 1.24
array( 'addPgField', 'page_props', 'pp_sortkey', 'float NULL' ),
if ( $item->getSampleRate() === 1 ) {
$item->setSampleRate( $sampleRate );
}
- });
+ } );
}
return $data;
return array(
'compression' => 'unknown',
- 'animated' => ($flags[1] & self::VP8X_ANIM) == self::VP8X_ANIM,
- 'transparency' => ($flags[1] & self::VP8X_ALPHA) == self::VP8X_ALPHA,
+ 'animated' => ( $flags[1] & self::VP8X_ANIM ) == self::VP8X_ANIM,
+ 'transparency' => ( $flags[1] & self::VP8X_ALPHA ) == self::VP8X_ALPHA,
'width' => ( $width[1] & 0xFFFFFF ) + 1,
'height' => ( $height[1] & 0xFFFFFF ) + 1
);
$ser = $image->getMetadata();
if ( $ser ) {
$metadata = unserialize( $ser );
- if ( isset($metadata['animated']) && $metadata['animated'] === true ) {
+ if ( isset( $metadata['animated'] ) && $metadata['animated'] === true ) {
return true;
}
}
$pairs = array_map( function ( $value ) {
$value = FormatJson::encode( $value, ResourceLoader::inDebugMode(), FormatJson::ALL_OK );
// Fix indentation
- $value = str_replace( "\n", "\n\t", $value );
+ $value = str_replace( "\n", "\n\t", $value );
return $value;
}, array(
'$VARS.wgLegacyJavaScriptGlobals' => $this->getConfig()->get( 'LegacyJavaScriptGlobals' ),
return Html::rawElement(
'div',
array( 'class' => 'searchdidyoumean' ),
- $this->msg( 'search-rewritten')->rawParams( $rewritten, $original )->escaped()
+ $this->msg( 'search-rewritten' )->rawParams( $rewritten, $original )->escaped()
);
}
/**
* @param array $updates Array of arrays each containing two keys, 'primaryKey'
- * and 'changes'. primaryKey must contain a map of column names to values
+ * and 'changes'. primaryKey must contain a map of column names to values
* sufficient to uniquely identify the row changes must contain a map of column
* names to update values to apply to the row.
*/
$namespaceOptions = \Html::namespaceSelectorOptions( $namespaceOptionsParams );
$options = array();
- foreach( $namespaceOptions as $id => $name ) {
+ foreach ( $namespaceOptions as $id => $name ) {
$options[] = array(
'data' => (string)$id,
'label' => $name,