[Pkg-owncloud-commits] [owncloud] 138/215: Fix scrutinizer complains and return type doc
David Prévot
taffit at moszumanska.debian.org
Tue May 5 01:01:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 2eecfcbb8040aa7ca36df6ecd3f3de6b6c328cd8
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Tue Apr 28 09:10:59 2015 +0200
Fix scrutinizer complains and return type doc
---
lib/private/share/share.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index d2bdca2..1ece47d 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://';
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list