fixed CS
This commit is contained in:
parent
616e0ac2f9
commit
e0d2065344
@ -74,13 +74,8 @@ class Crawler extends \SplObjectStorage
|
|||||||
$this->addNodes($node);
|
$this->addNodes($node);
|
||||||
} elseif (is_string($node)) {
|
} elseif (is_string($node)) {
|
||||||
$this->addContent($node);
|
$this->addContent($node);
|
||||||
} elseif ($node !== null) {
|
} elseif (null !== $node) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(sprintf('Expecting a DOMNodeList or DOMNode instance, an array, a string, or null, but got "%s".', is_object($node) ? get_class($node) : gettype($node)));
|
||||||
sprintf(
|
|
||||||
'Expecting node to be DOMNodeList|DOMNode|array|string|null, but got %s',
|
|
||||||
(is_object($node)) ? get_class($node) : gettype($node)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user