Skip to content

Commit 910a324

Browse files
committed
Fixed indentation. Fixed comment style. Fixed commented out code.
1 parent 6b23264 commit 910a324

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ext/intl/converter/converter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,9 @@ static PHP_METHOD(UConverter, __construct) {
563563
intl_error_reset(NULL);
564564

565565
zend_replace_error_handling(EH_THROW, IntlException_ce_ptr, &zeh TSRMLS_CC);
566-
rv = zend_parse_parameters(ZEND_NUM_ARGS(), "|s!s!",
566+
rv = zend_parse_parameters(ZEND_NUM_ARGS(), "|s!s!",
567567
&dest, &dest_len, &src, &src_len);
568-
zend_restore_error_handling(&zeh TSRMLS_CC);
568+
zend_restore_error_handling(&zeh TSRMLS_CC);
569569

570570
if (rv == FAILURE) {
571571
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,

ext/intl/dateformat/dateformat_create.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ static void datefmt_ctor(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_constructor)
7979
DATE_FORMAT_METHOD_FETCH_OBJECT_NO_CHECK;
8080

8181
if (DATE_FORMAT_OBJECT(dfo) != NULL) {
82-
// This is __construct being called on an instance - it is not
83-
// a constructor.
82+
/* This is __construct being called on an instance - it is not
83+
a constructor. */
8484
intl_errors_set(INTL_DATA_ERROR_P(dfo), U_ILLEGAL_ARGUMENT_ERROR,
8585
"datefmt_create: cannot call constructor twice", 0);
8686
return;

ext/spl/spl_fixedarray.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,11 @@ SPL_METHOD(SplFixedArray, __construct)
564564
int rv;
565565
zend_error_handling zeh;
566566

567-
// zend_replace_error_handling(EH_THROW, spl_ce_InvalidArgumentException, &zeh TSRMLS_CC);
568-
// rv = zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &size);
569-
// zend_restore_error_handling(&zeh TSRMLS_CC);
567+
zend_replace_error_handling(EH_THROW, spl_ce_InvalidArgumentException, &zeh TSRMLS_CC);
568+
rv = zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &size);
569+
zend_restore_error_handling(&zeh TSRMLS_CC);
570570

571-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &size) == FAILURE) {
571+
if (rv == FAILURE) {
572572
return;
573573
}
574574

0 commit comments

Comments
 (0)