summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-28 09:10:59 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-28 11:28:55 +0200
commit2eecfcbb8040aa7ca36df6ecd3f3de6b6c328cd8 (patch)
tree904a6904dc5ea97ad5785ee543fbf7ed67f28bac /lib/private/share
parent02c60949ddbf54d8c1791c0f7686b13cbe3b7002 (diff)
downloadnextcloud-server-2eecfcbb8040aa7ca36df6ecd3f3de6b6c328cd8.tar.gz
nextcloud-server-2eecfcbb8040aa7ca36df6ecd3f3de6b6c328cd8.zip
Fix scrutinizer complains and return type doc
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index d2bdca22f34..1ece47df7ec 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -2395,15 +2395,17 @@ class Share extends Constants {
*
* @param string $url
* @param array $fields post parameters
- * @return bool
+ * @return array
*/
private static function tryHttpPost($url, $fields) {
$protocol = 'https://';
- $success = false;
+ $result = [
+ 'success' => false,
+ 'result' => '',
+ ];
$try = 0;
- while ($success === false && $try < 2) {
+ while ($result['success'] === false && $try < 2) {
$result = \OC::$server->getHTTPHelper()->post($protocol . $url, $fields);
- $success = $result['success'];
$try++;
$protocol = 'http://';
}