Make function public

This commit is contained in:
Zach Borboa
2023-05-23 20:35:36 -07:00
parent 2a409363f3
commit c37bb58a48
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -199,7 +199,6 @@ More examples are available under [/examples](https://github.com/php-curl-class/
Curl::__construct($base_url = null, $options = [])
Curl::__destruct()
Curl::__get($name)
Curl::_fastDownload($url, $filename, $connections = 4)
Curl::attemptRetry()
Curl::beforeSend($callback)
Curl::buildPostData($data)
@@ -213,6 +212,7 @@ Curl::download($url, $mixed_filename)
Curl::error($callback)
Curl::exec($ch = null)
Curl::execDone()
Curl::fastDownload($url, $filename, $connections = 4)
Curl::get($url, $data = [])
Curl::getAttempts()
Curl::getBeforeSendCallback()
+2 -2
View File
@@ -357,14 +357,14 @@ class Curl extends BaseCurl
/**
* Fast download
*
* @access private
* @access public
* @param $url
* @param $filename
* @param $connections
*
* @return boolean
*/
public function _fastDownload($url, $filename, $connections = 4)
public function fastDownload($url, $filename, $connections = 4)
{
// Retrieve content length from the "Content-Length" header and use an
// HTTP GET request because not all hosts support HEAD requests.
-3
View File
@@ -13,9 +13,6 @@
<!-- TODO: Remove the following exclusion when ArrayUtil functions not in camel caps format like ArrayUtil::is_array_assoc() are removed. -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<!-- TODO: Remove the following exclusion when Curl::_fastDownload() is renamed to Curl::fastDownload(). -->
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
</rule>
<!-- Disable "No PHP code was found in this file" for symlinks. -->