From: Sam Reed Date: Fri, 20 Nov 2009 22:28:37 +0000 (+0000) Subject: bug 21583 MagicWord::match function documentation is wrong X-Git-Tag: 1.31.0-rc.0~38739 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=27160794d01040bf7f249353fb56569837d6a0a0;p=lhc%2Fweb%2Fwiklou.git bug 21583 MagicWord::match function documentation is wrong +Similar change to matchStart --- diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 8877bac687..aad267bf35 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -318,16 +318,16 @@ class MagicWord { } /** - * Returns true if the text contains the word - * @return bool + * Returns the number of times the text contains the word + * @return int */ function match( $text ) { return preg_match( $this->getRegex(), $text ); } /** - * Returns true if the text starts with the word - * @return bool + * Returns if the text starts with the word + * @return int */ function matchStart( $text ) { return preg_match( $this->getRegexStart(), $text );