Fix PHPdoc in apps/files_sharing

using scrutinizer patch
This commit is contained in:
Bart Visscher 2014-04-14 17:49:27 +02:00
parent d826f33fae
commit 999e74e834
4 changed files with 15 additions and 1 deletions

View file

@ -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);

View file

@ -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) {

View file

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

View file

@ -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);
}