Code Duplication    Length = 10-10 lines in 2 locations

lib/private/Files/Node/Folder.php 1 location

@@ 285-294 (lines=10) @@
282
			/**
283
			 * @var \OC\Files\Mount\MountPoint $mount
284
			 */
285
			if ($mount->getStorage()) {
286
				$cache = $mount->getStorage()->getCache();
287
				$internalPath = $cache->getPathById($id);
288
				if (\is_string($internalPath)) {
289
					$fullPath = $mount->getMountPoint() . $internalPath;
290
					if (($path = $this->getRelativePath($fullPath)) !== null) {
291
						$nodes[] = $this->get($path);
292
					}
293
				}
294
			}
295
		}
296
		return $nodes;
297
	}

lib/private/Files/View.php 1 location

@@ 1767-1776 (lines=10) @@
1764
				// recursively
1765
				continue;
1766
			}
1767
			if ($mount->getStorage()) {
1768
				$cache = $mount->getStorage()->getCache();
1769
				$internalPath = $cache->getPathById($id);
1770
				if (\is_string($internalPath)) {
1771
					$fullPath = $mount->getMountPoint() . $internalPath;
1772
					if (($path = $this->getRelativePath($fullPath)) !== null) {
1773
						return $path;
1774
					}
1775
				}
1776
			}
1777
		}
1778
		throw new NotFoundException(\sprintf('File with id "%s" has not been found.', $id));
1779
	}