Code Duplication    Length = 7-7 lines in 2 locations

lib/private/files/view.php 2 locations

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