From 430b31415fb734d1addb67a9b80393f5daa43c85 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Fri, 5 Oct 2012 16:11:18 +0200 Subject: [PATCH] Replace remaining Array occurences with array Change-Id: Id7c2fdd6814a8239acbe050d857b56350e691a49 --- includes/SqlDataUpdate.php | 2 +- includes/installer/DatabaseUpdater.php | 2 +- maintenance/language/checkLanguage.inc | 4 ++-- tests/phpunit/MediaWikiTestCase.php | 2 +- tests/phpunit/includes/LinksUpdateTest.php | 2 +- tests/phpunit/includes/api/ApiTestCase.php | 4 ++-- tests/phpunit/includes/upload/UploadFromUrlTest.php | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/SqlDataUpdate.php b/includes/SqlDataUpdate.php index 52c9be00d4..256e8f74c6 100644 --- a/includes/SqlDataUpdate.php +++ b/includes/SqlDataUpdate.php @@ -108,7 +108,7 @@ abstract class SqlDataUpdate extends DataUpdate { * @param $namespace Integer * @param $dbkeys Array */ - protected function invalidatePages( $namespace, Array $dbkeys ) { + protected function invalidatePages( $namespace, array $dbkeys ) { if ( !count( $dbkeys ) ) { return; } diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index ff0a99e9ff..a5753345d2 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -177,7 +177,7 @@ abstract class DatabaseUpdater { * Note that callback functions will receive this object as * first parameter. */ - public function addExtensionUpdate( Array $update ) { + public function addExtensionUpdate( array $update ) { $this->extensionUpdates[] = $update; } diff --git a/maintenance/language/checkLanguage.inc b/maintenance/language/checkLanguage.inc index 11b00e148b..2a0932a5aa 100644 --- a/maintenance/language/checkLanguage.inc +++ b/maintenance/language/checkLanguage.inc @@ -43,7 +43,7 @@ class CheckLanguageCLI { * Constructor. * @param $options array Options for script. */ - public function __construct( Array $options ) { + public function __construct( array $options ) { if ( isset( $options['help'] ) ) { echo $this->help(); exit(1); @@ -484,7 +484,7 @@ class CheckExtensionsCLI extends CheckLanguageCLI { * @param $options array Options for script. * @param $extension string The extension name (or names). */ - public function __construct( Array $options, $extension ) { + public function __construct( array $options, $extension ) { if ( isset( $options['help'] ) ) { echo $this->help(); exit(1); diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index f9e9f77b30..54a3f7c31d 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -368,7 +368,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { * or list the tables under testing in $this->tablesUsed, or override the * needsDB() method. */ - protected function assertSelect( $table, $fields, $condition, Array $expectedRows ) { + protected function assertSelect( $table, $fields, $condition, array $expectedRows ) { if ( !$this->needsDB() ) { throw new MWException( 'When testing database state, the test cases\'s needDB()' . ' method should return true. Use @group Database or $this->tablesUsed.'); diff --git a/tests/phpunit/includes/LinksUpdateTest.php b/tests/phpunit/includes/LinksUpdateTest.php index 09858b0751..8e37b139bd 100644 --- a/tests/phpunit/includes/LinksUpdateTest.php +++ b/tests/phpunit/includes/LinksUpdateTest.php @@ -148,7 +148,7 @@ class LinksUpdateTest extends MediaWikiTestCase { #@todo: test recursive, too! - protected function assertLinksUpdate( Title $title, ParserOutput $parserOutput, $table, $fields, $condition, Array $expectedRows ) { + protected function assertLinksUpdate( Title $title, ParserOutput $parserOutput, $table, $fields, $condition, array $expectedRows ) { $update = new LinksUpdate( $title, $parserOutput ); $update->doUpdate(); diff --git a/tests/phpunit/includes/api/ApiTestCase.php b/tests/phpunit/includes/api/ApiTestCase.php index 3cec99af90..3ca674194a 100644 --- a/tests/phpunit/includes/api/ApiTestCase.php +++ b/tests/phpunit/includes/api/ApiTestCase.php @@ -41,7 +41,7 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { } - protected function doApiRequest( Array $params, Array $session = null, $appendModule = false, User $user = null ) { + protected function doApiRequest( array $params, array $session = null, $appendModule = false, User $user = null ) { global $wgRequest, $wgUser; if ( is_null( $session ) ) { @@ -86,7 +86,7 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { * @param $session Array|null: session array * @param $user User|null A User object for the context */ - protected function doApiRequestWithToken( Array $params, Array $session = null, User $user = null ) { + protected function doApiRequestWithToken( array $params, array $session = null, User $user = null ) { global $wgRequest; if ( $session === null ) { diff --git a/tests/phpunit/includes/upload/UploadFromUrlTest.php b/tests/phpunit/includes/upload/UploadFromUrlTest.php index f66c387b10..3093334477 100644 --- a/tests/phpunit/includes/upload/UploadFromUrlTest.php +++ b/tests/phpunit/includes/upload/UploadFromUrlTest.php @@ -20,7 +20,7 @@ class UploadFromUrlTest extends ApiTestCase { } } - protected function doApiRequest( Array $params, Array $unused = null, $appendModule = false, User $user = null ) { + protected function doApiRequest( array $params, array $unused = null, $appendModule = false, User $user = null ) { $sessionId = session_id(); session_write_close(); -- 2.20.1