@@ -339,7 +339,7 @@ |
||
| 339 | 339 | * Returns HTML contents of the page as a DOMDocument |
| 340 | 340 | * |
| 341 | 341 | * @param string $url URL of the resource |
| 342 | - * @return DOMDocument|false |
|
| 342 | + * @return DOMDocument |
|
| 343 | 343 | */ |
| 344 | 344 | public function getDOM($url = '') { |
| 345 | 345 | $html = $this->getHTML($url); |
@@ -297,7 +297,7 @@ |
||
| 297 | 297 | public function isImage($url = '') { |
| 298 | 298 | $mime = $this->getContentType($url); |
| 299 | 299 | if ($mime) { |
| 300 | - list($simple, ) = explode('/', $mime); |
|
| 300 | + list($simple,) = explode('/', $mime); |
|
| 301 | 301 | return ($simple == 'image'); |
| 302 | 302 | } |
| 303 | 303 | |