mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix inherited parameter names
Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
parent
7ef9ef3cb4
commit
dcf6ebebab
4 changed files with 14 additions and 14 deletions
|
|
@ -224,17 +224,17 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
/**
|
||||
* Get the permissions granted for a shared file
|
||||
*
|
||||
* @param string $target Shared target file path
|
||||
* @param string $path Shared target file path
|
||||
* @return int CRUDS permissions granted
|
||||
*/
|
||||
public function getPermissions($target = ''): int {
|
||||
public function getPermissions($path = ''): int {
|
||||
if (!$this->isValid()) {
|
||||
return 0;
|
||||
}
|
||||
$permissions = parent::getPermissions($target) & $this->superShare->getPermissions();
|
||||
$permissions = parent::getPermissions($path) & $this->superShare->getPermissions();
|
||||
|
||||
// part files and the mount point always have delete permissions
|
||||
if ($target === '' || pathinfo($target, PATHINFO_EXTENSION) === 'part') {
|
||||
if ($path === '' || pathinfo($path, PATHINFO_EXTENSION) === 'part') {
|
||||
$permissions |= \OCP\Constants::PERMISSION_DELETE;
|
||||
}
|
||||
|
||||
|
|
@ -517,9 +517,9 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
}
|
||||
|
||||
/**
|
||||
* @param bool $available
|
||||
* @param bool $isAvailable
|
||||
*/
|
||||
public function setAvailability($available) {
|
||||
public function setAvailability($isAvailable) {
|
||||
// shares do not participate in availability logic
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,12 +78,12 @@ class HomeCache extends Cache {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
* @param string $file
|
||||
* @return ICacheEntry
|
||||
*/
|
||||
public function get($path) {
|
||||
$data = parent::get($path);
|
||||
if ($path === '' or $path === '/') {
|
||||
public function get($file) {
|
||||
$data = parent::get($file);
|
||||
if ($file === '' or $file === '/') {
|
||||
// only the size of the "files" dir counts
|
||||
$filesData = parent::get('files');
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class NonExistingFile extends File {
|
|||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
public function copy($newPath) {
|
||||
public function copy($targetPath) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class NonExistingFolder extends Folder {
|
|||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
public function copy($newPath) {
|
||||
public function copy($targetPath) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
|
|
@ -142,11 +142,11 @@ class NonExistingFolder extends Folder {
|
|||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
public function search($pattern) {
|
||||
public function search($query) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
public function searchByMime($mime) {
|
||||
public function searchByMime($mimetype) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue