[DomCrawler] Added missing docblocks and removed unneeded return annotation.

This commit is contained in:
Jakub Zalas 2013-09-13 12:38:25 +01:00
parent 7d7b583851
commit d414213740
1 changed files with 11 additions and 2 deletions

View File

@ -84,8 +84,6 @@ class Crawler extends \SplObjectStorage
*
* @param string $content A string to parse as HTML/XML
* @param null|string $type The content type of the string
*
* @return null|void
*/
public function addContent($content, $type = null)
{
@ -710,6 +708,11 @@ class Crawler extends \SplObjectStorage
return sprintf("concat(%s)", implode($parts, ', '));
}
/**
* @param integer $position
*
* @return \DOMElement|null
*/
private function getNode($position)
{
foreach ($this as $i => $node) {
@ -723,6 +726,12 @@ class Crawler extends \SplObjectStorage
// @codeCoverageIgnoreEnd
}
/**
* @param \DOMElement $node
* @param string $siblingDir
*
* @return array
*/
private function sibling($node, $siblingDir = 'nextSibling')
{
$nodes = array();