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 @@ -1430,12 +1430,8 @@ PHP_METHOD(tidy, parseFile)
1430
1430
RETURN_THROWS ();
1431
1431
}
1432
1432
1433
- if (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) != SUCCESS
1434
- || php_tidy_parse_string (obj , ZSTR_VAL (contents ), (uint32_t )ZSTR_LEN (contents ), enc ) != SUCCESS ) {
1435
- RETVAL_FALSE ;
1436
- } else {
1437
- RETVAL_TRUE ;
1438
- }
1433
+ RETVAL_BOOL (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) != SUCCESS
1434
+ || php_tidy_parse_string (obj , ZSTR_VAL (contents ), (uint32_t )ZSTR_LEN (contents ), enc ) != SUCCESS );
1439
1435
1440
1436
zend_string_release_ex (contents , 0 );
1441
1437
}
@@ -1463,12 +1459,8 @@ PHP_METHOD(tidy, parseString)
1463
1459
TIDY_SET_CONTEXT ;
1464
1460
obj = Z_TIDY_P (object );
1465
1461
1466
- if (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) == SUCCESS
1467
- && php_tidy_parse_string (obj , ZSTR_VAL (input ), (uint32_t )ZSTR_LEN (input ), enc ) == SUCCESS ) {
1468
- RETURN_TRUE ;
1469
- }
1470
-
1471
- RETURN_FALSE ;
1462
+ RETURN_BOOL (php_tidy_apply_config (obj -> ptdoc -> doc , options_str , options_ht ) == SUCCESS
1463
+ && php_tidy_parse_string (obj , ZSTR_VAL (input ), (uint32_t )ZSTR_LEN (input ), enc ) == SUCCESS );
1472
1464
}
1473
1465
1474
1466
You can’t perform that action at this time.
0 commit comments