Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 152-154 (lines=3) @@
149
		if (!FileUtils::isPartialFile($file) and !Filesystem::isFileBlacklisted($file)) {
150
151
			//acquire a lock
152
			if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) {
153
				$this->storage->acquireLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
154
			}
155
156
			try {
157
				$data = $this->getData($file);
@@ 251-253 (lines=3) @@
248
				return null;
249
			} finally {
250
				//release the acquired lock
251
				if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) {
252
					$this->storage->releaseLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
253
				}
254
			}
255
		}
256