mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
Merge pull request #6600 from Crizz0/ticket/17306
[ticket/17306] Add type declaration to get_context and array for $words
This commit is contained in:
commit
df43810f55
@ -320,7 +320,7 @@ function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_po
|
|||||||
* Generates a text with approx. the specified length which contains the specified words and their context
|
* Generates a text with approx. the specified length which contains the specified words and their context
|
||||||
*
|
*
|
||||||
* @param string $text The full text from which context shall be extracted
|
* @param string $text The full text from which context shall be extracted
|
||||||
* @param string $words An array of words which should be contained in the result, has to be a valid part of a PCRE pattern (escape with preg_quote!)
|
* @param array $words An array of words which should be contained in the result, has to be a valid part of a PCRE pattern (escape with preg_quote!)
|
||||||
* @param int $length The desired length of the resulting text, however the result might be shorter or longer than this value
|
* @param int $length The desired length of the resulting text, however the result might be shorter or longer than this value
|
||||||
*
|
*
|
||||||
* @return string Context of the specified words separated by "..."
|
* @return string Context of the specified words separated by "..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user