diff options
author | Reedy <reedy@wikimedia.org> | 2016-03-19 01:05:19 +0000 |
---|---|---|
committer | Legoktm <legoktm.wikipedia@gmail.com> | 2016-03-30 22:04:58 +0000 |
commit | 83fb19cb13f3485cfde25f550b8fc81fb9c61b95 (patch) | |
tree | 81df7980227b6f445e2f39e96cb38fb8cf166fdf /tests/phpunit/includes/content/JavaScriptContentHandlerTest.php | |
parent | 9496297a0e8c59013d90d0455832f52ca278541c (diff) | |
download | mediawikicore-83fb19cb13f3485cfde25f550b8fc81fb9c61b95.tar.gz mediawikicore-83fb19cb13f3485cfde25f550b8fc81fb9c61b95.zip |
Swap the rest of array() -> []
Change-Id: I76a7259ed952a0673a1941f08b39b545211fba07
Diffstat (limited to 'tests/phpunit/includes/content/JavaScriptContentHandlerTest.php')
-rw-r--r-- | tests/phpunit/includes/content/JavaScriptContentHandlerTest.php | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php b/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php index 17f653c45492..d229623980b2 100644 --- a/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php +++ b/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php @@ -22,11 +22,20 @@ class JavaScriptContentHandlerTest extends MediaWikiLangTestCase { */ public static function provideMakeRedirectContent() { // @codingStandardsIgnoreStart Generic.Files.LineLength - return array( - array( 'MediaWiki:MonoBook.js', '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=MediaWiki:MonoBook.js\u0026action=raw\u0026ctype=text/javascript");' ), - array( 'User:FooBar/common.js', '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=User:FooBar/common.js\u0026action=raw\u0026ctype=text/javascript");' ), - array( 'Gadget:FooBaz.js', '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=Gadget:FooBaz.js\u0026action=raw\u0026ctype=text/javascript");' ), - ); + return [ + [ + 'MediaWiki:MonoBook.js', + '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=MediaWiki:MonoBook.js\u0026action=raw\u0026ctype=text/javascript");' + ], + [ + 'User:FooBar/common.js', + '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=User:FooBar/common.js\u0026action=raw\u0026ctype=text/javascript");' + ], + [ + 'Gadget:FooBaz.js', + '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=Gadget:FooBaz.js\u0026action=raw\u0026ctype=text/javascript");' + ], + ]; // @codingStandardsIgnoreEnd } } |