]> git.mxchange.org Git - friendica.git/commitdiff
remove unused $redirect parameter
authorPhilipp <admin@philipp.info>
Fri, 20 Aug 2021 20:30:54 +0000 (22:30 +0200)
committerPhilipp <admin@philipp.info>
Fri, 20 Aug 2021 20:30:54 +0000 (22:30 +0200)
src/Network/HTTPRequest.php

index 18c060fc545a1b46eb3efc7a41c7c2257828a26f..320ff04c1825eb9663781e7f65f19432450f0280 100644 (file)
@@ -472,12 +472,8 @@ class HTTPRequest implements IHTTPRequest
 
        /**
         * {@inheritDoc}
-        *
-        * @param int $redirects The recursion counter for internal use - default 0
-        *
-        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public function fetch(string $url, int $timeout = 0, string $accept_content = '', string $cookiejar = '', &$redirects = 0)
+       public function fetch(string $url, int $timeout = 0, string $accept_content = '', string $cookiejar = '')
        {
                $ret = $this->fetchFull($url, $timeout, $accept_content, $cookiejar, $redirects);
 
@@ -486,12 +482,8 @@ class HTTPRequest implements IHTTPRequest
 
        /**
         * {@inheritDoc}
-        *
-        * @param int $redirects The recursion counter for internal use - default 0
-        *
-        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public function fetchFull(string $url, int $timeout = 0, string $accept_content = '', string $cookiejar = '', &$redirects = 0)
+       public function fetchFull(string $url, int $timeout = 0, string $accept_content = '', string $cookiejar = '')
        {
                return $this->get(
                        $url,