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
Copy file name to clipboardExpand all lines: tools/links/links.php
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ public function isTested(): bool
113
113
}
114
114
115
115
/**
116
-
* The raw URL
116
+
* Get the raw URL.
117
117
*
118
118
* @return string
119
119
*/
@@ -122,6 +122,9 @@ public function getUrl(): string
122
122
return$this->url;
123
123
}
124
124
125
+
/**
126
+
* Execute URL transformations like replacements.
127
+
*/
125
128
publicfunctiongetTransformedUrl(): string
126
129
{
127
130
if (null === $this->transformedUrl) {
@@ -282,7 +285,7 @@ public function isInternal(): bool
282
285
*
283
286
* If the URL is external, return the response HTTP headers (as an array), the HTTP status code as an integer, the eventual `location` HTTP header used for redirection, if there is a fragment to test, if that fragment has been found in the content available at the URL
284
287
* If the URL is internal, return the code 200 if the target exists, 404 if not, if there is a fragment to test, if that fragment has been found in the content available at the URL
285
-
* @param string $url The URL istsel
288
+
* @param string $url The URL itself
286
289
* @param bool|null $external If it's an external URL (`true`) or not (`false`), if `null`, the system try to guess it using {@see \TestableUrl::isExternalUrl()}
287
290
* @param bool $testFragment If the eventual fragment/hash/anchor part should be tested
288
291
* @param int $retryCount Number of retries on time out
@@ -703,6 +706,7 @@ public static function convertPatternFromPhpToGrep(string $pattern): string
0 commit comments