]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Proxy.php
typo
[friendica.git] / src / Util / Proxy.php
index be70077f15d98b7eb4d14d40a7c71db193a2f4d3..9309887409eb423e06675f5c8ca871411f23bd83 100644 (file)
@@ -2,11 +2,9 @@
 
 namespace Friendica\Util;
 
-use Friendica\BaseModule;
 use Friendica\BaseObject;
 use Friendica\Core\Config;
 use Friendica\Core\System;
-use Friendica\Util\Strings;
 
 /**
  * @brief Proxy utilities class
@@ -60,6 +58,7 @@ class Proxy
         * @param string $size      One of the ProxyUtils::SIZE_* constants
         *
         * @return string The proxyfied URL or relative path
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function proxifyUrl($url, $writemode = false, $size = '')
        {
@@ -138,6 +137,7 @@ class Proxy
         * @param string $html Un-proxified HTML code
         *
         * @return string Proxified HTML code
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function proxifyHtml($html)
        {
@@ -151,6 +151,7 @@ class Proxy
         *
         * @param string $url
         * @return boolean
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        private static function isLocalImage($url)
        {
@@ -190,6 +191,7 @@ class Proxy
         *
         * @param array $matches Matches from preg_replace_callback()
         * @return string Proxified HTML image tag
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        private static function replaceUrl(array $matches)
        {