Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 405-411 (lines=7) @@
402
	 *
403
	 * @return bool
404
	 */
405
	protected function hasNull($param) {
406
		if (\is_array($param)) {
407
			return \in_array(null, $param, true);
408
		} else {
409
			return $param === null;
410
		}
411
	}
412
413
	/**
414
	 * Get share by id, validate it's type and token

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

@@ 436-442 (lines=7) @@
433
	 *
434
	 * @return bool
435
	 */
436
	protected function hasNull($param) {
437
		if (\is_array($param)) {
438
			return \in_array(null, $param, true);
439
		} else {
440
			return $param === null;
441
		}
442
	}
443
}
444