comparison vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
197 * @param int $index 197 * @param int $index
198 * @return string 198 * @return string
199 */ 199 */
200 public function getLink($index = 0) 200 public function getLink($index = 0)
201 { 201 {
202 if (!array_key_exists('links', $this->data)) { 202 if (! array_key_exists('links', $this->data)) {
203 $this->getLinks(); 203 $this->getLinks();
204 } 204 }
205 205
206 if (isset($this->data['links'][$index])) { 206 if (isset($this->data['links'][$index])) {
207 return $this->data['links'][$index]; 207 return $this->data['links'][$index];
267 return $this->data['commentcount']; 267 return $this->data['commentcount'];
268 } 268 }
269 269
270 $commentcount = $this->getExtension('Thread')->getCommentCount(); 270 $commentcount = $this->getExtension('Thread')->getCommentCount();
271 271
272 if (!$commentcount) { 272 if (! $commentcount) {
273 $commentcount = $this->getExtension('Atom')->getCommentCount(); 273 $commentcount = $this->getExtension('Atom')->getCommentCount();
274 } 274 }
275 275
276 $this->data['commentcount'] = $commentcount; 276 $this->data['commentcount'] = $commentcount;
277 277