Code Duplication    Length = 7-7 lines in 2 locations

lib/private/files/view.php 2 locations

@@ 1205-1211 (lines=7) @@
1202
					$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
1203
					$data = $cache->get($internalPath);
1204
					$this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED);
1205
				} else if (!Cache\Scanner::isPartialFile($internalPath) && $watcher->needsUpdate($internalPath, $data)) {
1206
					$this->lockFile($relativePath, ILockingProvider::LOCK_SHARED);
1207
					$watcher->update($internalPath, $data);
1208
					$this->updater->propagate($path);
1209
					$data = $cache->get($internalPath);
1210
					$this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED);
1211
				}
1212
			} catch (LockedException $e) {
1213
				// if the file is locked we just use the old cache info
1214
			}
@@ 1292-1298 (lines=7) @@
1289
					$scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW);
1290
					$data = $cache->get($internalPath);
1291
					$this->unlockFile($directory, ILockingProvider::LOCK_SHARED);
1292
				} else if ($watcher->needsUpdate($internalPath, $data)) {
1293
					$this->lockFile($directory, ILockingProvider::LOCK_SHARED);
1294
					$watcher->update($internalPath, $data);
1295
					$this->updater->propagate($path);
1296
					$data = $cache->get($internalPath);
1297
					$this->unlockFile($directory, ILockingProvider::LOCK_SHARED);
1298
				}
1299
			} catch (LockedException $e) {
1300
				// if the file is locked we just use the old cache info
1301
			}