Code Duplication    Length = 10-11 lines in 2 locations

lib/Service/ExternalFilesService.php 1 location

@@ 205-214 (lines=10) @@
202
	 * @return MountPoint
203
	 * @throws FileIsNotIndexableException
204
	 */
205
	private function getMountPoint(Node $file) {
206
207
		foreach ($this->externalMounts as $mount) {
208
			if (strpos($file->getPath(), $mount->getPath()) === 0) {
209
				return $mount;
210
			}
211
		}
212
213
		throw new FileIsNotIndexableException();
214
	}
215
216
217
	/**

lib/Service/GroupFoldersService.php 1 location

@@ 185-195 (lines=11) @@
182
	 * @return MountPoint
183
	 * @throws FileIsNotIndexableException
184
	 */
185
	private function getMountPoint(Node $file) {
186
		foreach ($this->groupFolders as $mount) {
187
			if (strpos($file->getPath(), $mount->getPath()) === 0) {
188
				return $mount;
189
			}
190
		}
191
192
		throw new FileIsNotIndexableException();
193
194
	}
195
196
197
	/**
198
	 * @param string $userId