[DomCrawler] Added missing docblocks and removed unneeded return annotation.
This commit is contained in:
parent
7d7b583851
commit
d414213740
@ -84,8 +84,6 @@ class Crawler extends \SplObjectStorage
|
|||||||
*
|
*
|
||||||
* @param string $content A string to parse as HTML/XML
|
* @param string $content A string to parse as HTML/XML
|
||||||
* @param null|string $type The content type of the string
|
* @param null|string $type The content type of the string
|
||||||
*
|
|
||||||
* @return null|void
|
|
||||||
*/
|
*/
|
||||||
public function addContent($content, $type = null)
|
public function addContent($content, $type = null)
|
||||||
{
|
{
|
||||||
@ -710,6 +708,11 @@ class Crawler extends \SplObjectStorage
|
|||||||
return sprintf("concat(%s)", implode($parts, ', '));
|
return sprintf("concat(%s)", implode($parts, ', '));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param integer $position
|
||||||
|
*
|
||||||
|
* @return \DOMElement|null
|
||||||
|
*/
|
||||||
private function getNode($position)
|
private function getNode($position)
|
||||||
{
|
{
|
||||||
foreach ($this as $i => $node) {
|
foreach ($this as $i => $node) {
|
||||||
@ -723,6 +726,12 @@ class Crawler extends \SplObjectStorage
|
|||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \DOMElement $node
|
||||||
|
* @param string $siblingDir
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
private function sibling($node, $siblingDir = 'nextSibling')
|
private function sibling($node, $siblingDir = 'nextSibling')
|
||||||
{
|
{
|
||||||
$nodes = array();
|
$nodes = array();
|
||||||
|
Reference in New Issue
Block a user