* @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' ) {
* @param $text String
* @param $frame PPFrame
* @return String
- * @private
*/
function attributeStripCallback( &$text, $frame = false ) {
$text = $this->replaceVariables( $text, $frame );
/**
* Accessor
+ *
+ * @return array
*/
function getTags() {
return array_merge( array_keys( $this->mTransparentTagHooks ), array_keys( $this->mTagHooks ) );
<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;
} 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]})";
}
}