Code Duplication    Length = 4-4 lines in 2 locations

lib/private/Files/Cache/Scanner.php 2 locations

@@ 325-328 (lines=4) @@
322
		if ($reuse === -1) {
323
			$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
324
		}
325
		if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) {
326
			$this->storage->acquireLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
327
			$this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
328
		}
329
		try {
330
			$data = $this->scanFile($path, $reuse, -1, null, $lock);
331
			if ($data and $data['mimetype'] === 'httpd/unix-directory') {
@@ 336-339 (lines=4) @@
333
				$data['size'] = $size;
334
			}
335
		} finally {
336
			if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) {
337
				$this->storage->releaseLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
338
				$this->storage->releaseLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider);
339
			}
340
		}
341
		return $data;
342
	}