Skip to content

Commit af61e14

Browse files
wkhudgins92Will Hudgins
authored and
Will Hudgins
committed
Fixed indentation
1 parent ccbba77 commit af61e14

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

ext/standard/string.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,10 +2316,10 @@ PHP_FUNCTION(str_begins) {
23162316
RETURN_BOOL(0);
23172317
}
23182318

2319-
for (i = 0; i < needle->len; i++)
2320-
if (haystack->val[i] != needle->val[i])
2321-
RETURN_BOOL(0);
2322-
RETURN_BOOL(1);
2319+
for (i = 0; i < needle->len; i++)
2320+
if (haystack->val[i] != needle->val[i])
2321+
RETURN_BOOL(0);
2322+
RETURN_BOOL(1);
23232323
}
23242324

23252325
/* {{{ proto boolean str_ibegins(string haystack, string needle)
@@ -2337,10 +2337,10 @@ PHP_FUNCTION(str_ibegins) {
23372337
RETURN_BOOL(0);
23382338
}
23392339

2340-
for (i = 0; i < needle->len; i++)
2341-
if (tolower(haystack->val[i]) != tolower(needle->val[i]))
2342-
RETURN_BOOL(0);
2343-
RETURN_BOOL(1);
2340+
for (i = 0; i < needle->len; i++)
2341+
if (tolower(haystack->val[i]) != tolower(needle->val[i]))
2342+
RETURN_BOOL(0);
2343+
RETURN_BOOL(1);
23442344
}
23452345

23462346
/* {{{ proto boolean str_ends(string haystack, string needle)
@@ -2358,10 +2358,10 @@ PHP_FUNCTION(str_ends) {
23582358
RETURN_BOOL(0);
23592359
}
23602360

2361-
for (i = haystack->len - 1, j = needle->len - 1; j >= 0; i--, j--)
2362-
if (haystack->val[i] != needle->val[j])
2363-
RETURN_BOOL(0);
2364-
RETURN_BOOL(1);
2361+
for (i = haystack->len - 1, j = needle->len - 1; j >= 0; i--, j--)
2362+
if (haystack->val[i] != needle->val[j])
2363+
RETURN_BOOL(0);
2364+
RETURN_BOOL(1);
23652365
}
23662366

23672367
/* {{{ proto boolean str_iends(string haystack, string needle)
@@ -2379,9 +2379,9 @@ PHP_FUNCTION(str_iends) {
23792379
RETURN_BOOL(0);
23802380
}
23812381

2382-
for (i = haystack->len - 1, j = needle->len - 1; j >= 0; i--, j--)
2383-
if (tolower(haystack->val[i]) != tolower(needle->val[j]))
2384-
RETURN_BOOL(0);
2382+
for (i = haystack->len - 1, j = needle->len - 1; j >= 0; i--, j--)
2383+
if (tolower(haystack->val[i]) != tolower(needle->val[j]))
2384+
RETURN_BOOL(0);
23852385
RETURN_BOOL(1);
23862386
}
23872387

0 commit comments

Comments
 (0)