Skip to content
Snippets Groups Projects
Commit 999e74e8 authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix PHPdoc in apps/files_sharing

using scrutinizer patch
parent d826f33f
Branches
No related tags found
Loading
...@@ -422,6 +422,9 @@ class Shared_Cache extends Cache { ...@@ -422,6 +422,9 @@ class Shared_Cache extends Cache {
} }
} }
/**
* @param integer $id
*/
private function getShareById($id) { private function getShareById($id) {
$item = \OCP\Share::getItemSharedWithBySource('file', $id); $item = \OCP\Share::getItemSharedWithBySource('file', $id);
if ($item) { if ($item) {
...@@ -434,6 +437,9 @@ class Shared_Cache extends Cache { ...@@ -434,6 +437,9 @@ class Shared_Cache extends Cache {
return null; return null;
} }
/**
* @param integer $id
*/
private function getParentInfo($id) { private function getParentInfo($id) {
$sql = 'SELECT `parent`, `name` FROM `*PREFIX*filecache` WHERE `fileid` = ?'; $sql = 'SELECT `parent`, `name` FROM `*PREFIX*filecache` WHERE `fileid` = ?';
$query = \OC_DB::prepare($sql); $query = \OC_DB::prepare($sql);
......
...@@ -80,7 +80,7 @@ class Helper { ...@@ -80,7 +80,7 @@ class Helper {
* @param array $linkItem link item array * @param array $linkItem link item array
* @param string $password optional password * @param string $password optional password
* *
* @return true if authorized, false otherwise * @return boolean true if authorized, false otherwise
*/ */
public static function authenticate($linkItem, $password) { public static function authenticate($linkItem, $password) {
if ($password !== null) { if ($password !== null) {
......
...@@ -146,6 +146,9 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent { ...@@ -146,6 +146,9 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent {
return array(); return array();
} }
/**
* @param string $target
*/
public static function getSource($target) { public static function getSource($target) {
if ($target == '') { if ($target == '') {
return false; return false;
......
...@@ -907,6 +907,11 @@ class Test_Files_Sharing_Api extends Test_Files_Sharing_Base { ...@@ -907,6 +907,11 @@ class Test_Files_Sharing_Api extends Test_Files_Sharing_Base {
* @brief dumnmy class to test protected methods * @brief dumnmy class to test protected methods
*/ */
class TestShareApi extends \OCA\Files\Share\Api { class TestShareApi extends \OCA\Files\Share\Api {
/**
* @param string $path
* @param string $folder
*/
public function correctPathTest($path, $folder) { public function correctPathTest($path, $folder) {
return self::correctPath($path, $folder); return self::correctPath($path, $folder);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment