Skip to content
Snippets Groups Projects
Commit aa11b831 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #14682 from owncloud/issue/14681-noop-scanner-outdated

Update scanFile() and scanChildren() to the new signature of the parent ...
parents ac104416 09ac2df1
Branches
No related tags found
No related merge requests found
...@@ -33,10 +33,11 @@ class NoopScanner extends Scanner { ...@@ -33,10 +33,11 @@ class NoopScanner extends Scanner {
* *
* @param string $file * @param string $file
* @param int $reuseExisting * @param int $reuseExisting
* @param bool $parentExistsInCache * @param int $parentId
* @return array with metadata of the scanned file * @param array|null $cacheData existing data in the cache for the file to be scanned
* @return array an array of metadata of the scanned file
*/ */
public function scanFile($file, $reuseExisting = 0, $parentExistsInCache = false) { public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null) {
return array(); return array();
} }
...@@ -58,11 +59,11 @@ class NoopScanner extends Scanner { ...@@ -58,11 +59,11 @@ class NoopScanner extends Scanner {
* @param string $path * @param string $path
* @param bool $recursive * @param bool $recursive
* @param int $reuse * @param int $reuse
* @param array $folderData existing cache data for the folder to be scanned
* @return int the size of the scanned folder or -1 if the size is unknown at this stage * @return int the size of the scanned folder or -1 if the size is unknown at this stage
*/ */
public function scanChildren($path, $recursive = Storage::SCAN_RECURSIVE, $reuse = -1) { protected function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderData = null) {
$size = 0; return 0;
return $size;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment