Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

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