Mercurial > hg > cmmr2012-drupal-site
diff vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.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/Reader/Extension/Atom/Feed.php Thu Jul 05 15:32:06 2018 +0100 +++ b/vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php Tue Jul 10 13:19:18 2018 +0000 @@ -53,7 +53,7 @@ if ($list->length) { foreach ($list as $author) { $author = $this->getAuthorFromElement($author); - if (!empty($author)) { + if (! empty($author)) { $authors[] = $author; } } @@ -91,7 +91,7 @@ $copyright = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:rights)'); } - if (!$copyright) { + if (! $copyright) { $copyright = null; } @@ -175,7 +175,7 @@ $description = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:subtitle)'); } - if (!$description) { + if (! $description) { $description = null; } @@ -197,7 +197,7 @@ // TODO: Add uri support $generator = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:generator)'); - if (!$generator) { + if (! $generator) { $generator = null; } @@ -219,7 +219,7 @@ $id = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:id)'); - if (!$id) { + if (! $id) { if ($this->getLink()) { $id = $this->getLink(); } elseif ($this->getTitle()) { @@ -247,11 +247,11 @@ $language = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:lang)'); - if (!$language) { + if (! $language) { $language = $this->xpath->evaluate('string(//@xml:lang[1])'); } - if (!$language) { + if (! $language) { $language = null; } @@ -273,7 +273,7 @@ $imageUrl = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:logo)'); - if (!$imageUrl) { + if (! $imageUrl) { $image = null; } else { $image = ['uri' => $imageUrl]; @@ -297,7 +297,7 @@ $baseUrl = $this->xpath->evaluate('string(//@xml:base[1])'); - if (!$baseUrl) { + if (! $baseUrl) { $baseUrl = null; } $this->data['baseUrl'] = $baseUrl; @@ -394,7 +394,7 @@ $title = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/atom:title)'); - if (!$title) { + if (! $title) { $title = null; } @@ -482,10 +482,10 @@ */ protected function absolutiseUri($link) { - if (!Uri::factory($link)->isAbsolute()) { + if (! Uri::factory($link)->isAbsolute()) { if ($this->getBaseUrl() !== null) { $link = $this->getBaseUrl() . $link; - if (!Uri::factory($link)->isValid()) { + if (! Uri::factory($link)->isValid()) { $link = null; } } @@ -523,12 +523,12 @@ $prefixAtom03 = $dom->lookupPrefix(Reader\Reader::NAMESPACE_ATOM_03); $prefixAtom10 = $dom->lookupPrefix(Reader\Reader::NAMESPACE_ATOM_10); if ($dom->isDefaultNamespace(Reader\Reader::NAMESPACE_ATOM_10) - || !empty($prefixAtom10) + || ! empty($prefixAtom10) ) { return Reader\Reader::TYPE_ATOM_10; } if ($dom->isDefaultNamespace(Reader\Reader::NAMESPACE_ATOM_03) - || !empty($prefixAtom03) + || ! empty($prefixAtom03) ) { return Reader\Reader::TYPE_ATOM_03; }