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.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Fetcher/YoutubeFetcher.php b/lib/Fetcher/YoutubeFetcher.php
index 9ccce4463..fd4e7d2fb 100644
--- a/lib/Fetcher/YoutubeFetcher.php
+++ b/lib/Fetcher/YoutubeFetcher.php
@@ -39,7 +39,7 @@ class YoutubeFetcher implements IFeedFetcher
/**
* This fetcher handles all the remaining urls therefore always returns true
*/
- public function canHandle($url)
+ public function canHandle($url): bool
{
return $this->buildUrl($url) !== $url;
}
@@ -59,8 +59,7 @@ class YoutubeFetcher implements IFeedFetcher
* @return array an array containing the new feed and its items, first
* element being the Feed and second element being an array of Items
*/
- public function fetch($url, $getFavicon = true, $lastModified = null, $user = null, $password = null
- )
+ public function fetch($url, $getFavicon = true, $lastModified = null, $user = null, $password = null): array
{
$transformedUrl = $this->buildUrl($url);