Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php43
1 files changed, 22 insertions, 21 deletions
diff --git a/core/Http.php b/core/Http.php
index a942d09717..b7f61a2251 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -47,14 +47,14 @@ class Piwik_Http
* If no $destinationPath is specified, the trimmed response (without header) is returned as a string.
* If a $destinationPath is specified, the response (without header) is saved to a file.
*
- * @param string $aUrl
- * @param int $timeout
- * @param string $userAgent
- * @param string $destinationPath
- * @param int $followDepth
- * @param bool $acceptLanguage
+ * @param string $aUrl
+ * @param int $timeout
+ * @param string $userAgent
+ * @param string $destinationPath
+ * @param int $followDepth
+ * @param bool $acceptLanguage
* @throws Exception
- * @return bool true (or string) on success; false on HTTP response error code (1xx or 4xx)
+ * @return bool true (or string) on success; false on HTTP response error code (1xx or 4xx)
*/
static public function sendHttpRequest($aUrl, $timeout, $userAgent = null, $destinationPath = null, $followDepth = 0, $acceptLanguage = false)
{
@@ -77,17 +77,17 @@ class Piwik_Http
/**
* Sends http request using the specified transport method
*
- * @param string $method
- * @param string $aUrl
- * @param int $timeout
- * @param string $userAgent
- * @param string $destinationPath
- * @param resource $file
- * @param int $followDepth
- * @param bool|string $acceptLanguage Accept-language header
- * @param bool $acceptInvalidSslCertificate Only used with $method == 'curl'. If set to true (NOT recommended!) the SSL certificate will not be checked
+ * @param string $method
+ * @param string $aUrl
+ * @param int $timeout
+ * @param string $userAgent
+ * @param string $destinationPath
+ * @param resource $file
+ * @param int $followDepth
+ * @param bool|string $acceptLanguage Accept-language header
+ * @param bool $acceptInvalidSslCertificate Only used with $method == 'curl'. If set to true (NOT recommended!) the SSL certificate will not be checked
* @throws Exception
- * @return bool true (or string) on success; false on HTTP response error code (1xx or 4xx)
+ * @return bool true (or string) on success; false on HTTP response error code (1xx or 4xx)
*/
static public function sendHttpRequestBy($method = 'socket', $aUrl, $timeout, $userAgent = null, $destinationPath = null, $file = null, $followDepth = 0, $acceptLanguage = false, $acceptInvalidSslCertificate = false)
{
@@ -475,10 +475,11 @@ class Piwik_Http
/**
* Fetch the file at $url in the destination $destinationPath
*
- * @param string $url
- * @param string $destinationPath
- * @param int $tries
- * @return true on success, throws Exception on failure
+ * @param string $url
+ * @param string $destinationPath
+ * @param int $tries
+ * @throws Exception
+ * @return bool true on success, throws Exception on failure
*/
static public function fetchRemoteFile($url, $destinationPath = null, $tries = 0)
{