diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index f39c5d333d..c5fc198a34 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -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();