[Pkg-owncloud-commits] [owncloud] 56/103: Fix scrutinizer complains and return type doc

David Prévot taffit at moszumanska.debian.org
Sun May 31 12:32:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.

commit 92ae7c284b66840b4ede7ff7821b4224968924f4
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 d7c7f39..e52704b 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://';
 		}

-- 
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