Code Duplication    Length = 9-9 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 3531-3539 (lines=9) @@
3528
				return null;
3529
			}
3530
3531
			if (!is_int($params[1])
3532
				&& !is_float($params[1])
3533
				&& !is_string($params[1])
3534
				&& $params[1] !== null
3535
				&& !(is_object($params[1]) && method_exists($params[1], '__toString'))
3536
			) {
3537
				trigger_error('array_column(): The column key should be either a string or an integer', E_USER_WARNING);
3538
				return false;
3539
			}
3540
3541
			if (isset($params[2])
3542
				&& !is_int($params[2])
@@ 3541-3549 (lines=9) @@
3538
				return false;
3539
			}
3540
3541
			if (isset($params[2])
3542
				&& !is_int($params[2])
3543
				&& !is_float($params[2])
3544
				&& !is_string($params[2])
3545
				&& !(is_object($params[2]) && method_exists($params[2], '__toString'))
3546
			) {
3547
				trigger_error('array_column(): The index key should be either a string or an integer', E_USER_WARNING);
3548
				return false;
3549
			}
3550
3551
			$paramsInput = $params[0];
3552
			$paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null;