Mercurial > hg > cmmr2012-drupal-site
diff vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AtomSource.php @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | c75dbcec494b |
children | a9cd425dd02b |
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AtomSource.php Thu Jul 05 15:32:06 2018 +0100 +++ b/vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AtomSource.php Tue Jul 10 13:19:18 2018 +0000 @@ -35,7 +35,7 @@ */ public function render() { - if (!$this->container->getEncoding()) { + if (! $this->container->getEncoding()) { $this->container->setEncoding('UTF-8'); } $this->dom = new DOMDocument('1.0', $this->container->getEncoding()); @@ -60,7 +60,7 @@ foreach ($this->extensions as $ext) { $ext->setType($this->getType()); $ext->setRootElement($this->getRootElement()); - $ext->setDOMDocument($this->getDOMDocument(), $root); + $ext->setDomDocument($this->getDomDocument(), $root); $ext->render(); } return $this; @@ -73,9 +73,11 @@ * @param DOMElement $root * @return void */ + // @codingStandardsIgnoreStart protected function _setGenerator(DOMDocument $dom, DOMElement $root) { - if (!$this->getDataContainer()->getGenerator()) { + // @codingStandardsIgnoreEnd + if (! $this->getDataContainer()->getGenerator()) { return; }