diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-28 09:10:59 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-04 10:47:02 +0200 |
commit | 92ae7c284b66840b4ede7ff7821b4224968924f4 (patch) | |
tree | 31006eae30db763ce9343ab34f565bf27041ee64 | |
parent | f3a6adff415f72bf5ed16e3dcbffd781a7d08dbc (diff) | |
download | nextcloud-server-92ae7c284b66840b4ede7ff7821b4224968924f4.tar.gz nextcloud-server-92ae7c284b66840b4ede7ff7821b4224968924f4.zip |
Fix scrutinizer complains and return type doc
-rw-r--r-- | lib/private/share/share.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index d7c7f39d57e..e52704be3d8 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -2289,15 +2289,17 @@ class Share extends \OC\Share\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://'; } |