Code Duplication    Length = 8-8 lines in 3 locations

apps/dav/lib/CalDAV/ResourceBooking/AbstractPrincipalBackend.php 1 location

@@ 259-266 (lines=8) @@
256
			return $results[0];
257
		}
258
259
		switch ($test) {
260
			case 'anyof':
261
				return array_values(array_unique(array_merge(...$results)));
262
263
			case 'allof':
264
			default:
265
				return array_values(array_intersect(...$results));
266
		}
267
	}
268
269
	/**

apps/dav/lib/Connector/Sabre/Principal.php 1 location

@@ 283-290 (lines=8) @@
280
			return $results[0];
281
		}
282
283
		switch ($test) {
284
			case 'anyof':
285
				return array_values(array_unique(array_merge(...$results)));
286
287
			case 'allof':
288
			default:
289
				return array_values(array_intersect(...$results));
290
		}
291
	}
292
293
	/**

apps/dav/lib/DAV/GroupPrincipalBackend.php 1 location

@@ 244-251 (lines=8) @@
241
			return $results[0];
242
		}
243
244
		switch ($test) {
245
			case 'anyof':
246
				return array_values(array_unique(array_merge(...$results)));
247
248
			case 'allof':
249
			default:
250
				return array_values(array_intersect(...$results));
251
		}
252
	}
253
254
	/**