@@ -108,8 +108,8 @@ public function __get($name)
108108 * Attempts to load the dom from any resource, string, file, or URL.
109109 *
110110 * @param string $str
111- * @param array $option
112- * @chainable
111+ * @param array $options
112+ * @return $this
113113 */
114114 public function load ($ str , $ options = [])
115115 {
@@ -131,8 +131,8 @@ public function load($str, $options = [])
131131 * Loads the dom from a document file/url
132132 *
133133 * @param string $file
134- * @param array $option
135- * @chainable
134+ * @param array $options
135+ * @return $this
136136 */
137137 public function loadFromFile ($ file , $ options = [])
138138 {
@@ -144,9 +144,9 @@ public function loadFromFile($file, $options = [])
144144 * the content from a url.
145145 *
146146 * @param string $url
147- * @param array $option
147+ * @param array $options
148148 * @param CurlInterface $curl
149- * @chainable
149+ * @return $this
150150 */
151151 public function loadFromUrl ($ url , $ options = [], CurlInterface $ curl = null )
152152 {
@@ -166,7 +166,7 @@ public function loadFromUrl($url, $options = [], CurlInterface $curl = null)
166166 *
167167 * @param string $str
168168 * @param array $option
169- * @chainable
169+ * @return $this
170170 */
171171 public function loadStr ($ str , $ option )
172172 {
@@ -192,7 +192,7 @@ public function loadStr($str, $option)
192192 * Sets a global options array to be used by all load calls.
193193 *
194194 * @param array $options
195- * @chainable
195+ * @return $this
196196 */
197197 public function setOptions (array $ options )
198198 {
@@ -218,7 +218,7 @@ public function find($selector, $nth = null)
218218 * be self closing.
219219 *
220220 * @param string|array $tag
221- * @chainable
221+ * @return $this
222222 */
223223 public function addSelfClosingTag ($ tag )
224224 {
@@ -238,7 +238,7 @@ public function addSelfClosingTag($tag)
238238 * always be self closing.
239239 *
240240 * @param string|array $tag
241- * @chainable
241+ * @return $this
242242 */
243243 public function removeSelfClosingTag ($ tag )
244244 {
@@ -253,7 +253,7 @@ public function removeSelfClosingTag($tag)
253253 /**
254254 * Sets the list of self closing tags to empty.
255255 *
256- * @chainable
256+ * @return $this
257257 */
258258 public function clearSelfClosingTags ()
259259 {
@@ -264,7 +264,7 @@ public function clearSelfClosingTags()
264264 /**
265265 * Simple wrapper function that returns the first child.
266266 *
267- * @return Node
267+ * @return \PHPHtmlParser\Dom\AbstractNode
268268 */
269269 public function firstChild ()
270270 {
@@ -275,7 +275,7 @@ public function firstChild()
275275 /**
276276 * Simple wrapper function that returns the last child.
277277 *
278- * @return AbstractNode
278+ * @return \PHPHtmlParser\Dom\ AbstractNode
279279 */
280280 public function lastChild ()
281281 {
@@ -287,7 +287,8 @@ public function lastChild()
287287 * Simple wrapper function that returns an element by the
288288 * id.
289289 *
290- * @return AbstractNode
290+ * @param string $id
291+ * @return \PHPHtmlParser\Dom\AbstractNode
291292 */
292293 public function getElementById ($ id )
293294 {
@@ -298,7 +299,8 @@ public function getElementById($id)
298299 /**
299300 * Simple wrapper function that returns all elements by
300301 * tag name.
301- *
302+ *
303+ * @param string $name
302304 * @return array
303305 */
304306 public function getElementsByTag ($ name )
@@ -311,6 +313,7 @@ public function getElementsByTag($name)
311313 * Simple wrapper function that returns all elements by
312314 * class name.
313315 *
316+ * @param string $class
314317 * @return array
315318 */
316319 public function getElementsByClass ($ class )
@@ -442,7 +445,8 @@ protected function parse()
442445 * Attempt to parse a tag out of the content.
443446 *
444447 * @return array
445- */
448+ * @throws StrictException
449+ */
446450 protected function parseTag ()
447451 {
448452 $ return = [
0 commit comments