'Deny if wgExternalStores is not set to a non-empty array'
);
- $this->setMwGlobals( 'wgExternalStores', array( 'FOO' ) );
+ $this->setMwGlobals( 'wgExternalStores', [ 'FOO' ] );
$this->assertEquals(
ExternalStore::fetchFromURL( 'FOO://cluster1/200' ),
class ExternalStoreFOO {
- protected $data = array(
- 'cluster1' => array(
+ protected $data = [
+ 'cluster1' => [
'200' => 'Hello',
- '300' => array(
+ '300' => [
'Hello', 'World',
- ),
- ),
- );
+ ],
+ ],
+ ];
/**
* Fetch data from given URL