]> granicus.if.org Git - php/commitdiff
Adding Braces in json.c to conform with coding standards
authorMatt Nowack <mdnowack@gmail.com>
Mon, 19 Mar 2012 22:29:55 +0000 (15:29 -0700)
committerDavid Soria Parra <dsp@php.net>
Tue, 20 Mar 2012 16:29:04 +0000 (17:29 +0100)
ext/json/json.c

index f28f50bd4400f4965a93bdc4b196af0c65b36bf1..5b62c2feeaf197e487cef8a2ff6dcdb057b412fa 100644 (file)
@@ -147,8 +147,9 @@ static int json_determine_array_type(zval **val TSRMLS_DC) /* {{{ */
                idx = 0;
                for (;; zend_hash_move_forward_ex(myht, &pos)) {
                        i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
-                       if (i == HASH_KEY_NON_EXISTANT)
+                       if (i == HASH_KEY_NON_EXISTANT) {
                                break;
+                       }
 
                        if (i == HASH_KEY_IS_STRING) {
                                return 1;