diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-22 16:06:19 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-22 16:06:19 +0100 |
commit | 8afd5adfcf6f7ec78eddb96b77efcd316a0a0293 (patch) | |
tree | ecd06129c779d170b083023db63604eceded641c /fetcher | |
parent | 60ac229e36b1e2b07773dc93fc9bacdb2016df40 (diff) |
fix scrutinizer warnings
Diffstat (limited to 'fetcher')
-rw-r--r-- | fetcher/youtubefetcher.php | 4 |
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; } |