}
};
- $importer = new WikiImporter( $source, ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) );
+ $importer = new WikiImporter(
+ $source,
+ ConfigFactory::getDefaultInstance()->makeConfig( 'main' )
+ );
$importer->setPageOutCallback( $callback );
$importer->doImport();
}
public function getRedirectXML() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array(
<<< EOF
null
),
);
+ // @codingStandardsIgnoreEnd
}
/**
$importNamespaces = $siteinfo['_namespaces'];
};
- $importer = new WikiImporter( $source, ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) );
+ $importer = new WikiImporter(
+ $source,
+ ConfigFactory::getDefaultInstance()->makeConfig( 'main' )
+ );
$importer->setSiteInfoCallback( $callback );
$importer->doImport();
}
public function getSiteInfoXML() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array(
<<< EOF
)
),
);
+ // @codingStandardsIgnoreEnd
}
}
public function provideCasesForFormatComment() {
$wikiId = 'enwiki'; // $wgConf has a fake entry for this
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
// Linker::formatComment
array(
false, false, $wikiId
)
);
+ // @codingStandardsIgnoreEnd
}
/**
private function assertNotReal() {
global $wgDBprefix;
- if ( $wgDBprefix !== MediaWikiTestCase::DB_PREFIX && $wgDBprefix !== MediaWikiTestCase::ORA_DB_PREFIX ) {
+ if ( $wgDBprefix !== MediaWikiTestCase::DB_PREFIX &&
+ $wgDBprefix !== MediaWikiTestCase::ORA_DB_PREFIX
+ ) {
throw new MWException( "Can't create user on real database" );
}
}
return $this->makeRecentChange( $attribs, $counter, $watchingUsers );
}
- public function makeLogRecentChange( $logType, $logAction, User $user, $titleText, $timestamp, $counter,
- $watchingUsers
+ public function makeLogRecentChange(
+ $logType, $logAction, User $user, $titleText, $timestamp, $counter, $watchingUsers
) {
$attribs = array_merge(
$this->getDefaultAttributes( $titleText, $timestamp ),
# protect/modify
$this->assertIRCComment(
- $this->context->msg( 'modifiedarticleprotection', 'SomeTitle ' . $protectParams['4::description'] )
- ->plain() . $sep . $this->user_comment,
+ $this->context->msg(
+ 'modifiedarticleprotection',
+ 'SomeTitle ' . $protectParams['4::description']
+ )->plain() . $sep . $this->user_comment,
'protect', 'modify',
$protectParams,
$this->user_comment
),
),
array(
- 'text' => 'User protected ProtectPage [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)',
+ 'text' => 'User protected ProtectPage [Edit=Allow only administrators] ' .
+ '(indefinite) [Move=Allow only administrators] (indefinite)',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => false,
),
),
array(
- 'text' => 'User protected ProtectPage [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [cascading]',
+ 'text' => 'User protected ProtectPage [Edit=Allow only administrators] ' .
+ '(indefinite) [Move=Allow only administrators] (indefinite) [cascading]',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => true,
),
array(
'legacy' => true,
- 'text' => 'User protected ProtectPage [edit=sysop] (indefinite)[move=sysop] (indefinite) [cascading]',
+ 'text' => 'User protected ProtectPage [edit=sysop] ' .
+ '(indefinite)[move=sysop] (indefinite) [cascading]',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => true,
),
),
array(
- 'text' => 'User changed protection level for ProtectPage [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)',
+ 'text' => 'User changed protection level for ProtectPage ' .
+ '[Edit=Allow only administrators] ' .
+ '(indefinite) [Move=Allow only administrators] (indefinite)',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => false,
),
array(
'legacy' => true,
- 'text' => 'User changed protection level for ProtectPage [edit=sysop] (indefinite)[move=sysop] (indefinite)',
+ 'text' => 'User changed protection level for ProtectPage ' .
+ '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => false,
),
array(
'legacy' => true,
- 'text' => 'User changed protection level for ProtectPage [edit=sysop] (indefinite)[move=sysop] (indefinite) [cascading]',
+ 'text' => 'User changed protection level for ProtectPage ' .
+ '[edit=sysop] (indefinite)[move=sysop] (indefinite) [cascading]',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => true,
$this->markTestSkipped( 'This test only works on non-Windows platforms' );
}
$user = $this->getMock( 'User' );
- $user->expects( $this->any() )->method( 'getName' )->will( $this->returnValue( 'UserName' ) );
- $user->expects( $this->any() )->method( 'getEmail' )->will( $this->returnValue( 'foo@bar.baz' ) );
- $user->expects( $this->any() )->method( 'getRealName' )->will( $this->returnValue( 'Real name' ) );
+ $user->expects( $this->any() )->method( 'getName' )->will(
+ $this->returnValue( 'UserName' )
+ );
+ $user->expects( $this->any() )->method( 'getEmail' )->will(
+ $this->returnValue( 'foo@bar.baz' )
+ );
+ $user->expects( $this->any() )->method( 'getRealName' )->will(
+ $this->returnValue( 'Real name' )
+ );
$ma = MailAddress::newFromUser( $user );
$this->assertInstanceOf( 'MailAddress', $ma );
$this->assertEquals( $expectedResult, WebPHandler::extractMetadata( $this->tempFileName ) );
}
public function provideTestExtractMetaData() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
// Files from https://developers.google.com/speed/webp/gallery2
array( "\x52\x49\x46\x46\x90\x68\x01\x00\x57\x45\x42\x50\x56\x50\x38\x4C\x83\x68\x01\x00\x2F\x8F\x01\x4B\x10\x8D\x38\x6C\xDB\x46\x92\xE0\xE0\x82\x7B\x6C",
array( 'RIFF1234WEBPVP8 ', false ),
array( 'RIFF1234WEBPVP8L ', false ),
);
+ // @codingStandardsIgnoreEnd
}
/**
array(
array( 'wgGroupPermissions' ),
array(
- 'wgGroupPermissions' => array( 'sysop' => array( 'delete' ) ),
+ 'wgGroupPermissions' => array(
+ 'sysop' => array( 'delete' )
+ ),
),
array(
- 'GroupPermissions' => array( 'sysop' => array( 'undelete' ), 'user' => array( 'edit' ) ),
+ 'GroupPermissions' => array(
+ 'sysop' => array( 'undelete' ),
+ 'user' => array( 'edit' )
+ ),
),
array(
- 'wgGroupPermissions' => array( 'sysop' => array( 'delete', 'undelete' ), 'user' => array( 'edit' ) ),
+ 'wgGroupPermissions' => array(
+ 'sysop' => array( 'delete', 'undelete' ),
+ 'user' => array( 'edit' )
+ ),
)
)
);
}
public static function provideCheckSvgScriptCallback() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
// html5sec SVG vectors
array(
'SVG with local urls, including filter: in style'
),
);
+ // @codingStandardsIgnoreEnd
}
}