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

Commit

Permalink
Merge pull request zendframework/zendframework#2144 from PHPGangsta/f…
Browse files Browse the repository at this point in the history
…ixes/phpdocClassesAndNamespaces

fixed a lot of phpDoc comments
  • Loading branch information
Show file tree
Hide file tree
Showing 29 changed files with 9 additions and 34 deletions.
9 changes: 4 additions & 5 deletions src/Reader/AbstractEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractEntry
/**
* Entry instance
*
* @var Zend\Feed\Entry
* @var DOMElement
*/
protected $entry = null;

Expand Down Expand Up @@ -67,8 +67,7 @@ abstract class AbstractEntry
*
* @param DOMElement $entry
* @param int $entryKey
* @param string $type
* @return void
* @param null|string $type
*/
public function __construct(DOMElement $entry, $entryKey, $type = null)
{
Expand All @@ -78,7 +77,7 @@ public function __construct(DOMElement $entry, $entryKey, $type = null)
if ($type !== null) {
$this->data['type'] = $type;
} else {
$this->data['type'] = Reader::detectType($feed);
$this->data['type'] = Reader::detectType($entry);
}
$this->_loadExtensions();
}
Expand Down Expand Up @@ -157,7 +156,7 @@ public function getXpath()
* Set the XPath query
*
* @param DOMXPath $xpath
* @return Zend\Feed\Reader\AbstractEntry
* @return \Zend\Feed\Reader\AbstractEntry
*/
public function setXpath(DOMXPath $xpath)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/AbstractFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function count()
/**
* Return the current entry
*
* @return \Zend\Feed\Reader\Entry
* @return \Zend\Feed\Reader\AbstractEntry
*/
public function current()
{
Expand Down
1 change: 0 additions & 1 deletion src/Reader/Entry/AbstractEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ abstract class AbstractEntry
* @param DOMElement $entry
* @param int $entryKey
* @param string $type
* @return void
*/
public function __construct(DOMElement $entry, $entryKey, $type = null)
{
Expand Down
1 change: 0 additions & 1 deletion src/Reader/Entry/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class Atom extends AbstractEntry implements EntryInterface
* @param DOMElement $entry
* @param int $entryKey
* @param string $type
* @return void
*/
public function __construct(DOMElement $entry, $entryKey, $type = null)
{
Expand Down
1 change: 0 additions & 1 deletion src/Reader/Entry/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class Rss extends AbstractEntry implements EntryInterface
* @param DOMElement $entry
* @param string $entryKey
* @param string $type
* @return void
*/
public function __construct(DOMElement $entry, $entryKey, $type = null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Reader/Extension/AbstractEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function getType()
* Set the XPath query
*
* @param DOMXPath $xpath
* @return Reader\Reader_Extension_EntryAbstract
* @return AbstractEntry
*/
public function setXpath(DOMXPath $xpath)
{
Expand Down Expand Up @@ -221,7 +221,7 @@ public function getXpathPrefix()
* Set the XPath prefix
*
* @param string $prefix
* @return Reader\Reader_Extension_EntryAbstract
* @return AbstractEntry
*/
public function setXpathPrefix($prefix)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Extension/AbstractFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function toArray() // untested
* Set the XPath query
*
* @param DOMXPath $xpath
* @return Reader\Reader_Extension_EntryAbstract
* @return AbstractEntry
*/
public function setXpath(DOMXPath $xpath = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reader/Extension/Atom/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public function getCategories()
/**
* Get source feed metadata from the entry
*
* @return Reader\Reader_Feed_Atom_Source|null
* @return Reader\Feed\Atom\Source|null
*/
public function getSource()
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/AbstractFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class AbstractFeed
* Constructor: Primarily triggers the registration of core extensions and
* loads those appropriate to this data container.
*
* @return void
*/
public function __construct()
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class Entry
* Constructor: Primarily triggers the registration of core extensions and
* loads those appropriate to this data container.
*
* @return void
*/
public function __construct()
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/AbstractRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class AbstractRenderer
* Constructor
*
* @param mixed $container
* @return void
*/
public function __construct($container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Entry/Atom/Deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class Deleted
* Constructor
*
* @param \Zend\Feed\Writer\Deleted $container
* @return void
*/
public function __construct (\Zend\Feed\Writer\Deleted $container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Entry/AtomDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class AtomDeleted extends Renderer\AbstractRenderer implements Renderer\Renderer
* Constructor
*
* @param Writer\Deleted $container
* @return void
*/
public function __construct (Writer\Deleted $container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Entry/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Rss extends Renderer\AbstractRenderer implements Renderer\RendererInterfac
* Constructor
*
* @param Writer\Entry $container
* @return void
*/
public function __construct (Writer\Entry $container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Feed/AbstractAtom.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class AbstractAtom extends Renderer\AbstractRenderer
* Constructor
*
* @param Zend_Feed_Writer_Feed $container
* @return void
*/
public function __construct ($container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Feed/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Atom extends AbstractAtom implements Renderer\RendererInterface
* Constructor
*
* @param Writer\Feed $container
* @return void
*/
public function __construct (Writer\Feed $container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Feed/Atom/AbstractAtom.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class AbstractAtom extends Feed\Writer\Renderer\AbstractRenderer
* Constructor
*
* @param \Zend\Feed\Writer\Feed $container
* @return void
*/
public function __construct ($container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Feed/Atom/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Source extends AbstractAtom implements \Zend\Feed\Writer\Renderer\Renderer
* Constructor
*
* @param \Zend\Feed\Writer\Source $container
* @return void
*/
public function __construct (\Zend\Feed\Writer\Source $container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Feed/AtomSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class AtomSource extends AbstractAtom implements Renderer\RendererInterface
* Constructor
*
* @param Zend_Feed_Writer_Feed_Source $container
* @return void
*/
public function __construct (Writer\Source $container)
{
Expand Down
1 change: 0 additions & 1 deletion src/Writer/Renderer/Feed/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Rss extends Renderer\AbstractRenderer implements Renderer\RendererInterfac
* Constructor
*
* @param Zend_Feed_Writer_Feed $container
* @return void
*/
public function __construct (Writer\Feed $container)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Entry/_files/Common/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Entry/_files/Common/atom_noencodingdefined.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Entry/_files/Common/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Feed/_files/Common/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Feed/_files/Common/atom_noencodingdefined.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Feed/_files/Common/atom_rewrittenbydom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Feed/_files/Common/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Integration/_files/wordpress-atom10.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down
1 change: 0 additions & 1 deletion test/Reader/Integration/_files/wordpress-rss2-dc-atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ class Wp_Amf_Gateway
*
* @param array $dbConfig
* @param string $prefix
* @return void
*/
public function __construct(array $dbConfig, $prefix)
{
Expand Down

0 comments on commit eadb29a

Please sign in to comment.