From 557a8dcc6a75cca8c88d5b4af3fa821d97910dfa Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Wed, 7 Sep 2011 17:25:52 +0000 Subject: [PATCH] Ran stylize.php. Required manual corrections: * $params[$index-1] was changed to $params[$index -1] instead of $params[$index - 1] * ///!< @var string was changed to /// !< @var string, but should have remain unchanged. --- includes/logging/LogEntry.php | 4 ++-- includes/logging/LogFormatter.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index 12f1b23c36..9ba66bce3d 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -122,7 +122,7 @@ class DatabaseLogEntry extends LogEntryBase { $fields = array( 'log_id', 'log_type', 'log_action', 'log_timestamp', 'log_user', 'log_user_text', - 'log_namespace', 'log_title', //unused log_page + 'log_namespace', 'log_title', // unused log_page 'log_comment', 'log_params', 'log_deleted', 'user_id', 'user_name', 'user_editcount', ); @@ -319,7 +319,7 @@ class ManualLogEntry extends LogEntryBase { } /** - * Set extra log parameters. + * Set extra log parameters. * You can pass params to the log action message * by prefixing the keys with a number and colon. * The numbering should start with number 4, the diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 6f7cb3a551..e9b01eff3f 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -171,7 +171,7 @@ class LogFormatter { if ( $entry->isLegacy() ) { foreach ( $entry->getParameters() as $index => $value ) { - $params[$index+3] = $value; + $params[$index + 3] = $value; } } @@ -179,7 +179,7 @@ class LogFormatter { foreach ( $entry->getParameters() as $key => $value ) { if ( strpos( $key, ':' ) === false ) continue; list( $index, $type, $name ) = explode( ':', $key, 3 ); - $params[$index-1] = $value; + $params[$index - 1] = $value; } /* Message class doesn't like non consecutive numbering. -- 2.20.1