From 501e29f71c5d863879eb67ed311549ee46e5a04b Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 26 Jun 2014 11:55:23 +0200 Subject: style fixes --- utility/faviconfetcher.php | 9 ++++++--- utility/simplepieapifactory.php | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'utility') diff --git a/utility/faviconfetcher.php b/utility/faviconfetcher.php index 10088dad3..c38706af6 100644 --- a/utility/faviconfetcher.php +++ b/utility/faviconfetcher.php @@ -74,16 +74,19 @@ class FaviconFetcher { $file = $this->getFile($url); - if($file->body !== '') { + /** @noinspection PhpUndefinedFieldInspection */ + if($file->body !== '') { $document = new \DOMDocument(); - @$document->loadHTML($file->body); + /** @noinspection PhpUndefinedFieldInspection */ + @$document->loadHTML($file->body); if($document) { $xpath = new \DOMXpath($document); $elements = $xpath->query("//link[contains(@rel, 'icon')]"); if ($elements->length > 0) { - $iconPath = $elements->item(0)->getAttribute('href'); + /** @noinspection PhpUndefinedMethodInspection */ + $iconPath = $elements->item(0)->getAttribute('href'); $absPath = \SimplePie_Misc::absolutize_url($iconPath, $url); return $absPath; } diff --git a/utility/simplepieapifactory.php b/utility/simplepieapifactory.php index d1fd26111..869cfa762 100644 --- a/utility/simplepieapifactory.php +++ b/utility/simplepieapifactory.php @@ -31,7 +31,7 @@ class SimplePieAPIFactory { * @param null $proxyHost * @param null $proxyPort * @param null $proxyAuth - * @return SimplePie_File a new object + * @return \SimplePie_File a new object */ public function getFile($url, $timeout=10, $redirects=5, $headers=null, $useragent=null, $force_fsockopen=false, -- cgit v1.2.3