Code Duplication    Length = 7-7 lines in 2 locations

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

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

@@ 387-393 (lines=7) @@
384
	 *
385
	 * @return bool
386
	 */
387
	protected function hasNull($param) {
388
		if (\is_array($param)) {
389
			return \in_array(null, $param, true);
390
		} else {
391
			return $param === null;
392
		}
393
	}
394
395
	/**
396
	 * Get share by id, validate it's type and token