Code Duplication    Length = 4-4 lines in 2 locations

lib/private/files/cache/scanner.php 2 locations

@@ 263-266 (lines=4) @@
260
		if ($reuse === -1) {
261
			$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
262
		}
263
		if ($lock) {
264
			$this->lockingProvider->acquireLock('scanner::' . $this->storageId . '::' . $path, ILockingProvider::LOCK_EXCLUSIVE);
265
			$this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
266
		}
267
		$data = $this->scanFile($path, $reuse, -1, null, $lock);
268
		if ($data and $data['mimetype'] === 'httpd/unix-directory') {
269
			$size = $this->scanChildren($path, $recursive, $reuse, $data, $lock);
@@ 272-275 (lines=4) @@
269
			$size = $this->scanChildren($path, $recursive, $reuse, $data, $lock);
270
			$data['size'] = $size;
271
		}
272
		if ($lock) {
273
			$this->storage->releaseLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
274
			$this->lockingProvider->releaseLock('scanner::' . $this->storageId . '::' . $path, ILockingProvider::LOCK_EXCLUSIVE);
275
		}
276
		return $data;
277
	}
278