Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 252-259 (lines=8) @@
249
			return $results[0];
250
		}
251
252
		switch ($test) {
253
			case 'anyof':
254
				return array_values(array_unique(array_merge(...$results)));
255
256
			case 'allof':
257
			default:
258
				return array_values(array_intersect(...$results));
259
		}
260
	}
261
262
	/**

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

@@ 265-272 (lines=8) @@
262
			return $results[0];
263
		}
264
265
		switch ($test) {
266
			case 'anyof':
267
				return array_unique(array_merge(...$results));
268
269
			case 'allof':
270
			default:
271
				return array_intersect(...$results);
272
		}
273
	}
274
275
	/**