Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 4fd5114

Browse files
committed
Fix API bug
Signed-off-by: Yoshi2889 <[email protected]>
1 parent 6ac32e9 commit 4fd5114

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SnifferHelper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
namespace WildPHP\Modules\LinkSniffer;
2222

2323
use WildPHP\API\Remote;
24+
use WildPHP\API\Validation;
2425

2526
class SnifferHelper
2627
{
@@ -40,7 +41,7 @@ public static function extractUriFromString($string)
4041

4142
$possibleUri = $matches[0];
4243

43-
if (!Remote::isValidLink($possibleUri))
44+
if (!Validation::isValidLink($possibleUri))
4445
throw new NoUriFoundException();
4546

4647
return $possibleUri;
@@ -91,4 +92,4 @@ public static function getContentTypeFromUri($uri)
9192

9293
return $content_type;
9394
}
94-
}
95+
}

0 commit comments

Comments
 (0)