From 2bdfbe629f41829425d948d3ccea8505f67d68b6 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 28 Sep 2015 13:40:27 +0200 Subject: [PATCH] Fix PHPCS warnings in includes/installer 8 uses of $IP remain, which trigger the global naming convention check. Change-Id: I1040782323ec7512fb7badd6052742ecd13d9dff --- includes/installer/PostgresInstaller.php | 7 ++++++- includes/installer/PostgresUpdater.php | 6 ++++-- includes/installer/SqliteUpdater.php | 3 ++- includes/installer/WebInstaller.php | 3 ++- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index cb40f884f1..c10e81afc0 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -83,7 +83,12 @@ class PostgresInstaller extends DatabaseInstaller { function submitConnectForm() { // Get variables from the request - $newValues = $this->setVarsFromRequest( array( 'wgDBserver', 'wgDBport', 'wgDBname', 'wgDBmwschema' ) ); + $newValues = $this->setVarsFromRequest( array( + 'wgDBserver', + 'wgDBport', + 'wgDBname', + 'wgDBmwschema' + ) ); // Validate them $status = Status::newGood(); diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 0c984ced7a..7414d926c7 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -250,7 +250,8 @@ class PostgresUpdater extends DatabaseUpdater { array( 'addPgIndex', 'recentchanges', 'rc_timestamp_bot', '(rc_timestamp) WHERE rc_bot = 0' ), array( 'addPgIndex', 'templatelinks', 'templatelinks_from', '(tl_from)' ), array( 'addPgIndex', 'watchlist', 'wl_user', '(wl_user)' ), - array( 'addPgIndex', 'watchlist', 'wl_user_notificationtimestamp', '(wl_user, wl_notificationtimestamp)' ), + array( 'addPgIndex', 'watchlist', 'wl_user_notificationtimestamp', + '(wl_user, wl_notificationtimestamp)' ), array( 'addPgIndex', 'logging', 'logging_user_type_time', '(log_user, log_type, log_timestamp)' ), array( 'addPgIndex', 'logging', 'logging_page_id_time', '(log_page,log_timestamp)' ), @@ -955,6 +956,7 @@ END; $this->output( "...bug 66650 already fixed or not applicable.\n" ); return true; }; - $this->applyPatch( 'patch-textsearch_bug66650.sql', false, "Rebuilding text search for bug 66650" ); + $this->applyPatch( 'patch-textsearch_bug66650.sql', false, + 'Rebuilding text search for bug 66650' ); } } diff --git a/includes/installer/SqliteUpdater.php b/includes/installer/SqliteUpdater.php index 2693be0d04..0de1fd7cc4 100644 --- a/includes/installer/SqliteUpdater.php +++ b/includes/installer/SqliteUpdater.php @@ -132,7 +132,8 @@ class SqliteUpdater extends DatabaseUpdater { // 1.24 array( 'addField', 'page_props', 'pp_sortkey', 'patch-pp_sortkey.sql' ), array( 'dropField', 'recentchanges', 'rc_cur_time', 'patch-drop-rc_cur_time.sql' ), - array( 'addIndex', 'watchlist', 'wl_user_notificationtimestamp', 'patch-watchlist-user-notificationtimestamp-index.sql' ), + array( 'addIndex', 'watchlist', 'wl_user_notificationtimestamp', + 'patch-watchlist-user-notificationtimestamp-index.sql' ), array( 'addField', 'page', 'page_lang', 'patch-page-page_lang.sql' ), array( 'addField', 'pagelinks', 'pl_from_namespace', 'patch-pl_from_namespace.sql' ), array( 'addField', 'templatelinks', 'tl_from_namespace', 'patch-tl_from_namespace.sql' ), diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index 74904f120b..c2243b9efd 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -960,7 +960,8 @@ class WebInstaller extends Installer { * var: The variable to be configured (required) * label: The message name for the label (required) * itemLabelPrefix: The message name prefix for the item labels (required) - * itemLabels: List of message names to use for the item labels instead of itemLabelPrefix, keyed by values + * itemLabels: List of message names to use for the item labels instead + * of itemLabelPrefix, keyed by values * values: List of allowed values (required) * itemAttribs: Array of attribute arrays, outer key is the value name (optional) * commonAttribs: Attribute array applied to all items -- 2.20.1