Skip to content

Commit 454fbff

Browse files
committed
merged branch jakzal/domcrawler-missing-docblocks (PR #9025)
This PR was merged into the 2.2 branch. Discussion ---------- [DomCrawler] Added missing docblocks and removed redundant type in a return annotation | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- d414213 [DomCrawler] Added missing docblocks and removed unneeded return annotation.
2 parents e6c1eef + d414213 commit 454fbff

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ public function add($node)
8484
*
8585
* @param string $content A string to parse as HTML/XML
8686
* @param null|string $type The content type of the string
87-
*
88-
* @return null|void
8987
*/
9088
public function addContent($content, $type = null)
9189
{
@@ -710,6 +708,11 @@ public static function xpathLiteral($s)
710708
return sprintf("concat(%s)", implode($parts, ', '));
711709
}
712710

711+
/**
712+
* @param integer $position
713+
*
714+
* @return \DOMElement|null
715+
*/
713716
private function getNode($position)
714717
{
715718
foreach ($this as $i => $node) {
@@ -723,6 +726,12 @@ private function getNode($position)
723726
// @codeCoverageIgnoreEnd
724727
}
725728

729+
/**
730+
* @param \DOMElement $node
731+
* @param string $siblingDir
732+
*
733+
* @return array
734+
*/
726735
private function sibling($node, $siblingDir = 'nextSibling')
727736
{
728737
$nodes = array();

0 commit comments

Comments
 (0)