Skip to content

Commit 45c0e6b

Browse files
committed
ext/soap/php_http.c: Fix some indentation and code style issues
1 parent 88ecdbe commit 45c0e6b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

ext/soap/php_http.c

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,15 @@ int make_http_soap_request(zval *this_ptr,
380380
int level = Z_LVAL_P(tmp) & 0x0f;
381381
int kind = Z_LVAL_P(tmp) & SOAP_COMPRESSION_DEFLATE;
382382

383-
if (level > 9) {level = 9;}
383+
if (level > 9) {
384+
level = 9;
385+
}
384386

385-
if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) {
387+
if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) {
386388
smart_str_append_const(&soap_headers_z,"Accept-Encoding: gzip, deflate\r\n");
387-
}
388-
if (level > 0) {
389+
}
390+
391+
if (level > 0) {
389392
zend_function *fn;
390393
zval retval;
391394
zval params[3];
@@ -416,7 +419,7 @@ int make_http_soap_request(zval *this_ptr,
416419
ZVAL_LONG(&params[2], 0x1f);
417420
}
418421

419-
zend_call_known_function(fn, NULL, NULL, &retval, param_num, params, NULL);
422+
zend_call_known_function(fn, NULL, NULL, &retval, param_num, params, NULL);
420423
zval_ptr_dtor(&params[0]);
421424
if (Z_TYPE(retval) == IS_STRING) {
422425
request = Z_STR(retval);
@@ -428,7 +431,7 @@ int make_http_soap_request(zval *this_ptr,
428431
smart_str_free(&soap_headers_z);
429432
return FALSE;
430433
}
431-
}
434+
}
432435
}
433436

434437
tmp = Z_CLIENT_HTTPSOCKET_P(this_ptr);
@@ -461,7 +464,9 @@ int make_http_soap_request(zval *this_ptr,
461464

462465
try_again:
463466
if (phpurl == NULL || phpurl->host == NULL) {
464-
if (phpurl != NULL) {php_url_free(phpurl);}
467+
if (phpurl != NULL) {
468+
php_url_free(phpurl);
469+
}
465470
if (request != buf) {
466471
zend_string_release_ex(request, 0);
467472
}
@@ -1052,7 +1057,7 @@ int make_http_soap_request(zval *this_ptr,
10521057
if (sempos != NULL) {
10531058
options = sempos+1;
10541059
} else {
1055-
break;
1060+
break;
10561061
}
10571062
}
10581063
}
@@ -1509,7 +1514,7 @@ static zend_string* get_http_body(php_stream *stream, int close, char *headers)
15091514
if (len_read <= 0) {
15101515
/* Error or EOF */
15111516
done = TRUE;
1512-
break;
1517+
break;
15131518
}
15141519
len_size += len_read;
15151520
http_buf_size += len_read;

0 commit comments

Comments
 (0)