From 326cfb21cf6f03e98e6d37a6c2cf382ad725dff7 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 18 Nov 2018 16:11:36 +0100 Subject: [PATCH] [FeedExpander] Rename $name to $title --- lib/FeedExpander.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index 9c7d1439..fb1bfa28 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -38,9 +38,8 @@ abstract class FeedExpander extends BridgeAbstract { * Holds the title of the current feed * * @var string - * @todo Rename this parameter to $title for clarity */ - private $name; + private $title; /** * Holds the URI of the feed @@ -207,7 +206,7 @@ abstract class FeedExpander extends BridgeAbstract { * @todo set title, link, description, language, and so on */ protected function load_RSS_2_0_feed_data($rssContent){ - $this->name = trim((string)$rssContent->title); + $this->title = trim((string)$rssContent->title); $this->uri = trim((string)$rssContent->link); } @@ -218,7 +217,7 @@ abstract class FeedExpander extends BridgeAbstract { * @return void */ protected function load_ATOM_feed_data($content){ - $this->name = (string)$content->title; + $this->title = (string)$content->title; // Find best link (only one, or first of 'alternate') if(!isset($content->link)) { @@ -401,7 +400,7 @@ abstract class FeedExpander extends BridgeAbstract { /** {@inheritdoc} */ public function getName(){ - return !empty($this->name) ? $this->name : parent::getName(); + return !empty($this->title) ? $this->title : parent::getName(); } /** {@inheritdoc} */