You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Represent a URL, potentially extracted from a file, which can be tested
59
+
* @param string $url The URL itself
60
+
* @param string|null $text The text of the link to the URL
61
+
* @param string|null $file The file in which the URL has been found
62
+
* @param string|null $line The file line the URL has been found at
63
+
* @param string[]|null $replacements Some replacements to execute on the URL before testing it, like variables to replace by their values
64
+
* @param bool|string|null $find By default, URL is considered absolute or relative; If true, the URL will be considered partial and the target must be searched to solve the URL; If a string is given, this string will be used as a search prefix
65
+
* @param bool $test Set to true to test the URL immediately at construction time
* @param array[]|null $patterns A map of file extensions and pattern lists.
455
481
* @param string[]|null $replacements A map of replacements ['what_to_replace'=>'by_what_to replace']
456
-
* @param bool $find If the file must be searched for instead of just being considered as a relative path.
482
+
* @param bool|string $find If the URL target must be searched for instead of just being considered as a relative path; If a string is given, it will be used as search prefix
457
483
* @see UrlExtractor::getDefaultPatterns For an example of pattern map.
* @param string[] $usageFiles The list of files to extract URLs from
784
810
* @param string[] $resourceFiles The list of files that should be used by those URLs
785
811
* @param array[]|null $exclusionTests An associative array of arrays of functions testing if a URL should be excluded from test
812
+
* @param array|null $replacements A replacement map to apply on each URL
813
+
* @param bool|string $find If the URL target must be searched for instead of just being considered as a relative path; If a string is given, it will be used as search prefix
0 commit comments