28 => 's', 29 => 't', 30 => 'u', 31 => 'v', 32 => 'w', 33 => 'x',
34 => 'y', 35 => 'z',
- '0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5,
- '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'a' => 10, 'b' => 11,
+ '0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5,
+ '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'a' => 10, 'b' => 11,
'c' => 12, 'd' => 13, 'e' => 14, 'f' => 15, 'g' => 16, 'h' => 17,
'i' => 18, 'j' => 19, 'k' => 20, 'l' => 21, 'm' => 22, 'n' => 23,
'o' => 24, 'p' => 25, 'q' => 26, 'r' => 27, 's' => 28, 't' => 29,
} else {
$display = $curLang;
}
- $opts = XML::Option( $display, $curLang, true ) . $opts;
+ $opts = XML::Option( $display, $curLang, true ) . $opts;
}
$select = Html::rawElement( 'select', array( 'id' => 'mw-imglangselector', 'name' => 'lang' ), $opts );
* @since 1.21
*/
public function doEditContent( Content $content, $summary, $flags = 0, $baseRevId = false,
- User $user = null, $serialisation_format = null ) {
+ User $user = null, $serialisation_format = null
+ ) {
global $wgUser, $wgUseAutomaticEditSummaries, $wgUseRCPatrol, $wgUseNPPatrol;
// Low-level sanity check
array( 'tsearchFixes' ),
// 1.23
- array( 'addPgField', 'recentchanges', 'rc_source', "TEXT NOT NULL DEFAULT ''" ),
+ array( 'addPgField', 'recentchanges', 'rc_source', "TEXT NOT NULL DEFAULT ''" ),
);
}
if ( $metadata ) {
$metadata = $this->unpackMetadata( $metadata );
if ( isset( $metadata['translations'] ) ) {
- foreach( $metadata['translations'] as $lang => $langType ) {
+ foreach ( $metadata['translations'] as $lang => $langType ) {
if ( $langType === SvgReader::LANG_FULL_MATCH ) {
$langList[] = $lang;
}
if ( !is_null( $sysLang ) && $sysLang !== '' ) {
// See http://www.w3.org/TR/SVG/struct.html#SystemLanguageAttribute
$langList = explode( ',', $sysLang );
- foreach( $langList as $langItem ) {
+ foreach ( $langList as $langItem ) {
$langItem = trim( $langItem );
if ( Language::isWellFormedLanguageTag( $langItem ) ) {
$this->languages[$langItem] = self::LANG_FULL_MATCH;
$testCases = array();
foreach ( array( 'Exception', 'MWException' ) as $exClass ) {
$exTests = array(
- array( 'string', $exClass, 'id' ),
- array( 'string', $exClass, 'file' ),
- array( 'integer', $exClass, 'line' ),
- array( 'string', $exClass, 'message' ),
- array( 'null', $exClass, 'url' ),
+ array( 'string', $exClass, 'id' ),
+ array( 'string', $exClass, 'file' ),
+ array( 'integer', $exClass, 'line' ),
+ array( 'string', $exClass, 'message' ),
+ array( 'null', $exClass, 'url' ),
# Backtrace only enabled with wgLogExceptionBacktrace = true
- array( 'array', $exClass, 'backtrace' ),
+ array( 'array', $exClass, 'backtrace' ),
);
$testCases = array_merge( $testCases, $exTests );
}
public function testRequireOnlyOneParameterZero() {
$mock = new MockApi();
$mock->requireOnlyOneParameter(
- array( "filename" => "foo.txt","enablechunks" => 0 ),
+ array( "filename" => "foo.txt", "enablechunks" => 0 ),
"filename", "enablechunks"
);
}
'list' => 'watchlist' ), $data );
$this->assertArrayHasKey( 'query', $data[0] );
$this->assertArrayHasKey( 'watchlist', $data[0]['query'] );
- foreach( $data[0]['query']['watchlist'] as $index => $item ) {
+ foreach ( $data[0]['query']['watchlist'] as $index => $item ) {
// Previous tests may insert an invalid title
// like ":ApiEditPageTest testNonTextEdit", which
// can't be cleared.
- if ( strpos( $item['title'] , ':' ) === 0 ) {
+ if ( strpos( $item['title'], ':' ) === 0 ) {
unset( $data[0]['query']['watchlist'][$index] );
}
}