mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix return types in phpdoc
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a90581b405
commit
ae525e1935
5 changed files with 5 additions and 5 deletions
|
|
@ -901,7 +901,7 @@ class Cache implements ICache {
|
|||
*
|
||||
* @param string $path
|
||||
* @param array|null|ICacheEntry $entry (optional) meta data of the folder
|
||||
* @return int
|
||||
* @return int|float
|
||||
*/
|
||||
public function calculateFolderSize($path, $entry = null) {
|
||||
return $this->calculateFolderSizeInner($path, $entry);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class HomeCache extends Cache {
|
|||
*
|
||||
* @param string $path
|
||||
* @param array|null|ICacheEntry $entry (optional) meta data of the folder
|
||||
* @return int
|
||||
* @return int|float
|
||||
*/
|
||||
public function calculateFolderSize($path, $entry = null) {
|
||||
if ($path !== '/' and $path !== '' and $path !== 'files' and $path !== 'files_trashbin' and $path !== 'files_versions') {
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ class Scanner extends BasicEmitter implements IScanner {
|
|||
* @param int $folderId id for the folder to be scanned
|
||||
* @param bool $lock set to false to disable getting an additional read lock during scanning
|
||||
* @param array $data the data of the folder before (re)scanning the children
|
||||
* @return int the size of the scanned folder or -1 if the size is unknown at this stage
|
||||
* @return int|float the size of the scanned folder or -1 if the size is unknown at this stage
|
||||
*/
|
||||
protected function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderId = null, $lock = true, array $data = []) {
|
||||
if ($reuse === -1) {
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ class CacheJail extends CacheWrapper {
|
|||
*
|
||||
* @param string $path
|
||||
* @param array|null|ICacheEntry $entry (optional) meta data of the folder
|
||||
* @return int
|
||||
* @return int|float
|
||||
*/
|
||||
public function calculateFolderSize($path, $entry = null) {
|
||||
if ($this->getCache() instanceof Cache) {
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ class CacheWrapper extends Cache {
|
|||
*
|
||||
* @param string $path
|
||||
* @param array|null|ICacheEntry $entry (optional) meta data of the folder
|
||||
* @return int
|
||||
* @return int|float
|
||||
*/
|
||||
public function calculateFolderSize($path, $entry = null) {
|
||||
if ($this->getCache() instanceof Cache) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue