Skip to content

Commit d19cf43

Browse files
authored
🏷 Format
1 parent 1f7cb7f commit d19cf43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jwt.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ static void php_jwt_encode(INTERNAL_FUNCTION_PARAMETERS) {
498498

499499
/* sign */
500500
if (jwt->alg == JWT_ALG_NONE) {
501-
buflen+=1;
501+
buflen += 1;
502502
/* alg none */
503503
buf = (char *)erealloc(buf, buflen);
504504
strcat(buf, ".");
505-
buf[buflen]='\0';
505+
buf[buflen] = '\0';
506506
} else {
507507
/* set jwt struct */
508508
jwt->key = key;
@@ -519,7 +519,7 @@ static void php_jwt_encode(INTERNAL_FUNCTION_PARAMETERS) {
519519
zend_string *sig_str = zend_string_init(sig, sig_len, 0);
520520
char *sig_b64 = jwt_b64_url_encode(sig_str);
521521

522-
buflen = strlen(sig_b64) + strlen(buf) + 2;
522+
buflen = strlen(sig_b64) + strlen(buf) + 2;
523523
char *tmp = (char *)ecalloc(buflen, 1);
524524
sprintf(tmp, "%s.%s", buf, sig_b64);
525525

@@ -538,7 +538,7 @@ static void php_jwt_encode(INTERNAL_FUNCTION_PARAMETERS) {
538538

539539
jwt_free(jwt);
540540

541-
RETVAL_STRINGL(buf, strlen(buf));
541+
RETVAL_STRINGL(buf, strlen(buf));
542542
efree(buf);
543543
}
544544

0 commit comments

Comments
 (0)