* @param string $name
* @param int $width
* @param int $height
- * @param null $result
+ * @param array $result Out parameter that will be changed by the function.
* @param string $otherParams
+ *
* @return bool
*/
function getThumbUrl( $name, $width = -1, $height = -1, &$result = null, $otherParams = '' ) {
}
/**
- * @throws MWException
* @param DatabaseBase $db
* @param bool $shared
- * @param null $maintenance
+ * @param Maintenance $maintenance
+ *
+ * @throws MWException
* @return DatabaseUpdater
*/
public static function newForDB( &$db, $shared = false, $maintenance = null ) {
}
/**
- * @param $parser Parser
- * @param $date
- * @param null $defaultPref
- * @return mixed|string
+ * @param Parser $parser
+ * @param string $date
+ * @param string $defaultPref
+ *
+ * @return string
*/
static function formatDate( $parser, $date, $defaultPref = null ) {
$lang = $parser->getFunctionLang();
* @param string $preference User preference
* @param string $text Text to reformat
* @param array $options can contain 'linked' and/or 'match-whole'
- * @return mixed|String
+ *
+ * @return string
*/
function reformat( $preference, $text, $options = array( 'linked' ) ) {
$linked = in_array( 'linked', $options );
}
/**
- * Serializes Content object of the type supported by this ContentHandler.
+ * @see ContentHandler::serializeContent
*
- * @param Content $content the Content object to serialize
- * @param null $format the desired serialization format
- * @return String serialized form of the content
+ * @param Content $content
+ * @param string $format
+ *
+ * @return string
*/
public function serializeContent( Content $content, $format = null ) {
return $content->serialize();
}
/**
- * Unserializes a Content object of the type supported by this ContentHandler.
+ * @see ContentHandler::unserializeContent
+ *
+ * @param string $blob
+ * @param string $format Unused.
*
- * @param $blob String serialized form of the content
- * @param null $format the format used for serialization
- * @return Content the Content object created by deserializing $blob
+ * @return Content
*/
public function unserializeContent( $blob, $format = null ) {
$d = unserialize( $blob );
/**
* @param Title $title
- * @param null $revId
+ * @param int $revId Unused.
* @param null|ParserOptions $options
* @param boolean $generateHtml whether to generate Html (default: true). If false,
* the result of calling getText() on the ParserOutput object returned by