}
private function getExpectedData() {
- return array(
- 'sites' => array(
- 'foobar' => array(
+ return [
+ 'sites' => [
+ 'foobar' => [
'globalid' => 'foobar',
'type' => 'unknown',
'group' => 'none',
'source' => 'local',
'language' => null,
- 'localids' => array(),
- 'config' => array(),
- 'data' => array(),
+ 'localids' => [],
+ 'config' => [],
+ 'data' => [],
'forward' => false,
'internalid' => null,
- 'identifiers' => array()
- ),
- 'enwiktionary' => array(
+ 'identifiers' => []
+ ],
+ 'enwiktionary' => [
'globalid' => 'enwiktionary',
'type' => 'mediawiki',
'group' => 'wiktionary',
'source' => 'local',
'language' => 'en',
- 'localids' => array(
- 'equivalent' => array( 'enwiktionary' )
- ),
- 'config' => array(),
- 'data' => array(
- 'paths' => array(
+ 'localids' => [
+ 'equivalent' => [ 'enwiktionary' ]
+ ],
+ 'config' => [],
+ 'data' => [
+ 'paths' => [
'page_path' => 'https://en.wiktionary.org/wiki/$1',
'file_path' => 'https://en.wiktionary.org/w/$1'
- )
- ),
+ ]
+ ],
'forward' => false,
'internalid' => null,
- 'identifiers' => array(
- array(
+ 'identifiers' => [
+ [
'type' => 'equivalent',
'key' => 'enwiktionary'
- )
- )
- )
- )
- );
+ ]
+ ]
+ ]
+ ]
+ ];
}
private function newSitesCacheFileBuilder( SiteList $sites ) {
}
private function getSites() {
- $sites = array();
+ $sites = [];
$site = new Site();
$site->setGlobalId( 'foobar' );