From 8ab1fb86a95a619a2153223bde841412284b7c17 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 18 Nov 2018 16:03:32 +0100 Subject: [PATCH] [FeedExpander] Let collectExpandableDatas() return self --- lib/FeedExpander.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index 04f835aa..9c7d1439 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -29,7 +29,6 @@ * @link http://www.rssboard.org/rss-specification RSS 2.0 Specification * @link https://tools.ietf.org/html/rfc4287 The Atom Syndication Format * - * @todo Return `self` on more functions to allow chaining * @todo The parsing functions should all be private. This class is complicated * enough without having to consider children overriding functions. */ @@ -67,7 +66,7 @@ abstract class FeedExpander extends BridgeAbstract { * @param string $url URL to the feed. * @param int $maxItems Maximum number of items to collect from the feed * (`-1`: no limit). - * @return void + * @return self */ public function collectExpandableDatas($url, $maxItems = -1){ if(empty($url)) { @@ -105,6 +104,8 @@ abstract class FeedExpander extends BridgeAbstract { Debug::log('Calling function "collect_' . $this->feedType . '_data"'); $this->{'collect_' . $this->feedType . '_data'}($rssContent, $maxItems); + + return $this; } /**