@@ -63,7 +63,7 @@ public function __construct($html)
6363 * Finds an element by ID.
6464 *
6565 * @param string $elementId The element ID
66- * @return \DOMElement|bool
66+ * @return \DOMElement|false
6767 */
6868 public function find ($ elementId )
6969 {
@@ -85,7 +85,7 @@ public function findTags($tagName)
8585 * Finds the first element with given tag name.
8686 *
8787 * @param string $tagName The tag name
88- * @return \DOMNode|bool
88+ * @return \DOMElement|false
8989 */
9090 public function findFirstTag ($ tagName )
9191 {
@@ -108,8 +108,8 @@ public function getDOM()
108108 * Loads HTML from webpage.
109109 *
110110 * @param string $url The URL of the webpage
111- * @param \FlameCore\Webtools\HttpClient $http The HttpClient instance to use (optional)
112- * @return \FlameCore\Webtools\HtmlExplorer
111+ * @param \FlameCore\Webtools\HttpClient $http The HttpClient instance to use
112+ * @return self
113113 * @throws \RuntimeException if the URL could not be loaded.
114114 */
115115 public static function fromWeb ($ url , HttpClient $ http = null )
@@ -129,7 +129,7 @@ public static function fromWeb($url, HttpClient $http = null)
129129 * Loads HTML from file.
130130 *
131131 * @param string $filename The name of the file
132- * @return \FlameCore\Webtools\HtmlExplorer
132+ * @return self
133133 * @throws \LogicException if the file could not be opened.
134134 */
135135 public static function fromFile ($ filename )
0 commit comments