Skip to content

Commit 12eb307

Browse files
committed
[ci skip] else formatting
1 parent d6509bf commit 12eb307

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/spl/spl_iterators.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3180,8 +3180,7 @@ PHP_FUNCTION(iterator_to_array)
31803180
if (Z_TYPE_P(obj) == IS_ARRAY) {
31813181
if (use_keys) {
31823182
RETURN_COPY(obj);
3183-
}
3184-
else {
3183+
} else {
31853184
zend_array *arrval;
31863185
zend_long arrlen;
31873186
zval *entry;
@@ -3203,8 +3202,7 @@ PHP_FUNCTION(iterator_to_array)
32033202
} ZEND_HASH_FOREACH_END();
32043203
} ZEND_HASH_FILL_END();
32053204
}
3206-
}
3207-
else {
3205+
} else {
32083206
array_init(return_value);
32093207
spl_iterator_apply(obj, use_keys ? spl_iterator_to_array_apply : spl_iterator_to_values_apply, (void*)return_value);
32103208
}

0 commit comments

Comments
 (0)