File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -1424,12 +1424,8 @@ PHP_METHOD(tidy, parseFile)
1424
1424
RETURN_THROWS ();
1425
1425
}
1426
1426
1427
- if (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) != SUCCESS
1428
- || php_tidy_parse_string (obj , ZSTR_VAL (contents ), (uint32_t )ZSTR_LEN (contents ), enc ) != SUCCESS ) {
1429
- RETVAL_FALSE ;
1430
- } else {
1431
- RETVAL_TRUE ;
1432
- }
1427
+ RETVAL_BOOL (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) == SUCCESS
1428
+ && php_tidy_parse_string (obj , ZSTR_VAL (contents ), (uint32_t )ZSTR_LEN (contents ), enc ) == SUCCESS );
1433
1429
1434
1430
zend_string_release_ex (contents , 0 );
1435
1431
}
@@ -1457,12 +1453,8 @@ PHP_METHOD(tidy, parseString)
1457
1453
TIDY_SET_CONTEXT ;
1458
1454
obj = Z_TIDY_P (object );
1459
1455
1460
- if (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) == SUCCESS
1461
- && php_tidy_parse_string (obj , ZSTR_VAL (input ), (uint32_t )ZSTR_LEN (input ), enc ) == SUCCESS ) {
1462
- RETURN_TRUE ;
1463
- }
1464
-
1465
- RETURN_FALSE ;
1456
+ RETURN_BOOL (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) == SUCCESS
1457
+ && php_tidy_parse_string (obj , ZSTR_VAL (input ), (uint32_t )ZSTR_LEN (input ), enc ) == SUCCESS );
1466
1458
}
1467
1459
1468
1460
You can’t perform that action at this time.
0 commit comments