Code Duplication    Length = 9-9 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 3460-3468 (lines=9) @@
3457
				return null;
3458
			}
3459
3460
			if (!is_int($params[1])
3461
				&& !is_float($params[1])
3462
				&& !is_string($params[1])
3463
				&& $params[1] !== null
3464
				&& !(is_object($params[1]) && method_exists($params[1], '__toString'))
3465
			) {
3466
				trigger_error('array_column(): The column key should be either a string or an integer', E_USER_WARNING);
3467
				return false;
3468
			}
3469
3470
			if (isset($params[2])
3471
				&& !is_int($params[2])
@@ 3470-3478 (lines=9) @@
3467
				return false;
3468
			}
3469
3470
			if (isset($params[2])
3471
				&& !is_int($params[2])
3472
				&& !is_float($params[2])
3473
				&& !is_string($params[2])
3474
				&& !(is_object($params[2]) && method_exists($params[2], '__toString'))
3475
			) {
3476
				trigger_error('array_column(): The index key should be either a string or an integer', E_USER_WARNING);
3477
				return false;
3478
			}
3479
3480
			$paramsInput = $params[0];
3481
			$paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null;