Code Duplication    Length = 7-7 lines in 2 locations

apps/federatedfilesharing/lib/Controller/OcmController.php 1 location

@@ 274-280 (lines=7) @@
271
	 *
272
	 * @return bool
273
	 */
274
	protected function hasNull($param) {
275
		if (\is_array($param)) {
276
			return \in_array(null, $param, true);
277
		} else {
278
			return $param === null;
279
		}
280
	}
281
}
282

apps/federatedfilesharing/lib/Controller/RequestHandlerController.php 1 location

@@ 441-447 (lines=7) @@
438
	 *
439
	 * @return bool
440
	 */
441
	protected function hasNull($param) {
442
		if (\is_array($param)) {
443
			return \in_array(null, $param, true);
444
		} else {
445
			return $param === null;
446
		}
447
	}
448
}
449