summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher/YoutubeFetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fetcher/YoutubeFetcher.php')
-rw-r--r--lib/Fetcher/YoutubeFetcher.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Fetcher/YoutubeFetcher.php b/lib/Fetcher/YoutubeFetcher.php
index 56adaae03..85aad5d59 100644
--- a/lib/Fetcher/YoutubeFetcher.php
+++ b/lib/Fetcher/YoutubeFetcher.php
@@ -37,9 +37,13 @@ class YoutubeFetcher implements IFeedFetcher
/**
- * This fetcher handles all the remaining urls therefore always returns true
+ * Check if the URL is a youtube URL by reformatting it.
+ *
+ * @param string $url the url that should be fetched
+ *
+ * @return bool
*/
- public function canHandle($url): bool
+ public function canHandle(string $url): bool
{
return $this->buildUrl($url) !== $url;
}