Code Duplication    Length = 9-9 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 3615-3623 (lines=9) @@
3612
				return null;
3613
			}
3614
3615
			if (!is_int($params[1])
3616
				&& !is_float($params[1])
3617
				&& !is_string($params[1])
3618
				&& $params[1] !== null
3619
				&& !(is_object($params[1]) && method_exists($params[1], '__toString'))
3620
			) {
3621
				trigger_error('array_column(): The column key should be either a string or an integer', E_USER_WARNING);
3622
				return false;
3623
			}
3624
3625
			if (isset($params[2])
3626
				&& !is_int($params[2])
@@ 3625-3633 (lines=9) @@
3622
				return false;
3623
			}
3624
3625
			if (isset($params[2])
3626
				&& !is_int($params[2])
3627
				&& !is_float($params[2])
3628
				&& !is_string($params[2])
3629
				&& !(is_object($params[2]) && method_exists($params[2], '__toString'))
3630
			) {
3631
				trigger_error('array_column(): The index key should be either a string or an integer', E_USER_WARNING);
3632
				return false;
3633
			}
3634
3635
			$paramsInput = $params[0];
3636
			$paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null;