Code Duplication    Length = 15-15 lines in 2 locations

lib/Service/ExternalFilesService.php 1 location

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

lib/Service/GroupFoldersService.php 1 location

@@ 181-195 (lines=15) @@
178
	 *
179
	 * @return bool
180
	 */
181
	public function isMountFullGlobal(GroupFolderMount $mount) {
182
		if (sizeof($mount->getGroups()) > 0) {
183
			return false;
184
		}
185
186
		if (sizeof($mount->getUsers()) !== 1) {
187
			return false;
188
		}
189
190
		if ($mount->getUsers()[0] === 'all') {
191
			return true;
192
		}
193
194
		return false;
195
	}
196
197
198
	/**