Fixed formatting

This commit is contained in:
Roman Kelesidis 2023-08-15 15:22:49 +07:00
parent 709433b282
commit b929aebdb1
4 changed files with 65 additions and 66 deletions

View File

@ -2044,8 +2044,7 @@ if (!function_exists('array_intersect_key')) {
$array_count = count($args);
for ($i = 0; $i !== $array_count; $i++) {
if (!is_array($args[$i])) {
user_error('array_intersect_key() Argument #' .
($i + 1) . ' is not an array', E_USER_WARNING);
user_error('array_intersect_key() Argument #' . ($i + 1) . ' is not an array', E_USER_WARNING);
return;
}
}
@ -2055,7 +2054,7 @@ if (!function_exists('array_intersect_key')) {
foreach ($args[0] as $key1 => $value1) {
for ($i = 1; $i !== $array_count; $i++) {
foreach ($args[$i] as $key2 => $value2) {
if ((string) $key1 === (string) $key2) {
if ((string)$key1 === (string)$key2) {
$result[$key1] = $value1;
}
}