Code Duplication    Length = 15-15 lines in 2 locations

lib/Service/ExternalFilesService.php 1 location

@@ 198-212 (lines=15) @@
195
	 *
196
	 * @return bool
197
	 */
198
	public function isMountFullGlobal(ExternalMount $mount) {
199
		if (sizeof($mount->getGroups()) > 0) {
200
			return false;
201
		}
202
203
		if (sizeof($mount->getUsers()) !== 1) {
204
			return false;
205
		}
206
207
		if ($mount->getUsers()[0] === 'all') {
208
			return true;
209
		}
210
211
		return false;
212
	}
213
214
215
	/**

lib/Service/GroupFoldersService.php 1 location

@@ 199-213 (lines=15) @@
196
	 *
197
	 * @return bool
198
	 */
199
	public function isMountFullGlobal(GroupFolderMount $mount) {
200
		if (sizeof($mount->getGroups()) > 0) {
201
			return false;
202
		}
203
204
		if (sizeof($mount->getUsers()) !== 1) {
205
			return false;
206
		}
207
208
		if ($mount->getUsers()[0] === 'all') {
209
			return true;
210
		}
211
212
		return false;
213
	}
214
215
216
	/**