diff --git a/src/Reader/Extension/Syndication/Feed.php b/src/Reader/Extension/Syndication/Feed.php index ae659d64..298953a8 100644 --- a/src/Reader/Extension/Syndication/Feed.php +++ b/src/Reader/Extension/Syndication/Feed.php @@ -24,7 +24,7 @@ class Feed extends Extension\AbstractFeed public function getUpdatePeriod() { $name = 'updatePeriod'; - $period = $this->_getData($name); + $period = $this->getData($name); if ($period === null) { $this->data[$name] = 'daily'; @@ -52,7 +52,7 @@ public function getUpdatePeriod() public function getUpdateFrequency() { $name = 'updateFrequency'; - $freq = $this->_getData($name, 'number'); + $freq = $this->getData($name, 'number'); if (!$freq || $freq < 1) { $this->data[$name] = 1; @@ -70,7 +70,7 @@ public function getUpdateFrequency() public function getUpdateFrequencyAsTicks() { $name = 'updateFrequency'; - $freq = $this->_getData($name, 'number'); + $freq = $this->getData($name, 'number'); if (!$freq || $freq < 1) { $this->data[$name] = 1; @@ -107,7 +107,7 @@ public function getUpdateFrequencyAsTicks() */ public function getUpdateBase() { - $updateBase = $this->_getData('updateBase'); + $updateBase = $this->getData('updateBase'); $date = null; if ($updateBase) { $date = DateTime::createFromFormat(DateTime::W3C, $updateBase); @@ -122,7 +122,7 @@ public function getUpdateBase() * @param string $type * @return mixed|null */ - private function _getData($name, $type = 'string') + private function getData($name, $type = 'string') { if (array_key_exists($name, $this->data)) { return $this->data[$name];