Mercurial > hg > cmmr2012-drupal-site
comparison vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | 5311817fb629 |
children | 12f9dff5fda9 |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
120 } | 120 } |
121 | 121 |
122 /** | 122 /** |
123 * Return the current entry | 123 * Return the current entry |
124 * | 124 * |
125 * @return \Zend\Feed\Reader\AbstractEntry | 125 * @return \Zend\Feed\Reader\Entry\AbstractEntry |
126 */ | 126 */ |
127 public function current() | 127 public function current() |
128 { | 128 { |
129 if (substr($this->getType(), 0, 3) == 'rss') { | 129 if (0 === strpos($this->getType(), 'rss')) { |
130 $reader = new Entry\RSS($this->entries[$this->key()], $this->key(), $this->getType()); | 130 $reader = new Entry\RSS($this->entries[$this->key()], $this->key(), $this->getType()); |
131 } else { | 131 } else { |
132 $reader = new Entry\Atom($this->entries[$this->key()], $this->key(), $this->getType()); | 132 $reader = new Entry\Atom($this->entries[$this->key()], $this->key(), $this->getType()); |
133 } | 133 } |
134 | 134 |