Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -318,16 +318,16 @@ |
319 | 319 | } |
320 | 320 | |
321 | 321 | /** |
322 | | - * Returns true if the text contains the word |
323 | | - * @return bool |
| 322 | + * Returns the number of times the text contains the word |
| 323 | + * @return int |
324 | 324 | */ |
325 | 325 | function match( $text ) { |
326 | 326 | return preg_match( $this->getRegex(), $text ); |
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
330 | | - * Returns true if the text starts with the word |
331 | | - * @return bool |
| 330 | + * Returns if the text starts with the word |
| 331 | + * @return int |
332 | 332 | */ |
333 | 333 | function matchStart( $text ) { |
334 | 334 | return preg_match( $this->getRegexStart(), $text ); |