Tweak documentation
authorSam Reed <reedy@users.mediawiki.org>
Fri, 29 Apr 2011 23:34:37 +0000 (23:34 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 29 Apr 2011 23:34:37 +0000 (23:34 +0000)
Add braces

includes/api/ApiQueryImageInfo.php
includes/parser/Parser.php
includes/specials/SpecialVersion.php

index 2ccee27..9c9525d 100644 (file)
@@ -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' ) {
index ee3eb58..19f2a67 100644 (file)
@@ -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 ) );
index 1c291a6..24d8908 100644 (file)
@@ -470,11 +470,12 @@ class SpecialVersion extends SpecialPage {
                                        <th>" . wfMsg( 'version-hook-subscribedby' ) . "</th>
                                </tr>\n";
 
-                       foreach ( $myWgHooks as $hook => $hooks )
+                       foreach ( $myWgHooks as $hook => $hooks ) {
                                $ret .= "<tr>
                                                <td>$hook</td>
                                                <td>" . $this->listToText( $hooks ) . "</td>
                                        </tr>\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]})";
                }
        }