From 2c5cd049a7199bb8b78d49456a80c5ee679f6551 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 15 May 2010 20:16:26 +0000 Subject: [PATCH] Fixed some doxygen warnings --- includes/parser/ParserCache.php | 2 +- includes/parser/ParserOutput.php | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index 524d6be5b2..af596633dd 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -20,7 +20,7 @@ class ParserCache { * Setup a cache pathway with a given back-end storage mechanism. * May be a memcached client or a BagOStuff derivative. * - * @param object $memCached + * @param $memCached Object */ function __construct( $memCached ) { $this->mMemc = $memCached; diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 9cbcfee599..bc805d8dc0 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -101,8 +101,8 @@ class ParserOutput /** * Record a local or interwiki inline link for saving in future link tables. * - * @param Title $title - * @param mixed $id optional known page_id so we can skip the lookup + * @param $title Title object + * @param $id Mixed: optional known page_id so we can skip the lookup */ function addLink( $title, $id = null ) { if ( $title->isExternal() ) { @@ -150,7 +150,7 @@ class ParserOutput } /** - * @param Title $title object, must be an interwiki link + * @param $title Title object, must be an interwiki link * @throws MWException if given invalid input */ function addInterwikiLink( $title ) { @@ -169,11 +169,10 @@ class ParserOutput * per-article cache invalidation timestamps, or if it comes from * an incompatible older version. * - * @param string $touched the affected article's last touched timestamp - * @return bool - * @public + * @param $touched String: the affected article's last touched timestamp + * @return Boolean */ - function expired( $touched ) { + public function expired( $touched ) { global $wgCacheEpoch; return $this->getCacheTime() == -1 || // parser says it's uncacheable $this->getCacheTime() < $touched || @@ -200,7 +199,7 @@ class ParserOutput * -- this is assumed to have been validated * (check equal normalisation, etc.) * - * @param string $text Desired title text + * @param $text String: desired title text */ public function setDisplayTitle( $text ) { $this->setTitleText( $text ); @@ -209,7 +208,7 @@ class ParserOutput /** * Get the title to be used for display * - * @return string + * @return String */ public function getDisplayTitle() { $t = $this->getTitleText( ); -- 2.20.1