Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feed/doc-fix' of https://github.com/bakura10/zf2 into h…
Browse files Browse the repository at this point in the history
…otfix/feed-docblocks

Conflicts:
	library/Zend/Form/Element/Collection.php
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/Reader/Reader.php
Expand Up @@ -446,7 +446,6 @@ public static function detectType($feed, $specOnly = false)
}
}

$type = self::TYPE_ATOM_ANY;
$xpath->registerNamespace('atom', self::NAMESPACE_ATOM_10);

if ($xpath->query('//atom:feed')->length) {
Expand Down
3 changes: 2 additions & 1 deletion src/Writer/Deleted.php
Expand Up @@ -38,8 +38,9 @@ class Deleted
/**
* Set the feed character encoding
*
* @return string|null
* @param $encoding
* @throws Exception\InvalidArgumentException
* @return string|null
*/
public function setEncoding($encoding)
{
Expand Down
22 changes: 12 additions & 10 deletions src/Writer/Feed.php
Expand Up @@ -41,7 +41,7 @@ class Feed extends AbstractFeed implements Iterator, Countable
* added to the current feed automatically, but is necessary to create a
* container with some initial values preset based on the current feed data.
*
* @return Zend_Feed_Writer_Entry
* @return \Zend\Feed\Writer\Entry
*/
public function createEntry()
{
Expand All @@ -54,10 +54,11 @@ public function createEntry()
}

/**
* Appends a Zend_Feed_Writer_Deleted object representing a new entry tombstone
* Appends a Zend\Feed\Writer\Deleted object representing a new entry tombstone
* to the feed data container's internal group of entries.
*
* @param Zend_Feed_Writer_Deleted $entry
* @param Deleted $deleted
* @return void
*/
public function addTombstone(Deleted $deleted)
{
Expand All @@ -69,7 +70,7 @@ public function addTombstone(Deleted $deleted)
* added to the current feed automatically, but is necessary to create a
* container with some initial values preset based on the current feed data.
*
* @return Zend_Feed_Writer_Deleted
* @return Deleted
*/
public function createTombstone()
{
Expand All @@ -82,10 +83,10 @@ public function createTombstone()
}

/**
* Appends a Zend_Feed_Writer_Entry object representing a new entry/item
* Appends a Zend\Feed\Writer\Entry object representing a new entry/item
* the feed data container's internal group of entries.
*
* @param Zend_Feed_Writer_Entry $entry
* @param Entry $entry
*/
public function addEntry(Entry $entry)
{
Expand Down Expand Up @@ -164,7 +165,7 @@ public function count()
/**
* Return the current entry
*
* @return Zend_Feed_Reader_Entry_Interface
* @return Entry
*/
public function current()
{
Expand All @@ -174,7 +175,7 @@ public function current()
/**
* Return the current feed key
*
* @return unknown
* @return mixed
*/
public function key()
{
Expand Down Expand Up @@ -214,9 +215,10 @@ public function valid()
/**
* Attempt to build and return the feed resulting from the data set
*
* @param $type The feed type "rss" or "atom" to export as
* @return string
* @param string $type The feed type "rss" or "atom" to export as
* @param bool $ignoreExceptions
* @throws Exception\InvalidArgumentException
* @return string
*/
public function export($type, $ignoreExceptions = false)
{
Expand Down

0 comments on commit b82fa59

Please sign in to comment.