summaryrefslogtreecommitdiffstats
path: root/fetcher
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-22 16:06:19 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-22 16:06:19 +0100
commit8afd5adfcf6f7ec78eddb96b77efcd316a0a0293 (patch)
treeecd06129c779d170b083023db63604eceded641c /fetcher
parent60ac229e36b1e2b07773dc93fc9bacdb2016df40 (diff)
fix scrutinizer warnings
Diffstat (limited to 'fetcher')
-rw-r--r--fetcher/youtubefetcher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/fetcher/youtubefetcher.php b/fetcher/youtubefetcher.php
index cc96e987f..33a7671a4 100644
--- a/fetcher/youtubefetcher.php
+++ b/fetcher/youtubefetcher.php
@@ -29,7 +29,7 @@ class YoutubeFetcher implements IFeedFetcher {
$id = $matches[1];
return 'http://gdata.youtube.com/feeds/api/playlists/' . $id;
} else {
- return false;
+ return $url;
}
}
@@ -38,7 +38,7 @@ class YoutubeFetcher implements IFeedFetcher {
* This fetcher handles all the remaining urls therefore always returns true
*/
public function canHandle($url){
- return $this->buildUrl($url) !== false;
+ return $this->buildUrl($url) !== $url;
}