From 974f4f8f378985e290230a64df0ec8ac2850a38a Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Sun, 12 Aug 2012 21:35:37 +0200 Subject: [PATCH] Added missing @since tags and fixed style Change-Id: I8941345be8f754bda40f4c36cf2082ca3d408c50 --- tests/phpunit/MediaWikiTestCase.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index c96eba02f6..b9b45ae015 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -348,6 +348,8 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { * the values given in the order of the columns in the $fields parameter. * Note that the rows are sorted by the columns given in $fields. * + * @since 1.20 + * * @param $table String|Array the table(s) to query * @param $fields String|Array the columns to include in the result (and to sort by) * @param $condition String|Array "where" condition(s) @@ -421,14 +423,20 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { * Useful to turn a database result row as returned by fetchRow() into * a pure indexed array. * - * @static + * @since 1.20 + * * @param $r mixed the array to remove string keys from. */ protected static function stripStringKeys( &$r ) { - if ( !is_array( $r ) ) return; + if ( !is_array( $r ) ) { + return; + } foreach ( $r as $k => $v ) { - if ( is_string( $k ) ) unset( $r[$k] ); + if ( is_string( $k ) ) { + unset( $r[$k] ); + } } } + } -- 2.20.1