Skip to content

Commit 52c529c

Browse files
committed
ws fixes.
#again :)
1 parent eab0f59 commit 52c529c

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

ext/standard/string.c

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,7 @@ PHP_FUNCTION(substr)
16161616
if (argc > 2) {
16171617
convert_to_long_ex(len);
16181618
l = Z_LVAL_PP(len);
1619-
}
1620-
else {
1619+
} else {
16211620
l = Z_STRLEN_PP(str);
16221621
}
16231622

@@ -2441,8 +2440,7 @@ PHPAPI char *php_addslashes(char *str, int length, int *new_length, int should_f
24412440
break;
24422441
}
24432442
}
2444-
}
2445-
else {
2443+
} else {
24462444
for (source = str, end = source+length, target = new_str; source < end; source++) {
24472445
c = *source;
24482446
switch (c) {
@@ -3431,8 +3429,7 @@ PHPAPI void php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, int
34313429
break;
34323430
}
34333431

3434-
switch (state)
3435-
{
3432+
switch (state) {
34363433
case 1: /* HTML/XML */
34373434
lc = '>';
34383435
state = 0;
@@ -3635,29 +3632,29 @@ PHP_FUNCTION(count_chars)
36353632

36363633
for (inx = 0; inx < 256; inx++) {
36373634
switch (mymode) {
3638-
case 0:
3639-
add_index_long(return_value, inx, chars[inx]);
3640-
break;
3641-
case 1:
3642-
if (chars[inx] != 0) {
3635+
case 0:
36433636
add_index_long(return_value, inx, chars[inx]);
3644-
}
3645-
break;
3646-
case 2:
3647-
if (chars[inx] == 0) {
3648-
add_index_long(return_value, inx, chars[inx]);
3649-
}
3650-
break;
3651-
case 3:
3652-
if (chars[inx] != 0) {
3653-
retstr[retlen++] = inx;
3654-
}
3655-
break;
3656-
case 4:
3657-
if (chars[inx] == 0) {
3658-
retstr[retlen++] = inx;
3659-
}
3660-
break;
3637+
break;
3638+
case 1:
3639+
if (chars[inx] != 0) {
3640+
add_index_long(return_value, inx, chars[inx]);
3641+
}
3642+
break;
3643+
case 2:
3644+
if (chars[inx] == 0) {
3645+
add_index_long(return_value, inx, chars[inx]);
3646+
}
3647+
break;
3648+
case 3:
3649+
if (chars[inx] != 0) {
3650+
retstr[retlen++] = inx;
3651+
}
3652+
break;
3653+
case 4:
3654+
if (chars[inx] == 0) {
3655+
retstr[retlen++] = inx;
3656+
}
3657+
break;
36613658
}
36623659
}
36633660

0 commit comments

Comments
 (0)