diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-26 11:55:23 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-26 11:55:23 +0200 |
commit | 501e29f71c5d863879eb67ed311549ee46e5a04b (patch) | |
tree | 011926600e8ed1bf7100a1218c942d030a966cf7 /utility | |
parent | 0f56b6d62cd4af2af5276f7c073737b2d07b0ffd (diff) |
style fixes
Diffstat (limited to 'utility')
-rw-r--r-- | utility/faviconfetcher.php | 9 | ||||
-rw-r--r-- | utility/simplepieapifactory.php | 2 |
2 files changed, 7 insertions, 4 deletions
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, |