From ef6afb5d9e7a4728c351d39fcd544dec508aab9b Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 29 Apr 2011 23:34:37 +0000 Subject: [PATCH] Tweak documentation Add braces --- includes/api/ApiQueryImageInfo.php | 2 +- includes/parser/Parser.php | 3 ++- includes/specials/SpecialVersion.php | 8 +++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 2ccee27252..9c9525d8a5 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -267,7 +267,7 @@ class ApiQueryImageInfo extends ApiQueryBase { * @param $prop Array of properties to get (in the keys) * @param $result ApiResult object * @param $thumbParams Array containing 'width' and 'height' items, or null - * @param $version Version of image metadata (for things like jpeg which have different versions). + * @param $version string Version of image metadata (for things like jpeg which have different versions). * @return Array: result array */ static function getInfo( $file, $prop, $result, $thumbParams = null, $version = 'latest' ) { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index ee3eb589a4..19f2a677f0 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5057,7 +5057,6 @@ class Parser { * @param $text String * @param $frame PPFrame * @return String - * @private */ function attributeStripCallback( &$text, $frame = false ) { $text = $this->replaceVariables( $text, $frame ); @@ -5067,6 +5066,8 @@ class Parser { /** * Accessor + * + * @return array */ function getTags() { return array_merge( array_keys( $this->mTransparentTagHooks ), array_keys( $this->mTagHooks ) ); diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 1c291a6fc9..24d8908a5a 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -470,11 +470,12 @@ class SpecialVersion extends SpecialPage { " . wfMsg( 'version-hook-subscribedby' ) . " \n"; - foreach ( $myWgHooks as $hook => $hooks ) + foreach ( $myWgHooks as $hook => $hooks ) { $ret .= " $hook " . $this->listToText( $hooks ) . " \n"; + } $ret .= Xml::closeElement( 'table' ); return $ret; @@ -572,10 +573,11 @@ class SpecialVersion extends SpecialPage { } elseif ( !is_array( $list ) ) { return $list; } else { - if( is_object( $list[0] ) ) + if( is_object( $list[0] ) ) { $class = get_class( $list[0] ); - else + } else { $class = $list[0]; + } return "($class, {$list[1]})"; } } -- 2.20.1