Code Duplication    Length = 9-9 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 3554-3562 (lines=9) @@
3551
				return null;
3552
			}
3553
3554
			if (!is_int($params[1])
3555
				&& !is_float($params[1])
3556
				&& !is_string($params[1])
3557
				&& $params[1] !== null
3558
				&& !(is_object($params[1]) && method_exists($params[1], '__toString'))
3559
			) {
3560
				trigger_error('array_column(): The column key should be either a string or an integer', E_USER_WARNING);
3561
				return false;
3562
			}
3563
3564
			if (isset($params[2])
3565
				&& !is_int($params[2])
@@ 3564-3572 (lines=9) @@
3561
				return false;
3562
			}
3563
3564
			if (isset($params[2])
3565
				&& !is_int($params[2])
3566
				&& !is_float($params[2])
3567
				&& !is_string($params[2])
3568
				&& !(is_object($params[2]) && method_exists($params[2], '__toString'))
3569
			) {
3570
				trigger_error('array_column(): The index key should be either a string or an integer', E_USER_WARNING);
3571
				return false;
3572
			}
3573
3574
			$paramsInput = $params[0];
3575
			$paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null;