aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2012-02-09 17:41:50 +0000
committerSam Reed <reedy@users.mediawiki.org>2012-02-09 17:41:50 +0000
commitf3cc77aaeeb4f3a93fde7de80dbaafd89f6bd2bf (patch)
tree334257e53cddc371dab4ca057fed3571e670eb75 /includes/parser
parent20dba09fac9ad7715184eae8e2e3b2244258e6be (diff)
downloadmediawikicore-f3cc77aaeeb4f3a93fde7de80dbaafd89f6bd2bf.tar.gz
mediawikicore-f3cc77aaeeb4f3a93fde7de80dbaafd89f6bd2bf.zip
Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111048
Diffstat (limited to 'includes/parser')
-rw-r--r--includes/parser/Parser.php4
-rw-r--r--includes/parser/ParserCache.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 761149dd6abd..559dc9e08fc7 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -4660,7 +4660,7 @@ class Parser {
* Please read the documentation in includes/parser/Preprocessor.php for more information
* about the methods available in PPFrame and PPNode.
*
- * @return The old callback function for this name, if any
+ * @return string|callback The old callback function for this name, if any
*/
public function setFunctionHook( $id, $callback, $flags = 0 ) {
global $wgContLang;
@@ -4891,7 +4891,7 @@ class Parser {
*
* @param $title Title
* @param $options String
- * @param $holders LinkHolderArray|false
+ * @param $holders LinkHolderArray|bool
* @return string HTML
*/
function makeImage( $title, $options, $holders = false ) {
diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php
index 8b0432904e87..64a1aa0f8ed1 100644
--- a/includes/parser/ParserCache.php
+++ b/includes/parser/ParserCache.php
@@ -88,7 +88,7 @@ class ParserCache {
* Retrieve the ParserOutput from ParserCache, even if it's outdated.
* @param $article Article
* @param $popts ParserOptions
- * @return ParserOutput|false
+ * @return ParserOutput|bool
*/
public function getDirty( $article, $popts ) {
$value = $this->get( $article, $popts, true );
@@ -143,7 +143,7 @@ class ParserCache {
* @param $popts ParserOptions
* @param $useOutdated
*
- * @return ParserOutput|false
+ * @return ParserOutput|bool
*/
public function get( $article, $popts, $useOutdated = false ) {
global $wgCacheEpoch;