Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-feed/src/Writer/Feed.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 | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
97 * @throws Exception\InvalidArgumentException | 97 * @throws Exception\InvalidArgumentException |
98 * @return Feed | 98 * @return Feed |
99 */ | 99 */ |
100 public function removeEntry($index) | 100 public function removeEntry($index) |
101 { | 101 { |
102 if (!isset($this->entries[$index])) { | 102 if (! isset($this->entries[$index])) { |
103 throw new Exception\InvalidArgumentException('Undefined index: ' . $index . '. Entry does not exist.'); | 103 throw new Exception\InvalidArgumentException('Undefined index: ' . $index . '. Entry does not exist.'); |
104 } | 104 } |
105 unset($this->entries[$index]); | 105 unset($this->entries[$index]); |
106 | 106 |
107 return $this; | 107 return $this; |