mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-03 22:36:27 +00:00
Make function public
This commit is contained in:
@@ -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
@@ -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.
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
Reference in New Issue
Block a user