[Pkg-owncloud-commits] [owncloud] 03/69: Fix PHPdoc in apps/files_sharing

David Prévot taffit at moszumanska.debian.org
Sat May 10 16:20:31 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 999e74e834f8ba13e1ec60caf4b253eb12ec8bf6
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Mon Apr 14 17:49:27 2014 +0200

    Fix PHPdoc in apps/files_sharing
    
    using scrutinizer patch
---
 apps/files_sharing/lib/cache.php      | 6 ++++++
 apps/files_sharing/lib/helper.php     | 2 +-
 apps/files_sharing/lib/share/file.php | 3 +++
 apps/files_sharing/tests/api.php      | 5 +++++
 4 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index eeb62c3..b9c5e8f 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -422,6 +422,9 @@ class Shared_Cache extends Cache {
 		}
 	}
 
+	/**
+	 * @param integer $id
+	 */
 	private function getShareById($id) {
 		$item = \OCP\Share::getItemSharedWithBySource('file', $id);
 		if ($item) {
@@ -434,6 +437,9 @@ class Shared_Cache extends Cache {
 		return null;
 	}
 
+	/**
+	 * @param integer $id
+	 */
 	private function getParentInfo($id) {
 		$sql = 'SELECT `parent`, `name` FROM `*PREFIX*filecache` WHERE `fileid` = ?';
 		$query = \OC_DB::prepare($sql);
diff --git a/apps/files_sharing/lib/helper.php b/apps/files_sharing/lib/helper.php
index b602fe3..cba0ef2 100644
--- a/apps/files_sharing/lib/helper.php
+++ b/apps/files_sharing/lib/helper.php
@@ -80,7 +80,7 @@ class Helper {
 	 * @param array $linkItem link item array
 	 * @param string $password optional password
 	 *
-	 * @return true if authorized, false otherwise
+	 * @return boolean true if authorized, false otherwise
 	 */
 	public static function authenticate($linkItem, $password) {
 		if ($password !== null) {
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php
index 5e00050..c375579 100644
--- a/apps/files_sharing/lib/share/file.php
+++ b/apps/files_sharing/lib/share/file.php
@@ -146,6 +146,9 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
 		return array();
 	}
 
+	/**
+	 * @param string $target
+	 */
 	public static function getSource($target) {
 		if ($target == '') {
 			return false;
diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php
index c7a8483..d9a21fa 100644
--- a/apps/files_sharing/tests/api.php
+++ b/apps/files_sharing/tests/api.php
@@ -907,6 +907,11 @@ class Test_Files_Sharing_Api extends Test_Files_Sharing_Base {
  * @brief dumnmy class to test protected methods
  */
 class TestShareApi extends \OCA\Files\Share\Api {
+
+	/**
+	 * @param string $path
+	 * @param string $folder
+	 */
 	public function correctPathTest($path, $folder) {
 		return self::correctPath($path, $folder);
 	}

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